File: scopeResolutionIdentifiers.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 (94 lines) | stat: -rw-r--r-- 3,542 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
=== tests/cases/conformance/expressions/identifiers/scopeResolutionIdentifiers.ts ===
// EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope

var s: string;
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 2, 3))

module M1 {
>M1 : Symbol(M1, Decl(scopeResolutionIdentifiers.ts, 2, 14))

    export var s: number;
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 4, 14))

    var n = s;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 5, 7), Decl(scopeResolutionIdentifiers.ts, 6, 7))
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 4, 14))

    var n: number;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 5, 7), Decl(scopeResolutionIdentifiers.ts, 6, 7))
}

module M2 {
>M2 : Symbol(M2, Decl(scopeResolutionIdentifiers.ts, 7, 1))

    var s: number;
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 10, 7))

    var n = s;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 11, 7), Decl(scopeResolutionIdentifiers.ts, 12, 7))
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 10, 7))

    var n: number;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 11, 7), Decl(scopeResolutionIdentifiers.ts, 12, 7))
}

function fn() {
>fn : Symbol(fn, Decl(scopeResolutionIdentifiers.ts, 13, 1))

    var s: boolean;
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 16, 7))

    var n = s;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 17, 7), Decl(scopeResolutionIdentifiers.ts, 18, 7))
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 16, 7))

    var n: boolean;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 17, 7), Decl(scopeResolutionIdentifiers.ts, 18, 7))
}

class C {
>C : Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1))

    s: Date;
>s : Symbol(C.s, Decl(scopeResolutionIdentifiers.ts, 21, 9))
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --))

    n = this.s;
>n : Symbol(C.n, Decl(scopeResolutionIdentifiers.ts, 22, 12))
>this.s : Symbol(C.s, Decl(scopeResolutionIdentifiers.ts, 21, 9))
>this : Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1))
>s : Symbol(C.s, Decl(scopeResolutionIdentifiers.ts, 21, 9))

    x() {
>x : Symbol(C.x, Decl(scopeResolutionIdentifiers.ts, 23, 15))

        var p = this.n;
>p : Symbol(p, Decl(scopeResolutionIdentifiers.ts, 25, 11), Decl(scopeResolutionIdentifiers.ts, 26, 11))
>this.n : Symbol(C.n, Decl(scopeResolutionIdentifiers.ts, 22, 12))
>this : Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1))
>n : Symbol(C.n, Decl(scopeResolutionIdentifiers.ts, 22, 12))

        var p: Date;
>p : Symbol(p, Decl(scopeResolutionIdentifiers.ts, 25, 11), Decl(scopeResolutionIdentifiers.ts, 26, 11))
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --))
    }
}

module M3 {
>M3 : Symbol(M3, Decl(scopeResolutionIdentifiers.ts, 28, 1))

    var s: any;
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 31, 7))

    module M4 {
>M4 : Symbol(M4, Decl(scopeResolutionIdentifiers.ts, 31, 15))

        var n = s;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 33, 11), Decl(scopeResolutionIdentifiers.ts, 34, 11))
>s : Symbol(s, Decl(scopeResolutionIdentifiers.ts, 31, 7))

        var n: any;
>n : Symbol(n, Decl(scopeResolutionIdentifiers.ts, 33, 11), Decl(scopeResolutionIdentifiers.ts, 34, 11))
    }
}