* 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
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
=== tests/cases/compiler/superAccess2.ts ===
|
|
class P {
|
|
>P : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
x() { }
|
|
>x : Symbol(P.x, Decl(superAccess2.ts, 0, 9))
|
|
|
|
static y() { }
|
|
>y : Symbol(P.y, Decl(superAccess2.ts, 1, 11))
|
|
}
|
|
|
|
class Q extends P {
|
|
>Q : Symbol(Q, Decl(superAccess2.ts, 3, 1))
|
|
>P : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
xx = super;
|
|
>xx : Symbol(Q.xx, Decl(superAccess2.ts, 5, 19))
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
static yy = super; // error for static initializer accessing super
|
|
>yy : Symbol(Q.yy, Decl(superAccess2.ts, 6, 15))
|
|
|
|
// Super is not allowed in constructor args
|
|
constructor(public z = super, zz = super, zzz = () => super) {
|
|
>z : Symbol(Q.z, Decl(superAccess2.ts, 10, 16))
|
|
>zz : Symbol(zz, Decl(superAccess2.ts, 10, 33))
|
|
>zzz : Symbol(zzz, Decl(superAccess2.ts, 10, 45))
|
|
|
|
super();
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
}
|
|
|
|
foo(zz = super) {
|
|
>foo : Symbol(Q.foo, Decl(superAccess2.ts, 12, 5))
|
|
>zz : Symbol(zz, Decl(superAccess2.ts, 14, 8))
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
super.x();
|
|
>super.x : Symbol(P.x, Decl(superAccess2.ts, 0, 9))
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
>x : Symbol(P.x, Decl(superAccess2.ts, 0, 9))
|
|
|
|
super.y(); // error
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
}
|
|
|
|
static bar(zz = super) {
|
|
>bar : Symbol(Q.bar, Decl(superAccess2.ts, 17, 5))
|
|
>zz : Symbol(zz, Decl(superAccess2.ts, 19, 15))
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
super.x(); // error
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
|
|
super.y();
|
|
>super.y : Symbol(P.y, Decl(superAccess2.ts, 1, 11))
|
|
>super : Symbol(P, Decl(superAccess2.ts, 0, 0))
|
|
>y : Symbol(P.y, Decl(superAccess2.ts, 1, 11))
|
|
}
|
|
}
|