* 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
60 lines
1.5 KiB
Text
60 lines
1.5 KiB
Text
=== tests/cases/compiler/forIn.ts ===
|
|
var arr = null;
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
|
|
for (var i:number in arr) { // error
|
|
>i : Symbol(i, Decl(forIn.ts, 1, 8))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
|
|
var x1 = arr[i];
|
|
>x1 : Symbol(x1, Decl(forIn.ts, 2, 7))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
>i : Symbol(i, Decl(forIn.ts, 1, 8))
|
|
|
|
var y1 = arr[i];
|
|
>y1 : Symbol(y1, Decl(forIn.ts, 3, 7))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
>i : Symbol(i, Decl(forIn.ts, 1, 8))
|
|
}
|
|
|
|
for (var j in arr) { // ok
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
|
|
var x2 = arr[j];
|
|
>x2 : Symbol(x2, Decl(forIn.ts, 7, 7))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
|
|
var y2 = arr[j];
|
|
>y2 : Symbol(y2, Decl(forIn.ts, 8, 7))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
}
|
|
|
|
var arr2 = [];
|
|
>arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3))
|
|
|
|
for (j in arr2) { // ok
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
>arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3))
|
|
|
|
var x3 = arr2[j];
|
|
>x3 : Symbol(x3, Decl(forIn.ts, 13, 7))
|
|
>arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3))
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
|
|
var y3 = arr2[j];
|
|
>y3 : Symbol(y3, Decl(forIn.ts, 14, 7))
|
|
>arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3))
|
|
>j : Symbol(j, Decl(forIn.ts, 6, 8))
|
|
}
|
|
|
|
for (var l in arr) {
|
|
>l : Symbol(l, Decl(forIn.ts, 17, 8))
|
|
>arr : Symbol(arr, Decl(forIn.ts, 0, 3))
|
|
|
|
// error in the body
|
|
k[l] = 1;
|
|
>l : Symbol(l, Decl(forIn.ts, 17, 8))
|
|
}
|