File: negateOperatorWithAnyOtherType.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 (156 lines) | stat: -rw-r--r-- 6,392 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
=== tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorWithAnyOtherType.ts ===
// - operator on any type

var ANY: any;
>ANY : Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3))

var ANY1;
>ANY1 : Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3))

var ANY2: any[] = ["", ""];
>ANY2 : Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3))

var obj: () => {}
>obj : Symbol(obj, Decl(negateOperatorWithAnyOtherType.ts, 5, 3))

var obj1 = { x: "", y: () => { }};
>obj1 : Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3))
>x : Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12))
>y : Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19))

function foo(): any {
>foo : Symbol(foo, Decl(negateOperatorWithAnyOtherType.ts, 6, 34))

    var a;
>a : Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 9, 7))

    return a;
>a : Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 9, 7))
}
class A {
>A : Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1))

    public a: any;
>a : Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9))

    static foo() {
>foo : Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18))

        var a;
>a : Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 15, 11))

        return a;
>a : Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 15, 11))
    }
}
module M {
>M : Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1))

    export var n: any;
>n : Symbol(n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14))
}
var objA = new A();
>objA : Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3))
>A : Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1))

// any type var
var ResultIsNumber1 = -ANY1;
>ResultIsNumber1 : Symbol(ResultIsNumber1, Decl(negateOperatorWithAnyOtherType.ts, 25, 3))
>ANY1 : Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3))

var ResultIsNumber2 = -ANY2;
>ResultIsNumber2 : Symbol(ResultIsNumber2, Decl(negateOperatorWithAnyOtherType.ts, 26, 3))
>ANY2 : Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3))

var ResultIsNumber3 = -A;
>ResultIsNumber3 : Symbol(ResultIsNumber3, Decl(negateOperatorWithAnyOtherType.ts, 27, 3))
>A : Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1))

var ResultIsNumber4 = -M;
>ResultIsNumber4 : Symbol(ResultIsNumber4, Decl(negateOperatorWithAnyOtherType.ts, 28, 3))
>M : Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1))

var ResultIsNumber5 = -obj;
>ResultIsNumber5 : Symbol(ResultIsNumber5, Decl(negateOperatorWithAnyOtherType.ts, 29, 3))
>obj : Symbol(obj, Decl(negateOperatorWithAnyOtherType.ts, 5, 3))

var ResultIsNumber6 = -obj1;
>ResultIsNumber6 : Symbol(ResultIsNumber6, Decl(negateOperatorWithAnyOtherType.ts, 30, 3))
>obj1 : Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3))

// any type literal
var ResultIsNumber7 = -undefined;
>ResultIsNumber7 : Symbol(ResultIsNumber7, Decl(negateOperatorWithAnyOtherType.ts, 33, 3))
>undefined : Symbol(undefined)

var ResultIsNumber = -null;
>ResultIsNumber : Symbol(ResultIsNumber, Decl(negateOperatorWithAnyOtherType.ts, 34, 3))

// any type expressions
var ResultIsNumber8 = -ANY2[0];
>ResultIsNumber8 : Symbol(ResultIsNumber8, Decl(negateOperatorWithAnyOtherType.ts, 37, 3))
>ANY2 : Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3))

var ResultIsNumber9 = -obj1.x;
>ResultIsNumber9 : Symbol(ResultIsNumber9, Decl(negateOperatorWithAnyOtherType.ts, 38, 3))
>obj1.x : Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12))
>obj1 : Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3))
>x : Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12))

var ResultIsNumber10 = -obj1.y;
>ResultIsNumber10 : Symbol(ResultIsNumber10, Decl(negateOperatorWithAnyOtherType.ts, 39, 3))
>obj1.y : Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19))
>obj1 : Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3))
>y : Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19))

var ResultIsNumber11 = -objA.a;
>ResultIsNumber11 : Symbol(ResultIsNumber11, Decl(negateOperatorWithAnyOtherType.ts, 40, 3))
>objA.a : Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9))
>objA : Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3))
>a : Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9))

var ResultIsNumber12 = -M.n;
>ResultIsNumber12 : Symbol(ResultIsNumber12, Decl(negateOperatorWithAnyOtherType.ts, 41, 3))
>M.n : Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14))
>M : Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1))
>n : Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14))

var ResultIsNumber13 = -foo();
>ResultIsNumber13 : Symbol(ResultIsNumber13, Decl(negateOperatorWithAnyOtherType.ts, 42, 3))
>foo : Symbol(foo, Decl(negateOperatorWithAnyOtherType.ts, 6, 34))

var ResultIsNumber14 = -A.foo();
>ResultIsNumber14 : Symbol(ResultIsNumber14, Decl(negateOperatorWithAnyOtherType.ts, 43, 3))
>A.foo : Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18))
>A : Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1))
>foo : Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18))

var ResultIsNumber15 = -(ANY - ANY1);
>ResultIsNumber15 : Symbol(ResultIsNumber15, Decl(negateOperatorWithAnyOtherType.ts, 44, 3))
>ANY : Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3))
>ANY1 : Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3))

// miss assignment operators
-ANY;
>ANY : Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3))

-ANY1;
>ANY1 : Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3))

-ANY2[0];
>ANY2 : Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3))

-ANY, ANY1;
>ANY : Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3))
>ANY1 : Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3))

-objA.a;
>objA.a : Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9))
>objA : Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3))
>a : Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9))

-M.n;
>M.n : Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14))
>M : Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1))
>n : Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14))