File: typeOfThisInMemberFunctions.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (71 lines) | stat: -rw-r--r-- 2,326 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
65
66
67
68
69
70
71
=== tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/typeOfThisInMemberFunctions.ts ===
class C {
>C : Symbol(C, Decl(typeOfThisInMemberFunctions.ts, 0, 0))

    foo() {
>foo : Symbol(C.foo, Decl(typeOfThisInMemberFunctions.ts, 0, 9))

        var r = this;
>r : Symbol(r, Decl(typeOfThisInMemberFunctions.ts, 2, 11))
>this : Symbol(C, Decl(typeOfThisInMemberFunctions.ts, 0, 0))
    }

    static bar() {
>bar : Symbol(C.bar, Decl(typeOfThisInMemberFunctions.ts, 3, 5))

        var r2 = this;
>r2 : Symbol(r2, Decl(typeOfThisInMemberFunctions.ts, 6, 11))
>this : Symbol(C, Decl(typeOfThisInMemberFunctions.ts, 0, 0))
    }
}

class D<T> {
>D : Symbol(D, Decl(typeOfThisInMemberFunctions.ts, 8, 1))
>T : Symbol(T, Decl(typeOfThisInMemberFunctions.ts, 10, 8))

    x: T;
>x : Symbol(D.x, Decl(typeOfThisInMemberFunctions.ts, 10, 12))
>T : Symbol(T, Decl(typeOfThisInMemberFunctions.ts, 10, 8))

    foo() {
>foo : Symbol(D.foo, Decl(typeOfThisInMemberFunctions.ts, 11, 9))

        var r = this;
>r : Symbol(r, Decl(typeOfThisInMemberFunctions.ts, 13, 11))
>this : Symbol(D, Decl(typeOfThisInMemberFunctions.ts, 8, 1))
    }

    static bar() {
>bar : Symbol(D.bar, Decl(typeOfThisInMemberFunctions.ts, 14, 5))

        var r2 = this;
>r2 : Symbol(r2, Decl(typeOfThisInMemberFunctions.ts, 17, 11))
>this : Symbol(D, Decl(typeOfThisInMemberFunctions.ts, 8, 1))
    }
}

class E<T extends Date> {
>E : Symbol(E, Decl(typeOfThisInMemberFunctions.ts, 19, 1))
>T : Symbol(T, Decl(typeOfThisInMemberFunctions.ts, 21, 8))
>Date : Symbol(Date, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))

    x: T;
>x : Symbol(E.x, Decl(typeOfThisInMemberFunctions.ts, 21, 25))
>T : Symbol(T, Decl(typeOfThisInMemberFunctions.ts, 21, 8))

    foo() {
>foo : Symbol(E.foo, Decl(typeOfThisInMemberFunctions.ts, 22, 9))

        var r = this;
>r : Symbol(r, Decl(typeOfThisInMemberFunctions.ts, 24, 11))
>this : Symbol(E, Decl(typeOfThisInMemberFunctions.ts, 19, 1))
    }

    static bar() {
>bar : Symbol(E.bar, Decl(typeOfThisInMemberFunctions.ts, 25, 5))

        var r2 = this;
>r2 : Symbol(r2, Decl(typeOfThisInMemberFunctions.ts, 28, 11))
>this : Symbol(E, Decl(typeOfThisInMemberFunctions.ts, 19, 1))
    }
}