File: moduleAugmentationDoesNamespaceMergeOfReexport.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 (64 lines) | stat: -rw-r--r-- 2,140 bytes parent folder | download | duplicates (2)
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
60
61
62
63
64
=== tests/cases/compiler/file.ts ===
export namespace Root {
>Root : Symbol(Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29))

    export interface Foo {
>Foo : Symbol(Foo, Decl(file.ts, 0, 23), Decl(augment.ts, 3, 27))

        x: number;
>x : Symbol(Foo.x, Decl(file.ts, 1, 26))
    }
}
=== tests/cases/compiler/reexport.ts ===

export * from "./file";
=== tests/cases/compiler/augment.ts ===
import * as ns from "./reexport";
>ns : Symbol(ns, Decl(augment.ts, 0, 6))

declare module "./reexport" {
>"./reexport" : Symbol(ns, Decl(reexport.ts, 0, 0), Decl(augment.ts, 0, 33))

    export namespace Root {
>Root : Symbol(Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29))

        export interface Foo {
>Foo : Symbol(Foo, Decl(file.ts, 0, 23), Decl(augment.ts, 3, 27))

            self: Foo;
>self : Symbol(Foo.self, Decl(augment.ts, 4, 30))
>Foo : Symbol(Foo, Decl(file.ts, 0, 23), Decl(augment.ts, 3, 27))
        }
    }
}

declare const f: ns.Root.Foo;
>f : Symbol(f, Decl(augment.ts, 10, 13))
>ns : Symbol(ns, Decl(augment.ts, 0, 6))
>Root : Symbol(ns.Root, Decl(file.ts, 0, 0), Decl(augment.ts, 2, 29))
>Foo : Symbol(ns.Root.Foo, Decl(file.ts, 0, 23), Decl(augment.ts, 3, 27))

f.x;
>f.x : Symbol(ns.Root.Foo.x, Decl(file.ts, 1, 26))
>f : Symbol(f, Decl(augment.ts, 10, 13))
>x : Symbol(ns.Root.Foo.x, Decl(file.ts, 1, 26))

f.self;
>f.self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>f : Symbol(f, Decl(augment.ts, 10, 13))
>self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))

f.self.x;
>f.self.x : Symbol(ns.Root.Foo.x, Decl(file.ts, 1, 26))
>f.self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>f : Symbol(f, Decl(augment.ts, 10, 13))
>self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>x : Symbol(ns.Root.Foo.x, Decl(file.ts, 1, 26))

f.self.self;
>f.self.self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>f.self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>f : Symbol(f, Decl(augment.ts, 10, 13))
>self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))
>self : Symbol(ns.Root.Foo.self, Decl(augment.ts, 4, 30))