* Always generate type & symbol baselines * Accept changed shadowed baselines * Accept brand new type and symbol baselines * Allow `getTypeAtLocation` to return undefined in the type writer * Accept baselines which had missing type information * Bind container for dynamically names enum members so they may be printed * Accept type/symbol baselines for enums with computed members * First pass at reducing typeWriter memory overhead * Use generators to allow for type and symbol baselines with no cache * Accept new baselines for tests whose output was fixed by better newline splitting * Hard cap on number of declarations printed, cache declaration print text * handle differing newlines better still to handle RWC newlines * Lower abridging count, accept abridged baselines * Limit max RWC error output size, limit RWC type and symbol baseline input size * Move skip logic into type and symbol baseliner to streamline error handling * Accept removal of empty baselines * Canonicalize path earlier to handle odd paths in input files * Do canonicalization earlier still, also ensure parallel perf profiles for different targets do not trample one another * No need to pathify again
80 lines
2 KiB
Text
80 lines
2 KiB
Text
=== tests/cases/compiler/super.ts ===
|
|
class Base {
|
|
>Base : Symbol(Base, Decl(super.ts, 0, 0))
|
|
|
|
constructor() {
|
|
var x;
|
|
>x : Symbol(x, Decl(super.ts, 2, 11))
|
|
}
|
|
public foo() {
|
|
>foo : Symbol(Base.foo, Decl(super.ts, 3, 5))
|
|
|
|
return "base";
|
|
}
|
|
|
|
public bar() {
|
|
>bar : Symbol(Base.bar, Decl(super.ts, 6, 5))
|
|
|
|
return "basebar";
|
|
}
|
|
}
|
|
|
|
class Sub1 extends Base {
|
|
>Sub1 : Symbol(Sub1, Decl(super.ts, 11, 1))
|
|
>Base : Symbol(Base, Decl(super.ts, 0, 0))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
|
|
|
|
return "sub1" + super.foo() + super.bar();
|
|
>super.foo : Symbol(Base.foo, Decl(super.ts, 3, 5))
|
|
>super : Symbol(Base, Decl(super.ts, 0, 0))
|
|
>foo : Symbol(Base.foo, Decl(super.ts, 3, 5))
|
|
>super.bar : Symbol(Base.bar, Decl(super.ts, 6, 5))
|
|
>super : Symbol(Base, Decl(super.ts, 0, 0))
|
|
>bar : Symbol(Base.bar, Decl(super.ts, 6, 5))
|
|
}
|
|
}
|
|
|
|
|
|
class SubSub1 extends Sub1 {
|
|
>SubSub1 : Symbol(SubSub1, Decl(super.ts, 17, 1))
|
|
>Sub1 : Symbol(Sub1, Decl(super.ts, 11, 1))
|
|
|
|
public foo() {
|
|
>foo : Symbol(SubSub1.foo, Decl(super.ts, 20, 28))
|
|
|
|
return "subsub1" + super.foo();
|
|
>super.foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
|
|
>super : Symbol(Sub1, Decl(super.ts, 11, 1))
|
|
>foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
|
|
}
|
|
}
|
|
|
|
class Base2 {
|
|
>Base2 : Symbol(Base2, Decl(super.ts, 24, 1))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Base2.foo, Decl(super.ts, 26, 13))
|
|
|
|
super.foo();
|
|
}
|
|
}
|
|
|
|
var s = new Sub1();
|
|
>s : Symbol(s, Decl(super.ts, 32, 3))
|
|
>Sub1 : Symbol(Sub1, Decl(super.ts, 11, 1))
|
|
|
|
var ss = new SubSub1();
|
|
>ss : Symbol(ss, Decl(super.ts, 33, 3))
|
|
>SubSub1 : Symbol(SubSub1, Decl(super.ts, 17, 1))
|
|
|
|
s.foo() + ss.foo();
|
|
>s.foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
|
|
>s : Symbol(s, Decl(super.ts, 32, 3))
|
|
>foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
|
|
>ss.foo : Symbol(SubSub1.foo, Decl(super.ts, 20, 28))
|
|
>ss : Symbol(ss, Decl(super.ts, 33, 3))
|
|
>foo : Symbol(SubSub1.foo, Decl(super.ts, 20, 28))
|
|
|
|
|