File: es6ClassTest8.types

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 (187 lines) | stat: -rw-r--r-- 4,656 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
=== tests/cases/compiler/es6ClassTest8.ts ===
function f1(x:any) {return x;}
>f1 : (x: any) => any
>x : any
>x : any

class C {
>C : C

    constructor() {
        var bar:any = (function() {
>bar : any
>(function() {            return bar; // 'bar' should be resolvable        }) : () => any
>function() {            return bar; // 'bar' should be resolvable        } : () => any

            return bar; // 'bar' should be resolvable
>bar : any

        });
        var b = f1(f1(bar));
>b : any
>f1(f1(bar)) : any
>f1 : (x: any) => any
>f1(bar) : any
>f1 : (x: any) => any
>bar : any
    }
  
}

class Vector {
>Vector : Vector

    static norm(v:Vector):Vector {return null;}
>norm : (v: Vector) => Vector
>v : Vector
>Vector : Vector
>Vector : Vector
>null : null

    static minus(v1:Vector, v2:Vector):Vector {return null;}
>minus : (v1: Vector, v2: Vector) => Vector
>v1 : Vector
>Vector : Vector
>v2 : Vector
>Vector : Vector
>Vector : Vector
>null : null

    static times(v1:Vector, v2:Vector):Vector {return null;}
>times : (v1: Vector, v2: Vector) => Vector
>v1 : Vector
>Vector : Vector
>v2 : Vector
>Vector : Vector
>Vector : Vector
>null : null

    static cross(v1:Vector, v2:Vector):Vector {return null;}
>cross : (v1: Vector, v2: Vector) => Vector
>v1 : Vector
>Vector : Vector
>v2 : Vector
>Vector : Vector
>Vector : Vector
>null : null

    constructor(public x: number,
>x : number

                public y: number,
>y : number

                public z: number) { 
>z : number
    }

    static dot(v1:Vector, v2:Vector):Vector {return null;}    
>dot : (v1: Vector, v2: Vector) => Vector
>v1 : Vector
>Vector : Vector
>v2 : Vector
>Vector : Vector
>Vector : Vector
>null : null

}              

class Camera {
>Camera : Camera

    public forward: Vector;
>forward : Vector
>Vector : Vector

    public right: Vector;
>right : Vector
>Vector : Vector

    public up: Vector;
>up : Vector
>Vector : Vector

    constructor(public pos: Vector, lookAt: Vector) { 
>pos : Vector
>Vector : Vector
>lookAt : Vector
>Vector : Vector

        var down = new Vector(0.0, -1.0, 0.0);
>down : Vector
>new Vector(0.0, -1.0, 0.0) : Vector
>Vector : typeof Vector
>0.0 : 0
>-1.0 : -1
>1.0 : 1
>0.0 : 0

        this.forward = Vector.norm(Vector.minus(lookAt,this.pos));
>this.forward = Vector.norm(Vector.minus(lookAt,this.pos)) : Vector
>this.forward : Vector
>this : this
>forward : Vector
>Vector.norm(Vector.minus(lookAt,this.pos)) : Vector
>Vector.norm : (v: Vector) => Vector
>Vector : typeof Vector
>norm : (v: Vector) => Vector
>Vector.minus(lookAt,this.pos) : Vector
>Vector.minus : (v1: Vector, v2: Vector) => Vector
>Vector : typeof Vector
>minus : (v1: Vector, v2: Vector) => Vector
>lookAt : Vector
>this.pos : Vector
>this : this
>pos : Vector

        this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down)));
>this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector
>this.right : Vector
>this : this
>right : Vector
>Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector
>Vector.times : (v1: Vector, v2: Vector) => Vector
>Vector : typeof Vector
>times : (v1: Vector, v2: Vector) => Vector
>down : Vector
>Vector.norm(Vector.cross(this.forward, down)) : Vector
>Vector.norm : (v: Vector) => Vector
>Vector : typeof Vector
>norm : (v: Vector) => Vector
>Vector.cross(this.forward, down) : Vector
>Vector.cross : (v1: Vector, v2: Vector) => Vector
>Vector : typeof Vector
>cross : (v1: Vector, v2: Vector) => Vector
>this.forward : Vector
>this : this
>forward : Vector
>down : Vector

        this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right)));    
>this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector
>this.up : Vector
>this : this
>up : Vector
>Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector
>Vector.times : (v1: Vector, v2: Vector) => Vector
>Vector : typeof Vector
>times : (v1: Vector, v2: Vector) => Vector
>down : Vector
>Vector.norm(Vector.cross(this.forward, this.right)) : Vector
>Vector.norm : (v: Vector) => Vector
>Vector : typeof Vector
>norm : (v: Vector) => Vector
>Vector.cross(this.forward, this.right) : Vector
>Vector.cross : (v1: Vector, v2: Vector) => Vector
>Vector : typeof Vector
>cross : (v1: Vector, v2: Vector) => Vector
>this.forward : Vector
>this : this
>forward : Vector
>this.right : Vector
>this : this
>right : Vector
    }
}