* 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
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
=== tests/cases/compiler/thisInSuperCall.ts ===
|
|
class Base {
|
|
>Base : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
|
|
constructor(x: any) {}
|
|
>x : Symbol(x, Decl(thisInSuperCall.ts, 1, 16))
|
|
}
|
|
|
|
class Foo extends Base {
|
|
>Foo : Symbol(Foo, Decl(thisInSuperCall.ts, 2, 1))
|
|
>Base : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
|
|
constructor() {
|
|
super(this); // error: "super" has to be called before "this" accessing
|
|
>super : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
>this : Symbol(Foo, Decl(thisInSuperCall.ts, 2, 1))
|
|
}
|
|
}
|
|
|
|
class Foo2 extends Base {
|
|
>Foo2 : Symbol(Foo2, Decl(thisInSuperCall.ts, 8, 1))
|
|
>Base : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
|
|
public p = 0;
|
|
>p : Symbol(Foo2.p, Decl(thisInSuperCall.ts, 10, 25))
|
|
|
|
constructor() {
|
|
super(this); // error
|
|
>super : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
>this : Symbol(Foo2, Decl(thisInSuperCall.ts, 8, 1))
|
|
}
|
|
}
|
|
|
|
class Foo3 extends Base {
|
|
>Foo3 : Symbol(Foo3, Decl(thisInSuperCall.ts, 15, 1))
|
|
>Base : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
|
|
constructor(public p) {
|
|
>p : Symbol(Foo3.p, Decl(thisInSuperCall.ts, 18, 16))
|
|
|
|
super(this); // error
|
|
>super : Symbol(Base, Decl(thisInSuperCall.ts, 0, 0))
|
|
>this : Symbol(Foo3, Decl(thisInSuperCall.ts, 15, 1))
|
|
}
|
|
}
|