* 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
112 lines
1.4 KiB
Text
112 lines
1.4 KiB
Text
=== tests/cases/compiler/varBlock.ts ===
|
|
module m2 {
|
|
>m2 : typeof m2
|
|
|
|
export var a, b2: number = 10, b;
|
|
>a : any
|
|
>b2 : number
|
|
>10 : 10
|
|
>b : any
|
|
}
|
|
|
|
declare module m3 {
|
|
>m3 : typeof m3
|
|
|
|
var a, b, c;
|
|
>a : any
|
|
>b : any
|
|
>c : any
|
|
|
|
var a1, b1 = 10;
|
|
>a1 : any
|
|
>b1 : number
|
|
>10 : 10
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
constructor (public c = 10);
|
|
>c : number
|
|
>10 : 10
|
|
}
|
|
}
|
|
|
|
declare var b = 10;
|
|
>b : number
|
|
>10 : 10
|
|
|
|
declare var a2, b2, c2;
|
|
>a2 : any
|
|
>b2 : any
|
|
>c2 : any
|
|
|
|
|
|
|
|
declare var da = 10;
|
|
>da : number
|
|
>10 : 10
|
|
|
|
declare var d3, d4 = 10;
|
|
>d3 : any
|
|
>d4 : number
|
|
>10 : 10
|
|
|
|
module m3 {
|
|
>m3 : typeof m3
|
|
|
|
declare var d = 10;
|
|
>d : number
|
|
>10 : 10
|
|
|
|
declare var d2, d3 = 10, d4 = 10;
|
|
>d2 : any
|
|
>d3 : number
|
|
>10 : 10
|
|
>d4 : number
|
|
>10 : 10
|
|
|
|
export declare var dE = 10;
|
|
>dE : number
|
|
>10 : 10
|
|
|
|
export declare var d2E, d3E = 10, d4E = 10;
|
|
>d2E : any
|
|
>d3E : number
|
|
>10 : 10
|
|
>d4E : number
|
|
>10 : 10
|
|
}
|
|
|
|
declare module m4 {
|
|
>m4 : typeof m4
|
|
|
|
var d = 10;
|
|
>d : number
|
|
>10 : 10
|
|
|
|
var d2, d3 = 10, d4 =10;
|
|
>d2 : any
|
|
>d3 : number
|
|
>10 : 10
|
|
>d4 : number
|
|
>10 : 10
|
|
|
|
export var dE = 10;
|
|
>dE : number
|
|
>10 : 10
|
|
|
|
export var d2E, d3E = 10, d4E = 10;
|
|
>d2E : any
|
|
>d3E : number
|
|
>10 : 10
|
|
>d4E : number
|
|
>10 : 10
|
|
}
|
|
|
|
declare var c;
|
|
>c : any
|
|
|
|
declare var c = 10;
|
|
>c : any
|
|
>10 : 10
|
|
|