* 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
78 lines
2 KiB
Plaintext
78 lines
2 KiB
Plaintext
=== tests/cases/conformance/jsx/file.tsx ===
|
|
declare module JSX {
|
|
>JSX : Symbol(JSX, Decl(file.tsx, 0, 0))
|
|
|
|
interface Element { }
|
|
>Element : Symbol(Element, Decl(file.tsx, 0, 20))
|
|
|
|
interface IntrinsicElements { }
|
|
>IntrinsicElements : Symbol(IntrinsicElements, Decl(file.tsx, 1, 22))
|
|
}
|
|
|
|
module M {
|
|
>M : Symbol(M, Decl(file.tsx, 3, 1), Decl(file.tsx, 13, 1), Decl(file.tsx, 27, 1), Decl(file.tsx, 32, 1))
|
|
|
|
export class Foo { constructor() { } }
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
|
|
export module S {
|
|
>S : Symbol(S, Decl(file.tsx, 6, 39), Decl(file.tsx, 17, 14))
|
|
|
|
export class Bar { }
|
|
>Bar : Symbol(Bar, Decl(file.tsx, 7, 18))
|
|
|
|
// Emit Foo
|
|
// Foo, <Foo />;
|
|
}
|
|
}
|
|
|
|
module M {
|
|
>M : Symbol(M, Decl(file.tsx, 3, 1), Decl(file.tsx, 13, 1), Decl(file.tsx, 27, 1), Decl(file.tsx, 32, 1))
|
|
|
|
// Emit M.Foo
|
|
Foo, <Foo />;
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
|
|
export module S {
|
|
>S : Symbol(S, Decl(file.tsx, 6, 39), Decl(file.tsx, 17, 14))
|
|
|
|
// Emit M.Foo
|
|
Foo, <Foo />;
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
|
|
// Emit S.Bar
|
|
Bar, <Bar />;
|
|
>Bar : Symbol(Bar, Decl(file.tsx, 7, 18))
|
|
>Bar : Symbol(Bar, Decl(file.tsx, 7, 18))
|
|
}
|
|
|
|
}
|
|
|
|
module M {
|
|
>M : Symbol(M, Decl(file.tsx, 3, 1), Decl(file.tsx, 13, 1), Decl(file.tsx, 27, 1), Decl(file.tsx, 32, 1))
|
|
|
|
// Emit M.S.Bar
|
|
S.Bar, <S.Bar />;
|
|
>S.Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18))
|
|
>S : Symbol(S, Decl(file.tsx, 6, 39), Decl(file.tsx, 17, 14))
|
|
>Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18))
|
|
>S.Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18))
|
|
>S : Symbol(S, Decl(file.tsx, 6, 39), Decl(file.tsx, 17, 14))
|
|
>Bar : Symbol(S.Bar, Decl(file.tsx, 7, 18))
|
|
}
|
|
|
|
module M {
|
|
>M : Symbol(M, Decl(file.tsx, 3, 1), Decl(file.tsx, 13, 1), Decl(file.tsx, 27, 1), Decl(file.tsx, 32, 1))
|
|
|
|
var M = 100;
|
|
>M : Symbol(M, Decl(file.tsx, 35, 4))
|
|
|
|
// Emit M_1.Foo
|
|
Foo, <Foo />;
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
>Foo : Symbol(Foo, Decl(file.tsx, 5, 10))
|
|
}
|
|
|