Skip to content

Commit c327ee5

Browse files
committed
JS: Update TRAP
1 parent 591fffc commit c327ee5

57 files changed

Lines changed: 10376 additions & 9832 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

javascript/extractor/tests/closure/output/trap/googDotDeclareModuleId.js.trap

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -150,54 +150,60 @@ enclosingStmt(#20047,#20039)
150150
exprContainers(#20047,#20001)
151151
literals("test","'test'",#20047)
152152
#20048=*
153-
stmts(#20048,30,#20001,1,"export let x = 5;")
154-
hasLocation(#20048,#20007)
155-
stmtContainers(#20048,#20001)
156-
#20049=*
157-
stmts(#20049,23,#20048,-1,"let x = 5;")
158-
#20050=@"loc,{#10000},3,8,3,17"
159-
locations_default(#20050,#10000,3,8,3,17)
160-
hasLocation(#20049,#20050)
161-
stmtContainers(#20049,#20001)
153+
regexpterm(#20048,14,#20047,0,"test")
154+
#20049=@"loc,{#10000},1,23,1,26"
155+
locations_default(#20049,#10000,1,23,1,26)
156+
hasLocation(#20048,#20049)
157+
regexpConstValue(#20048,"test")
158+
#20050=*
159+
stmts(#20050,30,#20001,1,"export let x = 5;")
160+
hasLocation(#20050,#20007)
161+
stmtContainers(#20050,#20001)
162162
#20051=*
163-
exprs(#20051,64,#20049,0,"x = 5")
164-
#20052=@"loc,{#10000},3,12,3,16"
165-
locations_default(#20052,#10000,3,12,3,16)
163+
stmts(#20051,23,#20050,-1,"let x = 5;")
164+
#20052=@"loc,{#10000},3,8,3,17"
165+
locations_default(#20052,#10000,3,8,3,17)
166166
hasLocation(#20051,#20052)
167-
enclosingStmt(#20051,#20049)
168-
exprContainers(#20051,#20001)
167+
stmtContainers(#20051,#20001)
169168
#20053=*
170-
exprs(#20053,78,#20051,0,"x")
171-
hasLocation(#20053,#20027)
172-
enclosingStmt(#20053,#20049)
169+
exprs(#20053,64,#20051,0,"x = 5")
170+
#20054=@"loc,{#10000},3,12,3,16"
171+
locations_default(#20054,#10000,3,12,3,16)
172+
hasLocation(#20053,#20054)
173+
enclosingStmt(#20053,#20051)
173174
exprContainers(#20053,#20001)
174-
literals("x","x",#20053)
175-
decl(#20053,#20038)
176-
#20054=*
177-
exprs(#20054,3,#20051,1,"5")
178-
hasLocation(#20054,#20031)
179-
enclosingStmt(#20054,#20049)
180-
exprContainers(#20054,#20001)
181-
literals("5","5",#20054)
182175
#20055=*
183-
entry_cfg_node(#20055,#20001)
184-
#20056=@"loc,{#10000},1,1,1,0"
185-
locations_default(#20056,#10000,1,1,1,0)
186-
hasLocation(#20055,#20056)
176+
exprs(#20055,78,#20053,0,"x")
177+
hasLocation(#20055,#20027)
178+
enclosingStmt(#20055,#20051)
179+
exprContainers(#20055,#20001)
180+
literals("x","x",#20055)
181+
decl(#20055,#20038)
182+
#20056=*
183+
exprs(#20056,3,#20053,1,"5")
184+
hasLocation(#20056,#20031)
185+
enclosingStmt(#20056,#20051)
186+
exprContainers(#20056,#20001)
187+
literals("5","5",#20056)
187188
#20057=*
188-
exit_cfg_node(#20057,#20001)
189-
hasLocation(#20057,#20035)
190-
successor(#20048,#20049)
191-
successor(#20049,#20053)
192-
successor(#20054,#20051)
193-
successor(#20053,#20054)
194-
successor(#20051,#20057)
189+
entry_cfg_node(#20057,#20001)
190+
#20058=@"loc,{#10000},1,1,1,0"
191+
locations_default(#20058,#10000,1,1,1,0)
192+
hasLocation(#20057,#20058)
193+
#20059=*
194+
exit_cfg_node(#20059,#20001)
195+
hasLocation(#20059,#20035)
196+
successor(#20050,#20051)
197+
successor(#20051,#20055)
198+
successor(#20056,#20053)
199+
successor(#20055,#20056)
200+
successor(#20053,#20059)
195201
successor(#20039,#20044)
196202
successor(#20047,#20040)
197203
successor(#20046,#20042)
198204
successor(#20044,#20046)
199205
successor(#20042,#20047)
200-
successor(#20040,#20048)
201-
successor(#20055,#20039)
206+
successor(#20040,#20050)
207+
successor(#20057,#20039)
202208
numlines(#10000,3,2,0)
203209
filetype(#10000,"javascript")

javascript/extractor/tests/closure/output/trap/googDotModule.js.trap

Lines changed: 81 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -187,97 +187,103 @@ enclosingStmt(#20062,#20054)
187187
exprContainers(#20062,#20001)
188188
literals("test","'test'",#20062)
189189
#20063=*
190-
stmts(#20063,18,#20001,1,"var x = 5;")
191-
hasLocation(#20063,#20005)
192-
stmtContainers(#20063,#20001)
193-
#20064=*
194-
exprs(#20064,64,#20063,0,"x = 5")
195-
#20065=@"loc,{#10000},2,5,2,9"
196-
locations_default(#20065,#10000,2,5,2,9)
197-
hasLocation(#20064,#20065)
198-
enclosingStmt(#20064,#20063)
199-
exprContainers(#20064,#20001)
190+
regexpterm(#20063,14,#20062,0,"test")
191+
#20064=@"loc,{#10000},1,14,1,17"
192+
locations_default(#20064,#10000,1,14,1,17)
193+
hasLocation(#20063,#20064)
194+
regexpConstValue(#20063,"test")
195+
#20065=*
196+
stmts(#20065,18,#20001,1,"var x = 5;")
197+
hasLocation(#20065,#20005)
198+
stmtContainers(#20065,#20001)
200199
#20066=*
201-
exprs(#20066,78,#20064,0,"x")
202-
hasLocation(#20066,#20025)
203-
enclosingStmt(#20066,#20063)
200+
exprs(#20066,64,#20065,0,"x = 5")
201+
#20067=@"loc,{#10000},2,5,2,9"
202+
locations_default(#20067,#10000,2,5,2,9)
203+
hasLocation(#20066,#20067)
204+
enclosingStmt(#20066,#20065)
204205
exprContainers(#20066,#20001)
205-
literals("x","x",#20066)
206-
decl(#20066,#20053)
207-
#20067=*
208-
exprs(#20067,3,#20064,1,"5")
209-
hasLocation(#20067,#20029)
210-
enclosingStmt(#20067,#20063)
211-
exprContainers(#20067,#20001)
212-
literals("5","5",#20067)
213206
#20068=*
214-
stmts(#20068,2,#20001,2,"exports = { x: x };")
215-
hasLocation(#20068,#20007)
216-
stmtContainers(#20068,#20001)
207+
exprs(#20068,78,#20066,0,"x")
208+
hasLocation(#20068,#20025)
209+
enclosingStmt(#20068,#20065)
210+
exprContainers(#20068,#20001)
211+
literals("x","x",#20068)
212+
decl(#20068,#20053)
217213
#20069=*
218-
exprs(#20069,47,#20068,0,"exports = { x: x }")
219-
#20070=@"loc,{#10000},3,1,3,18"
220-
locations_default(#20070,#10000,3,1,3,18)
221-
hasLocation(#20069,#20070)
222-
enclosingStmt(#20069,#20068)
214+
exprs(#20069,3,#20066,1,"5")
215+
hasLocation(#20069,#20029)
216+
enclosingStmt(#20069,#20065)
223217
exprContainers(#20069,#20001)
218+
literals("5","5",#20069)
219+
#20070=*
220+
stmts(#20070,2,#20001,2,"exports = { x: x };")
221+
hasLocation(#20070,#20007)
222+
stmtContainers(#20070,#20001)
224223
#20071=*
225-
exprs(#20071,79,#20069,0,"exports")
226-
hasLocation(#20071,#20033)
227-
enclosingStmt(#20071,#20068)
224+
exprs(#20071,47,#20070,0,"exports = { x: x }")
225+
#20072=@"loc,{#10000},3,1,3,18"
226+
locations_default(#20072,#10000,3,1,3,18)
227+
hasLocation(#20071,#20072)
228+
enclosingStmt(#20071,#20070)
228229
exprContainers(#20071,#20001)
229-
literals("exports","exports",#20071)
230-
bind(#20071,#20052)
231-
#20072=*
232-
exprs(#20072,8,#20069,1,"{ x: x }")
233-
#20073=@"loc,{#10000},3,11,3,18"
234-
locations_default(#20073,#10000,3,11,3,18)
235-
hasLocation(#20072,#20073)
236-
enclosingStmt(#20072,#20068)
237-
exprContainers(#20072,#20001)
230+
#20073=*
231+
exprs(#20073,79,#20071,0,"exports")
232+
hasLocation(#20073,#20033)
233+
enclosingStmt(#20073,#20070)
234+
exprContainers(#20073,#20001)
235+
literals("exports","exports",#20073)
236+
bind(#20073,#20052)
238237
#20074=*
239-
properties(#20074,#20072,0,0,"x: x")
240-
#20075=@"loc,{#10000},3,13,3,16"
241-
locations_default(#20075,#10000,3,13,3,16)
238+
exprs(#20074,8,#20071,1,"{ x: x }")
239+
#20075=@"loc,{#10000},3,11,3,18"
240+
locations_default(#20075,#10000,3,11,3,18)
242241
hasLocation(#20074,#20075)
242+
enclosingStmt(#20074,#20070)
243+
exprContainers(#20074,#20001)
243244
#20076=*
244-
exprs(#20076,0,#20074,0,"x")
245-
hasLocation(#20076,#20039)
246-
enclosingStmt(#20076,#20068)
247-
exprContainers(#20076,#20001)
248-
literals("x","x",#20076)
249-
#20077=*
250-
exprs(#20077,79,#20074,1,"x")
251-
hasLocation(#20077,#20043)
252-
enclosingStmt(#20077,#20068)
253-
exprContainers(#20077,#20001)
254-
literals("x","x",#20077)
255-
bind(#20077,#20053)
245+
properties(#20076,#20074,0,0,"x: x")
246+
#20077=@"loc,{#10000},3,13,3,16"
247+
locations_default(#20077,#10000,3,13,3,16)
248+
hasLocation(#20076,#20077)
256249
#20078=*
257-
entry_cfg_node(#20078,#20001)
258-
#20079=@"loc,{#10000},1,1,1,0"
259-
locations_default(#20079,#10000,1,1,1,0)
260-
hasLocation(#20078,#20079)
250+
exprs(#20078,0,#20076,0,"x")
251+
hasLocation(#20078,#20039)
252+
enclosingStmt(#20078,#20070)
253+
exprContainers(#20078,#20001)
254+
literals("x","x",#20078)
255+
#20079=*
256+
exprs(#20079,79,#20076,1,"x")
257+
hasLocation(#20079,#20043)
258+
enclosingStmt(#20079,#20070)
259+
exprContainers(#20079,#20001)
260+
literals("x","x",#20079)
261+
bind(#20079,#20053)
261262
#20080=*
262-
exit_cfg_node(#20080,#20001)
263-
hasLocation(#20080,#20049)
264-
successor(#20068,#20071)
265-
successor(#20072,#20076)
266-
successor(#20077,#20074)
267-
successor(#20076,#20077)
268-
successor(#20074,#20069)
269-
successor(#20071,#20072)
270-
successor(#20069,#20080)
271-
successor(#20063,#20066)
272-
successor(#20067,#20064)
273-
successor(#20066,#20067)
274-
successor(#20064,#20068)
263+
entry_cfg_node(#20080,#20001)
264+
#20081=@"loc,{#10000},1,1,1,0"
265+
locations_default(#20081,#10000,1,1,1,0)
266+
hasLocation(#20080,#20081)
267+
#20082=*
268+
exit_cfg_node(#20082,#20001)
269+
hasLocation(#20082,#20049)
270+
successor(#20070,#20073)
271+
successor(#20074,#20078)
272+
successor(#20079,#20076)
273+
successor(#20078,#20079)
274+
successor(#20076,#20071)
275+
successor(#20073,#20074)
276+
successor(#20071,#20082)
277+
successor(#20065,#20068)
278+
successor(#20069,#20066)
279+
successor(#20068,#20069)
280+
successor(#20066,#20070)
275281
successor(#20054,#20059)
276282
successor(#20062,#20055)
277283
successor(#20061,#20057)
278284
successor(#20059,#20061)
279285
successor(#20057,#20062)
280-
successor(#20055,#20063)
281-
successor(#20078,#20054)
286+
successor(#20055,#20065)
287+
successor(#20080,#20054)
282288
numlines(#10000,3,3,0)
283289
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)