File: ambientModuleExports.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (59 lines) | stat: -rw-r--r-- 1,986 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
58
59
=== tests/cases/compiler/ambientModuleExports.ts ===
declare module Foo {
>Foo : Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0))

	function a():void;
>a : Symbol(a, Decl(ambientModuleExports.ts, 0, 20))

	var b:number;
>b : Symbol(b, Decl(ambientModuleExports.ts, 2, 4))

	class C {}
>C : Symbol(C, Decl(ambientModuleExports.ts, 2, 14))
}

Foo.a();
>Foo.a : Symbol(Foo.a, Decl(ambientModuleExports.ts, 0, 20))
>Foo : Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0))
>a : Symbol(Foo.a, Decl(ambientModuleExports.ts, 0, 20))

Foo.b;
>Foo.b : Symbol(Foo.b, Decl(ambientModuleExports.ts, 2, 4))
>Foo : Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0))
>b : Symbol(Foo.b, Decl(ambientModuleExports.ts, 2, 4))

var c = new Foo.C();
>c : Symbol(c, Decl(ambientModuleExports.ts, 8, 3))
>Foo.C : Symbol(Foo.C, Decl(ambientModuleExports.ts, 2, 14))
>Foo : Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0))
>C : Symbol(Foo.C, Decl(ambientModuleExports.ts, 2, 14))

declare module Foo2 {
>Foo2 : Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20))

    export function a(): void;
>a : Symbol(a, Decl(ambientModuleExports.ts, 10, 21))

    export var b: number;
>b : Symbol(b, Decl(ambientModuleExports.ts, 12, 14))

    export class C { }
>C : Symbol(C, Decl(ambientModuleExports.ts, 12, 25))
}

Foo2.a();
>Foo2.a : Symbol(Foo2.a, Decl(ambientModuleExports.ts, 10, 21))
>Foo2 : Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20))
>a : Symbol(Foo2.a, Decl(ambientModuleExports.ts, 10, 21))

Foo2.b;
>Foo2.b : Symbol(Foo2.b, Decl(ambientModuleExports.ts, 12, 14))
>Foo2 : Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20))
>b : Symbol(Foo2.b, Decl(ambientModuleExports.ts, 12, 14))

var c2 = new Foo2.C();
>c2 : Symbol(c2, Decl(ambientModuleExports.ts, 18, 3))
>Foo2.C : Symbol(Foo2.C, Decl(ambientModuleExports.ts, 12, 25))
>Foo2 : Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20))
>C : Symbol(Foo2.C, Decl(ambientModuleExports.ts, 12, 25))