* 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
34 lines
808 B
Plaintext
34 lines
808 B
Plaintext
=== tests/cases/compiler/createArray.ts ===
|
|
var na=new number[];
|
|
>na : Symbol(na, Decl(createArray.ts, 0, 3))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(createArray.ts, 0, 20))
|
|
}
|
|
|
|
new C[];
|
|
>C : Symbol(C, Decl(createArray.ts, 0, 20))
|
|
|
|
var ba=new boolean[];
|
|
>ba : Symbol(ba, Decl(createArray.ts, 6, 3))
|
|
|
|
var sa=new string[];
|
|
>sa : Symbol(sa, Decl(createArray.ts, 7, 3))
|
|
|
|
function f(s:string):number { return 0;
|
|
>f : Symbol(f, Decl(createArray.ts, 7, 20))
|
|
>s : Symbol(s, Decl(createArray.ts, 8, 11))
|
|
}
|
|
if (ba[14]) {
|
|
>ba : Symbol(ba, Decl(createArray.ts, 6, 3))
|
|
|
|
na[2]=f(sa[3]);
|
|
>na : Symbol(na, Decl(createArray.ts, 0, 3))
|
|
>f : Symbol(f, Decl(createArray.ts, 7, 20))
|
|
>sa : Symbol(sa, Decl(createArray.ts, 7, 3))
|
|
}
|
|
|
|
new C[1]; // not an error
|
|
>C : Symbol(C, Decl(createArray.ts, 0, 20))
|
|
|