TypeScript/tests/baselines/reference/autolift4.symbols
Wesley Wigham 5353475fce Always collect type and symbol baselines (#18621)
* 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
2017-09-22 15:52:04 -07:00

78 lines
3 KiB
Plaintext

=== tests/cases/compiler/autolift4.ts ===
class Point {
>Point : Symbol(Point, Decl(autolift4.ts, 0, 0))
constructor(public x: number, public y: number) {
>x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
}
getDist() {
>getDist : Symbol(Point.getDist, Decl(autolift4.ts, 4, 5))
return Math.sqrt(this.x*this.x + this.y*this.y);
>Math.sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
>sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>this.x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this : Symbol(Point, Decl(autolift4.ts, 0, 0))
>x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this.x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this : Symbol(Point, Decl(autolift4.ts, 0, 0))
>x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this.y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this : Symbol(Point, Decl(autolift4.ts, 0, 0))
>y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this.y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this : Symbol(Point, Decl(autolift4.ts, 0, 0))
>y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
}
static origin = new Point(0,0);
>origin : Symbol(Point.origin, Decl(autolift4.ts, 7, 5))
>Point : Symbol(Point, Decl(autolift4.ts, 0, 0))
}
class Point3D extends Point {
>Point3D : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>Point : Symbol(Point, Decl(autolift4.ts, 0, 0))
constructor(x: number, y: number, public z: number, m:number) {
>x : Symbol(x, Decl(autolift4.ts, 13, 16))
>y : Symbol(y, Decl(autolift4.ts, 13, 26))
>z : Symbol(Point3D.z, Decl(autolift4.ts, 13, 37))
>m : Symbol(m, Decl(autolift4.ts, 13, 55))
super(x, y);
>super : Symbol(Point, Decl(autolift4.ts, 0, 0))
>x : Symbol(x, Decl(autolift4.ts, 13, 16))
>y : Symbol(y, Decl(autolift4.ts, 13, 26))
}
getDist() {
>getDist : Symbol(Point3D.getDist, Decl(autolift4.ts, 15, 5))
return Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.m);
>Math.sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>Math : Symbol(Math, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
>sqrt : Symbol(Math.sqrt, Decl(lib.d.ts, --, --))
>this.x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this.x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>x : Symbol(Point.x, Decl(autolift4.ts, 2, 16))
>this.y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this.y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>y : Symbol(Point.y, Decl(autolift4.ts, 2, 33))
>this.z : Symbol(Point3D.z, Decl(autolift4.ts, 13, 37))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
>z : Symbol(Point3D.z, Decl(autolift4.ts, 13, 37))
>this : Symbol(Point3D, Decl(autolift4.ts, 9, 1))
}
}