File: blockScopedNamespaceDifferentFile.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 (44 lines) | stat: -rw-r--r-- 1,366 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
=== tests/cases/compiler/test.ts ===
// #15734 failed when test.ts comes before typings.d.ts
namespace C {
>C : Symbol(C, Decl(test.ts, 0, 0))

    export class Name {
>Name : Symbol(Name, Decl(test.ts, 1, 13))

        static funcData = A.AA.func();
>funcData : Symbol(Name.funcData, Decl(test.ts, 2, 23))
>A.AA.func : Symbol(A.AA.func, Decl(typings.d.ts, 1, 18))
>A.AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21))
>A : Symbol(A, Decl(typings.d.ts, 0, 0))
>AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21))
>func : Symbol(A.AA.func, Decl(typings.d.ts, 1, 18))

        static someConst = A.AA.foo;
>someConst : Symbol(Name.someConst, Decl(test.ts, 3, 38))
>A.AA.foo : Symbol(A.AA.foo, Decl(typings.d.ts, 3, 13))
>A.AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21))
>A : Symbol(A, Decl(typings.d.ts, 0, 0))
>AA : Symbol(A.AA, Decl(typings.d.ts, 0, 21))
>foo : Symbol(A.AA.foo, Decl(typings.d.ts, 3, 13))

        constructor(parameters) {}
>parameters : Symbol(parameters, Decl(test.ts, 6, 20))
    }
}

=== tests/cases/compiler/typings.d.ts ===
declare namespace A {
>A : Symbol(A, Decl(typings.d.ts, 0, 0))

    namespace AA {
>AA : Symbol(AA, Decl(typings.d.ts, 0, 21))

        function func(): number;
>func : Symbol(func, Decl(typings.d.ts, 1, 18))

        const foo = "";
>foo : Symbol(foo, Decl(typings.d.ts, 3, 13))
    }
}