TypeScript/tests/baselines/reference/fuzzy.symbols
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

71 lines
1.8 KiB
Plaintext

=== tests/cases/compiler/fuzzy.ts ===
module M {
>M : Symbol(M, Decl(fuzzy.ts, 0, 0))
export interface I {
>I : Symbol(I, Decl(fuzzy.ts, 0, 10))
works:()=>R;
>works : Symbol(I.works, Decl(fuzzy.ts, 1, 24))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
alsoWorks:()=>R;
>alsoWorks : Symbol(I.alsoWorks, Decl(fuzzy.ts, 2, 20))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
doesntWork:()=>R;
>doesntWork : Symbol(I.doesntWork, Decl(fuzzy.ts, 3, 24))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
}
export interface R {
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
anything:number;
>anything : Symbol(R.anything, Decl(fuzzy.ts, 7, 24))
oneI:I;
>oneI : Symbol(R.oneI, Decl(fuzzy.ts, 8, 24))
>I : Symbol(I, Decl(fuzzy.ts, 0, 10))
}
export class C implements I {
>C : Symbol(C, Decl(fuzzy.ts, 10, 5))
>I : Symbol(I, Decl(fuzzy.ts, 0, 10))
constructor(public x:number) {
>x : Symbol(C.x, Decl(fuzzy.ts, 13, 20))
}
works():R {
>works : Symbol(C.works, Decl(fuzzy.ts, 14, 9))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
return <R>({ anything: 1 });
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
>anything : Symbol(anything, Decl(fuzzy.ts, 16, 24))
}
doesntWork():R {
>doesntWork : Symbol(C.doesntWork, Decl(fuzzy.ts, 17, 9))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
return { anything:1, oneI:this };
>anything : Symbol(anything, Decl(fuzzy.ts, 20, 20))
>oneI : Symbol(oneI, Decl(fuzzy.ts, 20, 32))
>this : Symbol(C, Decl(fuzzy.ts, 10, 5))
}
worksToo():R {
>worksToo : Symbol(C.worksToo, Decl(fuzzy.ts, 21, 9))
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
return <R>({ oneI: this });
>R : Symbol(R, Decl(fuzzy.ts, 5, 5))
>oneI : Symbol(oneI, Decl(fuzzy.ts, 24, 24))
>this : Symbol(C, Decl(fuzzy.ts, 10, 5))
}
}
}