File: importAliasFromNamespace.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (52 lines) | stat: -rw-r--r-- 1,916 bytes parent folder | download | duplicates (5)
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
=== tests/cases/compiler/usage.ts ===
/// <reference path="./internal.ts" />
namespace SomeOther.Thing {
>SomeOther : Symbol(SomeOther, Decl(usage.ts, 0, 0))
>Thing : Symbol(Thing, Decl(usage.ts, 1, 20))

    import Internal = My.Internal;
>Internal : Symbol(Internal, Decl(usage.ts, 1, 27))
>My : Symbol(My, Decl(internal.ts, 0, 0))
>Internal : Symbol(Internal, Decl(internal.ts, 0, 13))

    export class Foo {
>Foo : Symbol(Foo, Decl(usage.ts, 2, 34))

        private _which: Internal.WhichThing;
>_which : Symbol(Foo._which, Decl(usage.ts, 3, 22))
>Internal : Symbol(Internal, Decl(usage.ts, 1, 27))
>WhichThing : Symbol(Internal.WhichThing, Decl(internal.ts, 1, 39))

        constructor() {
            Internal.getThing();
>Internal.getThing : Symbol(Internal.getThing, Decl(internal.ts, 0, 23))
>Internal : Symbol(Internal, Decl(usage.ts, 1, 27))
>getThing : Symbol(Internal.getThing, Decl(internal.ts, 0, 23))

            Internal.WhichThing.A ? "foo" : "bar";
>Internal.WhichThing.A : Symbol(Internal.WhichThing.A, Decl(internal.ts, 2, 34))
>Internal.WhichThing : Symbol(Internal.WhichThing, Decl(internal.ts, 1, 39))
>Internal : Symbol(Internal, Decl(usage.ts, 1, 27))
>WhichThing : Symbol(Internal.WhichThing, Decl(internal.ts, 1, 39))
>A : Symbol(Internal.WhichThing.A, Decl(internal.ts, 2, 34))
        }
    }
}
=== tests/cases/compiler/internal.ts ===
namespace My.Internal {
>My : Symbol(My, Decl(internal.ts, 0, 0))
>Internal : Symbol(Internal, Decl(internal.ts, 0, 13))

    export function getThing(): void {}
>getThing : Symbol(getThing, Decl(internal.ts, 0, 23))

    export const enum WhichThing {
>WhichThing : Symbol(WhichThing, Decl(internal.ts, 1, 39))

        A, B, C
>A : Symbol(WhichThing.A, Decl(internal.ts, 2, 34))
>B : Symbol(WhichThing.B, Decl(internal.ts, 3, 10))
>C : Symbol(WhichThing.C, Decl(internal.ts, 3, 13))
    }
}