57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
import foo = require("./foo_0");
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
|
|
var a: number = foo.a();
|
|
>a : Symbol(a, Decl(foo_1.ts, 1, 3))
|
|
>foo.a : Symbol(foo.a, Decl(foo_0.ts, 0, 12))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>a : Symbol(foo.a, Decl(foo_0.ts, 0, 12))
|
|
|
|
if(!!foo.b){
|
|
>foo.b : Symbol(foo.b, Decl(foo_0.ts, 4, 11))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>b : Symbol(foo.b, Decl(foo_0.ts, 4, 11))
|
|
|
|
foo.Test.answer = foo.c(42);
|
|
>foo.Test.answer : Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12))
|
|
>foo.Test : Symbol(foo.Test, Decl(foo_0.ts, 9, 2))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>Test : Symbol(foo.Test, Decl(foo_0.ts, 9, 2))
|
|
>answer : Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12))
|
|
>foo.c : Symbol(foo.c, Decl(foo_0.ts, 6, 12))
|
|
>foo : Symbol(foo, Decl(foo_1.ts, 0, 0))
|
|
>c : Symbol(foo.c, Decl(foo_0.ts, 6, 12))
|
|
}
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|
|
export function a(){
|
|
>a : Symbol(a, Decl(foo_0.ts, 0, 12))
|
|
|
|
return 5;
|
|
}
|
|
export var b = true;
|
|
>b : Symbol(b, Decl(foo_0.ts, 4, 11))
|
|
}
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|
|
export function c(a: number){
|
|
>c : Symbol(c, Decl(foo_0.ts, 6, 12))
|
|
>a : Symbol(a, Decl(foo_0.ts, 7, 19))
|
|
|
|
return a;
|
|
>a : Symbol(a, Decl(foo_0.ts, 7, 19))
|
|
}
|
|
export module Test {
|
|
>Test : Symbol(Test, Decl(foo_0.ts, 9, 2))
|
|
|
|
export var answer = 42;
|
|
>answer : Symbol(answer, Decl(foo_0.ts, 11, 12))
|
|
}
|
|
}
|
|
export = Foo;
|
|
>Foo : Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1))
|
|
|