* 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
121 lines
2.5 KiB
Plaintext
121 lines
2.5 KiB
Plaintext
=== tests/cases/compiler/super1.ts ===
|
|
// Case 1
|
|
class Base1 {
|
|
>Base1 : Symbol(Base1, Decl(super1.ts, 0, 0))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Base1.foo, Decl(super1.ts, 1, 13))
|
|
|
|
return "base";
|
|
}
|
|
}
|
|
|
|
class Sub1 extends Base1 {
|
|
>Sub1 : Symbol(Sub1, Decl(super1.ts, 5, 1))
|
|
>Base1 : Symbol(Base1, Decl(super1.ts, 0, 0))
|
|
|
|
public bar() {
|
|
>bar : Symbol(Sub1.bar, Decl(super1.ts, 7, 26))
|
|
|
|
return "base";
|
|
}
|
|
}
|
|
|
|
class SubSub1 extends Sub1 {
|
|
>SubSub1 : Symbol(SubSub1, Decl(super1.ts, 11, 1))
|
|
>Sub1 : Symbol(Sub1, Decl(super1.ts, 5, 1))
|
|
|
|
public bar() {
|
|
>bar : Symbol(SubSub1.bar, Decl(super1.ts, 13, 28))
|
|
|
|
return super.super.foo;
|
|
>super : Symbol(Sub1, Decl(super1.ts, 5, 1))
|
|
}
|
|
}
|
|
|
|
// Case 2
|
|
class Base2 {
|
|
>Base2 : Symbol(Base2, Decl(super1.ts, 17, 1))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Base2.foo, Decl(super1.ts, 20, 13))
|
|
|
|
return "base";
|
|
}
|
|
}
|
|
|
|
class SubE2 extends Base2 {
|
|
>SubE2 : Symbol(SubE2, Decl(super1.ts, 24, 1))
|
|
>Base2 : Symbol(Base2, Decl(super1.ts, 17, 1))
|
|
|
|
public bar() {
|
|
>bar : Symbol(SubE2.bar, Decl(super1.ts, 26, 27))
|
|
|
|
return super.prototype.foo = null;
|
|
>super : Symbol(Base2, Decl(super1.ts, 17, 1))
|
|
}
|
|
}
|
|
|
|
// Case 3
|
|
class Base3 {
|
|
>Base3 : Symbol(Base3, Decl(super1.ts, 30, 1))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Base3.foo, Decl(super1.ts, 33, 13))
|
|
|
|
return "base";
|
|
}
|
|
}
|
|
|
|
class SubE3 extends Base3 {
|
|
>SubE3 : Symbol(SubE3, Decl(super1.ts, 37, 1))
|
|
>Base3 : Symbol(Base3, Decl(super1.ts, 30, 1))
|
|
|
|
public bar() {
|
|
>bar : Symbol(SubE3.bar, Decl(super1.ts, 39, 27))
|
|
|
|
return super.bar();
|
|
>super : Symbol(Base3, Decl(super1.ts, 30, 1))
|
|
}
|
|
}
|
|
|
|
// Case 4
|
|
module Base4 {
|
|
>Base4 : Symbol(Base4, Decl(super1.ts, 43, 1))
|
|
|
|
class Sub4 {
|
|
>Sub4 : Symbol(Sub4, Decl(super1.ts, 46, 14))
|
|
|
|
public x(){
|
|
>x : Symbol(Sub4.x, Decl(super1.ts, 47, 16))
|
|
|
|
return "hello";
|
|
}
|
|
}
|
|
|
|
export class SubSub4 extends Sub4{
|
|
>SubSub4 : Symbol(SubSub4, Decl(super1.ts, 51, 5))
|
|
>Sub4 : Symbol(Sub4, Decl(super1.ts, 46, 14))
|
|
|
|
public x(){
|
|
>x : Symbol(SubSub4.x, Decl(super1.ts, 53, 38))
|
|
|
|
return super.x();
|
|
>super.x : Symbol(Sub4.x, Decl(super1.ts, 47, 16))
|
|
>super : Symbol(Sub4, Decl(super1.ts, 46, 14))
|
|
>x : Symbol(Sub4.x, Decl(super1.ts, 47, 16))
|
|
}
|
|
}
|
|
|
|
export class Sub4E {
|
|
>Sub4E : Symbol(Sub4E, Decl(super1.ts, 57, 5))
|
|
|
|
public x() {
|
|
>x : Symbol(Sub4E.x, Decl(super1.ts, 59, 24))
|
|
|
|
return super.x();
|
|
}
|
|
}
|
|
}
|
|
|