51 lines
2 KiB
Text
51 lines
2 KiB
Text
=== tests/cases/compiler/multiModuleClodule1.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
|
|
constructor(x: number) { }
|
|
>x : Symbol(x, Decl(multiModuleClodule1.ts, 1, 16))
|
|
|
|
foo() { }
|
|
>foo : Symbol(foo, Decl(multiModuleClodule1.ts, 1, 30))
|
|
|
|
bar() { }
|
|
>bar : Symbol(bar, Decl(multiModuleClodule1.ts, 2, 13))
|
|
|
|
static boo() { }
|
|
>boo : Symbol(C.boo, Decl(multiModuleClodule1.ts, 3, 13))
|
|
}
|
|
|
|
module C {
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
|
|
export var x = 1;
|
|
>x : Symbol(x, Decl(multiModuleClodule1.ts, 8, 14))
|
|
|
|
var y = 2;
|
|
>y : Symbol(y, Decl(multiModuleClodule1.ts, 9, 7))
|
|
}
|
|
module C {
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
|
|
export function foo() { }
|
|
>foo : Symbol(foo, Decl(multiModuleClodule1.ts, 11, 10))
|
|
|
|
function baz() { return ''; }
|
|
>baz : Symbol(baz, Decl(multiModuleClodule1.ts, 12, 29))
|
|
}
|
|
|
|
var c = new C(C.x);
|
|
>c : Symbol(c, Decl(multiModuleClodule1.ts, 16, 3))
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
>C.x : Symbol(C.x, Decl(multiModuleClodule1.ts, 8, 14))
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
>x : Symbol(C.x, Decl(multiModuleClodule1.ts, 8, 14))
|
|
|
|
c.foo = C.foo;
|
|
>c.foo : Symbol(C.foo, Decl(multiModuleClodule1.ts, 1, 30))
|
|
>c : Symbol(c, Decl(multiModuleClodule1.ts, 16, 3))
|
|
>foo : Symbol(C.foo, Decl(multiModuleClodule1.ts, 1, 30))
|
|
>C.foo : Symbol(C.foo, Decl(multiModuleClodule1.ts, 11, 10))
|
|
>C : Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1))
|
|
>foo : Symbol(C.foo, Decl(multiModuleClodule1.ts, 11, 10))
|
|
|