TypeScript/tests/baselines/reference/autolift3.types
Wesley Wigham 5353475fce Always collect type and symbol baselines (#18621)
* 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
2017-09-22 15:52:04 -07:00

70 lines
3 KiB
Plaintext

=== tests/cases/compiler/autolift3.ts ===
class B {
>B : B
constructor() {
function foo() { }
>foo : () => void
foo();
>foo() : void
>foo : () => void
var a = 0;
>a : number
>0 : 0
var inner: any = (function() {
>inner : any
>(function() { var CScriptIO = (function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } })(); return inner; })() : any
>(function() { var CScriptIO = (function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } })(); return inner; }) : () => any
>function() { var CScriptIO = (function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } })(); return inner; } : () => any
var CScriptIO = (function() {
>CScriptIO : { readFile: (path: string) => string; }
>(function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } })() : { readFile: (path: string) => string; }
>(function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } }) : () => { readFile: (path: string) => string; }
>function() { var fso = 0 return { readFile: function(path: string): string { return fso.toString(); } } } : () => { readFile: (path: string) => string; }
var fso = 0
>fso : number
>0 : 0
return {
>{ readFile: function(path: string): string { return fso.toString(); } } : { readFile: (path: string) => string; }
readFile: function(path: string): string {
>readFile : (path: string) => string
>function(path: string): string { return fso.toString(); } : (path: string) => string
>path : string
return fso.toString();
>fso.toString() : string
>fso.toString : (radix?: number) => string
>fso : number
>toString : (radix?: number) => string
}
}
})();
return inner;
>inner : any
})();
}
}
var b = new B();
>b : B
>new B() : B
>B : typeof B
b.foo();
>b.foo() : any
>b.foo : any
>b : B
>foo : any