* 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
110 lines
2.6 KiB
Text
110 lines
2.6 KiB
Text
=== tests/cases/compiler/multivar.ts ===
|
|
var a,b,c;
|
|
>a : Symbol(a, Decl(multivar.ts, 0, 3))
|
|
>b : Symbol(b, Decl(multivar.ts, 0, 6))
|
|
>c : Symbol(c, Decl(multivar.ts, 0, 8))
|
|
|
|
var x=1,y=2,z=3;
|
|
>x : Symbol(x, Decl(multivar.ts, 1, 3))
|
|
>y : Symbol(y, Decl(multivar.ts, 1, 8))
|
|
>z : Symbol(z, Decl(multivar.ts, 1, 12))
|
|
|
|
module m2 {
|
|
>m2 : Symbol(m2, Decl(multivar.ts, 1, 16))
|
|
|
|
export var a, b2: number = 10, b;
|
|
>a : Symbol(a, Decl(multivar.ts, 5, 14))
|
|
>b2 : Symbol(b2, Decl(multivar.ts, 5, 17))
|
|
>b : Symbol(b, Decl(multivar.ts, 5, 34))
|
|
|
|
var m1;
|
|
>m1 : Symbol(m1, Decl(multivar.ts, 6, 7))
|
|
|
|
var a2, b22: number = 10, b222;
|
|
>a2 : Symbol(a2, Decl(multivar.ts, 7, 7))
|
|
>b22 : Symbol(b22, Decl(multivar.ts, 7, 11))
|
|
>b222 : Symbol(b222, Decl(multivar.ts, 7, 29))
|
|
|
|
var m3;
|
|
>m3 : Symbol(m3, Decl(multivar.ts, 8, 7))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(multivar.ts, 8, 11))
|
|
|
|
constructor (public b) {
|
|
>b : Symbol(C.b, Decl(multivar.ts, 11, 21))
|
|
}
|
|
}
|
|
|
|
export class C2 {
|
|
>C2 : Symbol(C2, Decl(multivar.ts, 13, 5))
|
|
|
|
constructor (public b) {
|
|
>b : Symbol(C2.b, Decl(multivar.ts, 16, 21))
|
|
}
|
|
}
|
|
var m;
|
|
>m : Symbol(m, Decl(multivar.ts, 19, 7))
|
|
|
|
declare var d1, d2;
|
|
>d1 : Symbol(d1, Decl(multivar.ts, 20, 15))
|
|
>d2 : Symbol(d2, Decl(multivar.ts, 20, 19))
|
|
|
|
var b2;
|
|
>b2 : Symbol(b2, Decl(multivar.ts, 5, 17), Decl(multivar.ts, 21, 7))
|
|
|
|
declare var v1;
|
|
>v1 : Symbol(v1, Decl(multivar.ts, 23, 15))
|
|
}
|
|
|
|
var d;
|
|
>d : Symbol(d, Decl(multivar.ts, 26, 3))
|
|
|
|
var a22, b22 = 10, c22 = 30, dn;
|
|
>a22 : Symbol(a22, Decl(multivar.ts, 27, 3))
|
|
>b22 : Symbol(b22, Decl(multivar.ts, 27, 8))
|
|
>c22 : Symbol(c22, Decl(multivar.ts, 27, 18))
|
|
>dn : Symbol(dn, Decl(multivar.ts, 27, 28))
|
|
|
|
var nn;
|
|
>nn : Symbol(nn, Decl(multivar.ts, 28, 3))
|
|
|
|
declare var da1, da2;
|
|
>da1 : Symbol(da1, Decl(multivar.ts, 30, 11))
|
|
>da2 : Symbol(da2, Decl(multivar.ts, 30, 16))
|
|
|
|
var normalVar;
|
|
>normalVar : Symbol(normalVar, Decl(multivar.ts, 31, 3))
|
|
|
|
declare var dv1;
|
|
>dv1 : Symbol(dv1, Decl(multivar.ts, 32, 11))
|
|
|
|
var xl;
|
|
>xl : Symbol(xl, Decl(multivar.ts, 33, 3))
|
|
|
|
var x3;
|
|
>x3 : Symbol(x3, Decl(multivar.ts, 34, 3))
|
|
|
|
var z4;
|
|
>z4 : Symbol(z4, Decl(multivar.ts, 35, 3))
|
|
|
|
function foo(a2) {
|
|
>foo : Symbol(foo, Decl(multivar.ts, 35, 7))
|
|
>a2 : Symbol(a2, Decl(multivar.ts, 37, 13))
|
|
|
|
var a = 10;
|
|
>a : Symbol(a, Decl(multivar.ts, 38, 7))
|
|
}
|
|
|
|
|
|
for (var i = 0; i < 30; i++) {
|
|
>i : Symbol(i, Decl(multivar.ts, 42, 8))
|
|
>i : Symbol(i, Decl(multivar.ts, 42, 8))
|
|
>i : Symbol(i, Decl(multivar.ts, 42, 8))
|
|
|
|
i++;
|
|
>i : Symbol(i, Decl(multivar.ts, 42, 8))
|
|
}
|
|
var b5 = 10;
|
|
>b5 : Symbol(b5, Decl(multivar.ts, 45, 3))
|
|
|