TypeScript/tests/baselines/reference/declInput-2.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

78 lines
1.1 KiB
Plaintext

=== tests/cases/compiler/declInput-2.ts ===
module M {
>M : typeof M
class C { }
>C : C
export class E {}
>E : E
export interface I1 {}
>I1 : I1
interface I2 {}
>I2 : I2
export class D {
>D : D
private c: C; // don't generate
>c : C
>C : C
public m1: number;
>m1 : number
public m2: string;
>m2 : string
public m22: C; // don't generate
>m22 : C
>C : C
public m23: E;
>m23 : E
>E : E
public m24: I1;
>m24 : I1
>I1 : I1
public m25: I2; // don't generate
>m25 : I2
>I2 : I2
public m232(): E { return null;}
>m232 : () => E
>E : E
>null : null
public m242(): I1 { return null; }
>m242 : () => I1
>I1 : I1
>null : null
public m252(): I2 { return null; } // don't generate
>m252 : () => I2
>I2 : I2
>null : null
public m26(i:I1) {}
>m26 : (i: I1) => void
>i : I1
>I1 : I1
public m262(i:I2) {}
>m262 : (i: I2) => void
>i : I2
>I2 : I2
public m3():C { return new C(); }
>m3 : () => C
>C : C
>new C() : C
>C : typeof C
}
}