* 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
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
=== tests/cases/conformance/externalModules/err1.d.ts ===
|
|
// Illegal, can't be in script file
|
|
No type information for this code.export as namespace Foo;
|
|
No type information for this code.
|
|
No type information for this code.=== tests/cases/conformance/externalModules/err2.d.ts ===
|
|
// Illegal, can't be in external ambient module
|
|
No type information for this code.declare module "Foo" {
|
|
No type information for this code. export as namespace Bar;
|
|
No type information for this code.}
|
|
No type information for this code.
|
|
No type information for this code.=== tests/cases/conformance/externalModules/err3.d.ts ===
|
|
// Illegal, can't have modifiers
|
|
export var p;
|
|
>p : Symbol(p, Decl(err3.d.ts, 1, 10))
|
|
|
|
static export as namespace oo1;
|
|
>oo1 : Symbol(oo1, Decl(err3.d.ts, 1, 13))
|
|
|
|
declare export as namespace oo2;
|
|
>oo2 : Symbol(oo2, Decl(err3.d.ts, 2, 31))
|
|
|
|
public export as namespace oo3;
|
|
>oo3 : Symbol(oo3, Decl(err3.d.ts, 3, 32))
|
|
|
|
const export as namespace oo4;
|
|
>oo4 : Symbol(oo4, Decl(err3.d.ts, 5, 5))
|
|
|
|
=== tests/cases/conformance/externalModules/err4.d.ts ===
|
|
// Illegal, must be at top-level
|
|
export namespace B {
|
|
>B : Symbol(B, Decl(err4.d.ts, 0, 0))
|
|
|
|
export as namespace C1;
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/err5.ts ===
|
|
// Illegal, may not appear in implementation files
|
|
export var v;
|
|
>v : Symbol(v, Decl(err5.ts, 1, 10))
|
|
|
|
export as namespace C2;
|
|
|
|
|