* 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
94 lines
1.8 KiB
Plaintext
94 lines
1.8 KiB
Plaintext
=== tests/cases/compiler/autolift4.ts ===
|
|
class Point {
|
|
>Point : Point
|
|
|
|
constructor(public x: number, public y: number) {
|
|
>x : number
|
|
>y : number
|
|
|
|
}
|
|
getDist() {
|
|
>getDist : () => number
|
|
|
|
return Math.sqrt(this.x*this.x + this.y*this.y);
|
|
>Math.sqrt(this.x*this.x + this.y*this.y) : number
|
|
>Math.sqrt : (x: number) => number
|
|
>Math : Math
|
|
>sqrt : (x: number) => number
|
|
>this.x*this.x + this.y*this.y : number
|
|
>this.x*this.x : number
|
|
>this.x : number
|
|
>this : this
|
|
>x : number
|
|
>this.x : number
|
|
>this : this
|
|
>x : number
|
|
>this.y*this.y : number
|
|
>this.y : number
|
|
>this : this
|
|
>y : number
|
|
>this.y : number
|
|
>this : this
|
|
>y : number
|
|
}
|
|
static origin = new Point(0,0);
|
|
>origin : Point
|
|
>new Point(0,0) : Point
|
|
>Point : typeof Point
|
|
>0 : 0
|
|
>0 : 0
|
|
}
|
|
|
|
class Point3D extends Point {
|
|
>Point3D : Point3D
|
|
>Point : Point
|
|
|
|
constructor(x: number, y: number, public z: number, m:number) {
|
|
>x : number
|
|
>y : number
|
|
>z : number
|
|
>m : number
|
|
|
|
super(x, y);
|
|
>super(x, y) : void
|
|
>super : typeof Point
|
|
>x : number
|
|
>y : number
|
|
}
|
|
|
|
getDist() {
|
|
>getDist : () => number
|
|
|
|
return Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.m);
|
|
>Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.m) : number
|
|
>Math.sqrt : (x: number) => number
|
|
>Math : Math
|
|
>sqrt : (x: number) => number
|
|
>this.x*this.x + this.y*this.y + this.z*this.m : number
|
|
>this.x*this.x + this.y*this.y : number
|
|
>this.x*this.x : number
|
|
>this.x : number
|
|
>this : this
|
|
>x : number
|
|
>this.x : number
|
|
>this : this
|
|
>x : number
|
|
>this.y*this.y : number
|
|
>this.y : number
|
|
>this : this
|
|
>y : number
|
|
>this.y : number
|
|
>this : this
|
|
>y : number
|
|
>this.z*this.m : number
|
|
>this.z : number
|
|
>this : this
|
|
>z : number
|
|
>this.m : any
|
|
>this : this
|
|
>m : any
|
|
}
|
|
}
|
|
|
|
|