TypeScript/tests/baselines/reference/exportAssignmentTopLevelEnumdule.symbols
2015-04-15 16:44:20 -07:00

40 lines
1.2 KiB
Plaintext

=== tests/cases/conformance/externalModules/foo_1.ts ===
import foo = require("./foo_0");
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
var color: foo;
>color : Symbol(color, Decl(foo_1.ts, 1, 3))
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
if(color === foo.green){
>color : Symbol(color, Decl(foo_1.ts, 1, 3))
>foo.green : Symbol(foo.green, Decl(foo_0.ts, 1, 5))
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
>green : Symbol(foo.green, Decl(foo_0.ts, 1, 5))
color = foo.answer;
>color : Symbol(color, Decl(foo_1.ts, 1, 3))
>foo.answer : Symbol(foo.answer, Decl(foo_0.ts, 4, 11))
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
>answer : Symbol(foo.answer, Decl(foo_0.ts, 4, 11))
}
=== tests/cases/conformance/externalModules/foo_0.ts ===
enum foo {
>foo : Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1))
red, green, blue
>red : Symbol(foo.red, Decl(foo_0.ts, 0, 10))
>green : Symbol(foo.green, Decl(foo_0.ts, 1, 5))
>blue : Symbol(foo.blue, Decl(foo_0.ts, 1, 12))
}
module foo {
>foo : Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1))
export var answer = 42;
>answer : Symbol(answer, Decl(foo_0.ts, 4, 11))
}
export = foo;
>foo : Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1))