* 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
41 lines
1 KiB
Text
41 lines
1 KiB
Text
=== tests/cases/compiler/parseTypes.ts ===
|
|
var x = <() => number>null;
|
|
>x : Symbol(x, Decl(parseTypes.ts, 0, 3))
|
|
|
|
var y = <{(): number; }>null;
|
|
>y : Symbol(y, Decl(parseTypes.ts, 1, 3))
|
|
|
|
var z = <{new(): number; }>null
|
|
>z : Symbol(z, Decl(parseTypes.ts, 2, 3))
|
|
|
|
var w = <{[x:number]: number; }>null
|
|
>w : Symbol(w, Decl(parseTypes.ts, 3, 3))
|
|
>x : Symbol(x, Decl(parseTypes.ts, 3, 11))
|
|
|
|
function f() { return 3 };
|
|
>f : Symbol(f, Decl(parseTypes.ts, 3, 36))
|
|
|
|
function g(s: string) { true };
|
|
>g : Symbol(g, Decl(parseTypes.ts, 4, 26))
|
|
>s : Symbol(s, Decl(parseTypes.ts, 5, 11))
|
|
|
|
y=f;
|
|
>y : Symbol(y, Decl(parseTypes.ts, 1, 3))
|
|
>f : Symbol(f, Decl(parseTypes.ts, 3, 36))
|
|
|
|
y=g;
|
|
>y : Symbol(y, Decl(parseTypes.ts, 1, 3))
|
|
>g : Symbol(g, Decl(parseTypes.ts, 4, 26))
|
|
|
|
x=g;
|
|
>x : Symbol(x, Decl(parseTypes.ts, 0, 3))
|
|
>g : Symbol(g, Decl(parseTypes.ts, 4, 26))
|
|
|
|
w=g;
|
|
>w : Symbol(w, Decl(parseTypes.ts, 3, 3))
|
|
>g : Symbol(g, Decl(parseTypes.ts, 4, 26))
|
|
|
|
z=g;
|
|
>z : Symbol(z, Decl(parseTypes.ts, 2, 3))
|
|
>g : Symbol(g, Decl(parseTypes.ts, 4, 26))
|
|
|