File: exportAssignmentMergedModule.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (57 lines) | stat: -rw-r--r-- 1,683 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
=== 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))