forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass_method.js.trap
268 lines (268 loc) · 7.15 KB
/
class_method.js.trap
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
#10000=@"/class_method.js;sourcefile"
files(#10000,"/class_method.js")
#10001=@"/;folder"
folders(#10001,"/")
containerparent(#10001,#10000)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=@"global_scope"
scopes(#20000,0)
#20001=@"script;{#10000},1,1"
#20002=*
lines(#20002,#20001,"class A {","
")
#20003=@"loc,{#10000},1,1,1,9"
locations_default(#20003,#10000,1,1,1,9)
hasLocation(#20002,#20003)
#20004=*
lines(#20004,#20001," getX() {","
")
#20005=@"loc,{#10000},2,1,2,10"
locations_default(#20005,#10000,2,1,2,10)
hasLocation(#20004,#20005)
indentation(#10000,2," ",2)
#20006=*
lines(#20006,#20001," return this.x;","
")
#20007=@"loc,{#10000},3,1,3,18"
locations_default(#20007,#10000,3,1,3,18)
hasLocation(#20006,#20007)
indentation(#10000,3," ",4)
#20008=*
lines(#20008,#20001," }","
")
#20009=@"loc,{#10000},4,1,4,3"
locations_default(#20009,#10000,4,1,4,3)
hasLocation(#20008,#20009)
indentation(#10000,4," ",2)
#20010=*
lines(#20010,#20001,"}","")
#20011=@"loc,{#10000},5,1,5,1"
locations_default(#20011,#10000,5,1,5,1)
hasLocation(#20010,#20011)
numlines(#20001,5,5,0)
#20012=*
tokeninfo(#20012,7,#20001,0,"class")
#20013=@"loc,{#10000},1,1,1,5"
locations_default(#20013,#10000,1,1,1,5)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,6,#20001,1,"A")
#20015=@"loc,{#10000},1,7,1,7"
locations_default(#20015,#10000,1,7,1,7)
hasLocation(#20014,#20015)
#20016=*
tokeninfo(#20016,8,#20001,2,"{")
#20017=@"loc,{#10000},1,9,1,9"
locations_default(#20017,#10000,1,9,1,9)
hasLocation(#20016,#20017)
#20018=*
tokeninfo(#20018,6,#20001,3,"getX")
#20019=@"loc,{#10000},2,3,2,6"
locations_default(#20019,#10000,2,3,2,6)
hasLocation(#20018,#20019)
#20020=*
tokeninfo(#20020,8,#20001,4,"(")
#20021=@"loc,{#10000},2,7,2,7"
locations_default(#20021,#10000,2,7,2,7)
hasLocation(#20020,#20021)
#20022=*
tokeninfo(#20022,8,#20001,5,")")
#20023=@"loc,{#10000},2,8,2,8"
locations_default(#20023,#10000,2,8,2,8)
hasLocation(#20022,#20023)
#20024=*
tokeninfo(#20024,8,#20001,6,"{")
#20025=@"loc,{#10000},2,10,2,10"
locations_default(#20025,#10000,2,10,2,10)
hasLocation(#20024,#20025)
#20026=*
tokeninfo(#20026,7,#20001,7,"return")
#20027=@"loc,{#10000},3,5,3,10"
locations_default(#20027,#10000,3,5,3,10)
hasLocation(#20026,#20027)
#20028=*
tokeninfo(#20028,7,#20001,8,"this")
#20029=@"loc,{#10000},3,12,3,15"
locations_default(#20029,#10000,3,12,3,15)
hasLocation(#20028,#20029)
#20030=*
tokeninfo(#20030,8,#20001,9,".")
#20031=@"loc,{#10000},3,16,3,16"
locations_default(#20031,#10000,3,16,3,16)
hasLocation(#20030,#20031)
#20032=*
tokeninfo(#20032,6,#20001,10,"x")
#20033=@"loc,{#10000},3,17,3,17"
locations_default(#20033,#10000,3,17,3,17)
hasLocation(#20032,#20033)
#20034=*
tokeninfo(#20034,8,#20001,11,";")
#20035=@"loc,{#10000},3,18,3,18"
locations_default(#20035,#10000,3,18,3,18)
hasLocation(#20034,#20035)
#20036=*
tokeninfo(#20036,8,#20001,12,"}")
#20037=@"loc,{#10000},4,3,4,3"
locations_default(#20037,#10000,4,3,4,3)
hasLocation(#20036,#20037)
#20038=*
tokeninfo(#20038,8,#20001,13,"}")
hasLocation(#20038,#20011)
#20039=*
tokeninfo(#20039,0,#20001,14,"")
#20040=@"loc,{#10000},5,2,5,1"
locations_default(#20040,#10000,5,2,5,1)
hasLocation(#20039,#20040)
toplevels(#20001,0)
#20041=@"loc,{#10000},1,1,5,1"
locations_default(#20041,#10000,1,1,5,1)
hasLocation(#20001,#20041)
#20042=@"var;{A};{#20000}"
variables(#20042,"A",#20000)
#20043=@"local_type_name;{A};{#20000}"
local_type_names(#20043,"A",#20000)
#20044=*
stmts(#20044,26,#20001,0,"class A ... ;\n }\n}")
hasLocation(#20044,#20041)
stmt_containers(#20044,#20001)
#20045=*
exprs(#20045,78,#20044,0,"A")
hasLocation(#20045,#20015)
enclosing_stmt(#20045,#20044)
expr_containers(#20045,#20001)
literals("A","A",#20045)
decl(#20045,#20042)
typedecl(#20045,#20043)
#20046=*
scopes(#20046,10)
scopenodes(#20044,#20046)
scopenesting(#20046,#20000)
#20047=*
properties(#20047,#20044,2,0,"getX() ... .x;\n }")
#20048=@"loc,{#10000},2,3,4,3"
locations_default(#20048,#10000,2,3,4,3)
hasLocation(#20047,#20048)
#20049=*
exprs(#20049,0,#20047,0,"getX")
hasLocation(#20049,#20019)
enclosing_stmt(#20049,#20044)
expr_containers(#20049,#20001)
literals("getX","getX",#20049)
#20050=*
exprs(#20050,9,#20047,1,"() {\n ... .x;\n }")
#20051=@"loc,{#10000},2,7,4,3"
locations_default(#20051,#10000,2,7,4,3)
hasLocation(#20050,#20051)
enclosing_stmt(#20050,#20044)
expr_containers(#20050,#20001)
#20052=*
scopes(#20052,1)
scopenodes(#20050,#20052)
scopenesting(#20052,#20046)
#20053=@"var;{arguments};{#20052}"
variables(#20053,"arguments",#20052)
is_arguments_object(#20053)
#20054=*
stmts(#20054,1,#20050,-2,"{\n r ... .x;\n }")
#20055=@"loc,{#10000},2,10,4,3"
locations_default(#20055,#10000,2,10,4,3)
hasLocation(#20054,#20055)
stmt_containers(#20054,#20050)
#20056=*
stmts(#20056,9,#20054,0,"return this.x;")
#20057=@"loc,{#10000},3,5,3,18"
locations_default(#20057,#10000,3,5,3,18)
hasLocation(#20056,#20057)
stmt_containers(#20056,#20050)
#20058=*
exprs(#20058,14,#20056,0,"this.x")
#20059=@"loc,{#10000},3,12,3,17"
locations_default(#20059,#10000,3,12,3,17)
hasLocation(#20058,#20059)
enclosing_stmt(#20058,#20056)
expr_containers(#20058,#20050)
#20060=*
exprs(#20060,6,#20058,0,"this")
hasLocation(#20060,#20029)
enclosing_stmt(#20060,#20056)
expr_containers(#20060,#20050)
#20061=*
exprs(#20061,0,#20058,1,"x")
hasLocation(#20061,#20033)
enclosing_stmt(#20061,#20056)
expr_containers(#20061,#20050)
literals("x","x",#20061)
is_method(#20047)
#20062=*
properties(#20062,#20044,3,0,"constructor() {}")
#20063=@"loc,{#10000},1,9,1,8"
locations_default(#20063,#10000,1,9,1,8)
hasLocation(#20062,#20063)
#20064=*
exprs(#20064,0,#20062,0,"constructor")
hasLocation(#20064,#20063)
enclosing_stmt(#20064,#20044)
expr_containers(#20064,#20001)
literals("constructor","constructor",#20064)
#20065=*
exprs(#20065,9,#20062,1,"() {}")
hasLocation(#20065,#20063)
enclosing_stmt(#20065,#20044)
expr_containers(#20065,#20001)
#20066=*
scopes(#20066,1)
scopenodes(#20065,#20066)
scopenesting(#20066,#20046)
#20067=@"var;{arguments};{#20066}"
variables(#20067,"arguments",#20066)
is_arguments_object(#20067)
#20068=*
stmts(#20068,1,#20065,-2,"{}")
hasLocation(#20068,#20063)
stmt_containers(#20068,#20065)
is_method(#20062)
#20069=*
entry_cfg_node(#20069,#20001)
#20070=@"loc,{#10000},1,1,1,0"
locations_default(#20070,#10000,1,1,1,0)
hasLocation(#20069,#20070)
#20071=*
exit_cfg_node(#20071,#20001)
hasLocation(#20071,#20040)
successor(#20065,#20062)
#20072=*
entry_cfg_node(#20072,#20065)
hasLocation(#20072,#20063)
#20073=*
exit_cfg_node(#20073,#20065)
hasLocation(#20073,#20063)
successor(#20068,#20073)
successor(#20072,#20068)
successor(#20064,#20065)
successor(#20062,#20044)
successor(#20050,#20047)
#20074=*
entry_cfg_node(#20074,#20050)
#20075=@"loc,{#10000},2,7,2,6"
locations_default(#20075,#10000,2,7,2,6)
hasLocation(#20074,#20075)
#20076=*
exit_cfg_node(#20076,#20050)
#20077=@"loc,{#10000},4,4,4,3"
locations_default(#20077,#10000,4,4,4,3)
hasLocation(#20076,#20077)
successor(#20061,#20058)
successor(#20060,#20061)
successor(#20058,#20056)
successor(#20056,#20076)
successor(#20054,#20060)
successor(#20074,#20054)
successor(#20049,#20050)
successor(#20047,#20064)
successor(#20045,#20049)
successor(#20044,#20071)
successor(#20069,#20045)
numlines(#10000,5,5,0)
filetype(#10000,"javascript")