* 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
156 lines
1.8 KiB
Plaintext
156 lines
1.8 KiB
Plaintext
=== tests/cases/compiler/qualify.ts ===
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export var m=0;
|
|
>m : number
|
|
>0 : 0
|
|
|
|
export module N {
|
|
>N : typeof N
|
|
|
|
export var n=1;
|
|
>n : number
|
|
>1 : 1
|
|
}
|
|
}
|
|
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export module N {
|
|
>N : typeof N
|
|
|
|
var y=m;
|
|
>y : number
|
|
>m : number
|
|
|
|
var x=n+y;
|
|
>x : number
|
|
>n+y : number
|
|
>n : number
|
|
>y : number
|
|
}
|
|
}
|
|
|
|
|
|
module T {
|
|
>T : typeof T
|
|
|
|
export interface I {
|
|
>I : I
|
|
|
|
p;
|
|
>p : any
|
|
}
|
|
export module U {
|
|
>U : typeof U
|
|
|
|
var z:I=3;
|
|
>z : I
|
|
>I : I
|
|
>3 : 3
|
|
|
|
export interface I2 {
|
|
>I2 : I2
|
|
|
|
q;
|
|
>q : any
|
|
}
|
|
}
|
|
}
|
|
|
|
module Peer {
|
|
>Peer : typeof Peer
|
|
|
|
export module U2 {
|
|
>U2 : typeof U2
|
|
|
|
var z:T.U.I2=3;
|
|
>z : T.U.I2
|
|
>T : any
|
|
>U : any
|
|
>I2 : T.U.I2
|
|
>3 : 3
|
|
}
|
|
}
|
|
|
|
module Everest {
|
|
>Everest : typeof Everest
|
|
|
|
export module K1 {
|
|
>K1 : any
|
|
|
|
export interface I3 {
|
|
>I3 : I3
|
|
|
|
zeep;
|
|
>zeep : any
|
|
}
|
|
}
|
|
export module K2 {
|
|
>K2 : typeof K2
|
|
|
|
export interface I4 {
|
|
>I4 : I4
|
|
|
|
z;
|
|
>z : any
|
|
}
|
|
var v1:I4;
|
|
>v1 : I4
|
|
>I4 : I4
|
|
|
|
var v2:K1.I3=v1;
|
|
>v2 : K1.I3
|
|
>K1 : any
|
|
>I3 : K1.I3
|
|
>v1 : I4
|
|
|
|
var v3:K1.I3[]=v1;
|
|
>v3 : K1.I3[]
|
|
>K1 : any
|
|
>I3 : K1.I3
|
|
>v1 : I4
|
|
|
|
var v4:()=>K1.I3=v1;
|
|
>v4 : () => K1.I3
|
|
>K1 : any
|
|
>I3 : K1.I3
|
|
>v1 : I4
|
|
|
|
var v5:(k:K1.I3)=>void=v1;
|
|
>v5 : (k: K1.I3) => void
|
|
>k : K1.I3
|
|
>K1 : any
|
|
>I3 : K1.I3
|
|
>v1 : I4
|
|
|
|
var v6:{k:K1.I3;}=v1;
|
|
>v6 : { k: K1.I3; }
|
|
>k : K1.I3
|
|
>K1 : any
|
|
>I3 : K1.I3
|
|
>v1 : I4
|
|
}
|
|
}
|
|
|
|
interface I {
|
|
>I : I
|
|
|
|
k;
|
|
>k : any
|
|
}
|
|
|
|
var y:I;
|
|
>y : I
|
|
>I : I
|
|
|
|
var x:T.I=y;
|
|
>x : T.I
|
|
>T : any
|
|
>I : T.I
|
|
>y : I
|
|
|
|
|