Skip to content

Commit 5e10e95

Browse files
committed
JS: update trivial TRAP changes
1 parent 4b32d8c commit 5e10e95

File tree

3 files changed

+548
-548
lines changed

3 files changed

+548
-548
lines changed

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

Lines changed: 159 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -9,195 +9,195 @@ hasLocation(#10000,#10002)
99
#20000=@"global_scope"
1010
scopes(#20000,0)
1111
#20001=@"script;{#10000},1,1"
12-
toplevels(#20001,0)
13-
#20002=@"loc,{#10000},1,1,4,0"
14-
locations_default(#20002,#10000,1,1,4,0)
15-
hasLocation(#20001,#20002)
16-
#20003=@"module;{#10000},1,1"
17-
scopes(#20003,3)
18-
scopenodes(#20001,#20003)
19-
scopenesting(#20003,#20000)
20-
isES2015Module(#20001)
21-
isModule(#20001)
22-
#20004=@"var;{x};{#20003}"
23-
variables(#20004,"x",#20003)
24-
#20005=*
25-
stmts(#20005,2,#20001,0,"goog.de ... test');")
26-
#20006=@"loc,{#10000},1,1,1,29"
27-
locations_default(#20006,#10000,1,1,1,29)
28-
hasLocation(#20005,#20006)
29-
stmtContainers(#20005,#20001)
30-
#20007=*
31-
exprs(#20007,13,#20005,0,"goog.de ... 'test')")
32-
#20008=@"loc,{#10000},1,1,1,28"
33-
locations_default(#20008,#10000,1,1,1,28)
34-
hasLocation(#20007,#20008)
35-
enclosingStmt(#20007,#20005)
36-
exprContainers(#20007,#20001)
37-
#20009=*
38-
exprs(#20009,14,#20007,-1,"goog.declareModuleId")
39-
#20010=@"loc,{#10000},1,1,1,20"
40-
locations_default(#20010,#10000,1,1,1,20)
41-
hasLocation(#20009,#20010)
42-
enclosingStmt(#20009,#20005)
43-
exprContainers(#20009,#20001)
44-
#20011=*
45-
exprs(#20011,79,#20009,0,"goog")
46-
#20012=@"loc,{#10000},1,1,1,4"
47-
locations_default(#20012,#10000,1,1,1,4)
48-
hasLocation(#20011,#20012)
49-
enclosingStmt(#20011,#20005)
50-
exprContainers(#20011,#20001)
51-
literals("goog","goog",#20011)
52-
#20013=@"var;{goog};{#20000}"
53-
variables(#20013,"goog",#20000)
54-
bind(#20011,#20013)
12+
#20002=*
13+
lines(#20002,#20001,"goog.declareModuleId('test');","
14+
")
15+
#20003=@"loc,{#10000},1,1,1,29"
16+
locations_default(#20003,#10000,1,1,1,29)
17+
hasLocation(#20002,#20003)
18+
#20004=*
19+
lines(#20004,#20001,"","
20+
")
21+
#20005=@"loc,{#10000},2,1,2,0"
22+
locations_default(#20005,#10000,2,1,2,0)
23+
hasLocation(#20004,#20005)
24+
#20006=*
25+
lines(#20006,#20001,"export let x = 5;","
26+
")
27+
#20007=@"loc,{#10000},3,1,3,17"
28+
locations_default(#20007,#10000,3,1,3,17)
29+
hasLocation(#20006,#20007)
30+
numlines(#20001,3,2,0)
31+
#20008=*
32+
tokeninfo(#20008,6,#20001,0,"goog")
33+
#20009=@"loc,{#10000},1,1,1,4"
34+
locations_default(#20009,#10000,1,1,1,4)
35+
hasLocation(#20008,#20009)
36+
#20010=*
37+
tokeninfo(#20010,8,#20001,1,".")
38+
#20011=@"loc,{#10000},1,5,1,5"
39+
locations_default(#20011,#10000,1,5,1,5)
40+
hasLocation(#20010,#20011)
41+
#20012=*
42+
tokeninfo(#20012,6,#20001,2,"declareModuleId")
43+
#20013=@"loc,{#10000},1,6,1,20"
44+
locations_default(#20013,#10000,1,6,1,20)
45+
hasLocation(#20012,#20013)
5546
#20014=*
56-
exprs(#20014,0,#20009,1,"declareModuleId")
57-
#20015=@"loc,{#10000},1,6,1,20"
58-
locations_default(#20015,#10000,1,6,1,20)
47+
tokeninfo(#20014,8,#20001,3,"(")
48+
#20015=@"loc,{#10000},1,21,1,21"
49+
locations_default(#20015,#10000,1,21,1,21)
5950
hasLocation(#20014,#20015)
60-
enclosingStmt(#20014,#20005)
61-
exprContainers(#20014,#20001)
62-
literals("declareModuleId","declareModuleId",#20014)
6351
#20016=*
64-
exprs(#20016,4,#20007,0,"'test'")
52+
tokeninfo(#20016,4,#20001,4,"'test'")
6553
#20017=@"loc,{#10000},1,22,1,27"
6654
locations_default(#20017,#10000,1,22,1,27)
6755
hasLocation(#20016,#20017)
68-
enclosingStmt(#20016,#20005)
69-
exprContainers(#20016,#20001)
70-
literals("test","'test'",#20016)
7156
#20018=*
72-
stmts(#20018,30,#20001,1,"export let x = 5;")
73-
#20019=@"loc,{#10000},3,1,3,17"
74-
locations_default(#20019,#10000,3,1,3,17)
57+
tokeninfo(#20018,8,#20001,5,")")
58+
#20019=@"loc,{#10000},1,28,1,28"
59+
locations_default(#20019,#10000,1,28,1,28)
7560
hasLocation(#20018,#20019)
76-
stmtContainers(#20018,#20001)
7761
#20020=*
78-
stmts(#20020,23,#20018,-1,"let x = 5;")
79-
#20021=@"loc,{#10000},3,8,3,17"
80-
locations_default(#20021,#10000,3,8,3,17)
62+
tokeninfo(#20020,8,#20001,6,";")
63+
#20021=@"loc,{#10000},1,29,1,29"
64+
locations_default(#20021,#10000,1,29,1,29)
8165
hasLocation(#20020,#20021)
82-
stmtContainers(#20020,#20001)
8366
#20022=*
84-
exprs(#20022,64,#20020,0,"x = 5")
85-
#20023=@"loc,{#10000},3,12,3,16"
86-
locations_default(#20023,#10000,3,12,3,16)
67+
tokeninfo(#20022,7,#20001,7,"export")
68+
#20023=@"loc,{#10000},3,1,3,6"
69+
locations_default(#20023,#10000,3,1,3,6)
8770
hasLocation(#20022,#20023)
88-
enclosingStmt(#20022,#20020)
89-
exprContainers(#20022,#20001)
9071
#20024=*
91-
exprs(#20024,78,#20022,0,"x")
92-
#20025=@"loc,{#10000},3,12,3,12"
93-
locations_default(#20025,#10000,3,12,3,12)
72+
tokeninfo(#20024,7,#20001,8,"let")
73+
#20025=@"loc,{#10000},3,8,3,10"
74+
locations_default(#20025,#10000,3,8,3,10)
9475
hasLocation(#20024,#20025)
95-
enclosingStmt(#20024,#20020)
96-
exprContainers(#20024,#20001)
97-
literals("x","x",#20024)
98-
decl(#20024,#20004)
9976
#20026=*
100-
exprs(#20026,3,#20022,1,"5")
101-
#20027=@"loc,{#10000},3,16,3,16"
102-
locations_default(#20027,#10000,3,16,3,16)
77+
tokeninfo(#20026,6,#20001,9,"x")
78+
#20027=@"loc,{#10000},3,12,3,12"
79+
locations_default(#20027,#10000,3,12,3,12)
10380
hasLocation(#20026,#20027)
104-
enclosingStmt(#20026,#20020)
105-
exprContainers(#20026,#20001)
106-
literals("5","5",#20026)
10781
#20028=*
108-
lines(#20028,#20001,"goog.declareModuleId('test');","
109-
")
110-
hasLocation(#20028,#20006)
111-
#20029=*
112-
lines(#20029,#20001,"","
113-
")
114-
#20030=@"loc,{#10000},2,1,2,0"
115-
locations_default(#20030,#10000,2,1,2,0)
116-
hasLocation(#20029,#20030)
117-
#20031=*
118-
lines(#20031,#20001,"export let x = 5;","
119-
")
120-
hasLocation(#20031,#20019)
121-
numlines(#20001,3,2,0)
82+
tokeninfo(#20028,8,#20001,10,"=")
83+
#20029=@"loc,{#10000},3,14,3,14"
84+
locations_default(#20029,#10000,3,14,3,14)
85+
hasLocation(#20028,#20029)
86+
#20030=*
87+
tokeninfo(#20030,3,#20001,11,"5")
88+
#20031=@"loc,{#10000},3,16,3,16"
89+
locations_default(#20031,#10000,3,16,3,16)
90+
hasLocation(#20030,#20031)
12291
#20032=*
123-
tokeninfo(#20032,6,#20001,0,"goog")
124-
hasLocation(#20032,#20012)
125-
#20033=*
126-
tokeninfo(#20033,8,#20001,1,".")
127-
#20034=@"loc,{#10000},1,5,1,5"
128-
locations_default(#20034,#10000,1,5,1,5)
129-
hasLocation(#20033,#20034)
130-
#20035=*
131-
tokeninfo(#20035,6,#20001,2,"declareModuleId")
132-
hasLocation(#20035,#20015)
133-
#20036=*
134-
tokeninfo(#20036,8,#20001,3,"(")
135-
#20037=@"loc,{#10000},1,21,1,21"
136-
locations_default(#20037,#10000,1,21,1,21)
137-
hasLocation(#20036,#20037)
138-
#20038=*
139-
tokeninfo(#20038,4,#20001,4,"'test'")
140-
hasLocation(#20038,#20017)
92+
tokeninfo(#20032,8,#20001,12,";")
93+
#20033=@"loc,{#10000},3,17,3,17"
94+
locations_default(#20033,#10000,3,17,3,17)
95+
hasLocation(#20032,#20033)
96+
#20034=*
97+
tokeninfo(#20034,0,#20001,13,"")
98+
#20035=@"loc,{#10000},4,1,4,0"
99+
locations_default(#20035,#10000,4,1,4,0)
100+
hasLocation(#20034,#20035)
101+
toplevels(#20001,0)
102+
#20036=@"loc,{#10000},1,1,4,0"
103+
locations_default(#20036,#10000,1,1,4,0)
104+
hasLocation(#20001,#20036)
105+
#20037=@"module;{#10000},1,1"
106+
scopes(#20037,3)
107+
scopenodes(#20001,#20037)
108+
scopenesting(#20037,#20000)
109+
isES2015Module(#20001)
110+
isModule(#20001)
111+
#20038=@"var;{x};{#20037}"
112+
variables(#20038,"x",#20037)
141113
#20039=*
142-
tokeninfo(#20039,8,#20001,5,")")
143-
#20040=@"loc,{#10000},1,28,1,28"
144-
locations_default(#20040,#10000,1,28,1,28)
145-
hasLocation(#20039,#20040)
146-
#20041=*
147-
tokeninfo(#20041,8,#20001,6,";")
148-
#20042=@"loc,{#10000},1,29,1,29"
149-
locations_default(#20042,#10000,1,29,1,29)
150-
hasLocation(#20041,#20042)
151-
#20043=*
152-
tokeninfo(#20043,7,#20001,7,"export")
153-
#20044=@"loc,{#10000},3,1,3,6"
154-
locations_default(#20044,#10000,3,1,3,6)
155-
hasLocation(#20043,#20044)
156-
#20045=*
157-
tokeninfo(#20045,7,#20001,8,"let")
158-
#20046=@"loc,{#10000},3,8,3,10"
159-
locations_default(#20046,#10000,3,8,3,10)
160-
hasLocation(#20045,#20046)
114+
stmts(#20039,2,#20001,0,"goog.de ... test');")
115+
hasLocation(#20039,#20003)
116+
stmtContainers(#20039,#20001)
117+
#20040=*
118+
exprs(#20040,13,#20039,0,"goog.de ... 'test')")
119+
#20041=@"loc,{#10000},1,1,1,28"
120+
locations_default(#20041,#10000,1,1,1,28)
121+
hasLocation(#20040,#20041)
122+
enclosingStmt(#20040,#20039)
123+
exprContainers(#20040,#20001)
124+
#20042=*
125+
exprs(#20042,14,#20040,-1,"goog.declareModuleId")
126+
#20043=@"loc,{#10000},1,1,1,20"
127+
locations_default(#20043,#10000,1,1,1,20)
128+
hasLocation(#20042,#20043)
129+
enclosingStmt(#20042,#20039)
130+
exprContainers(#20042,#20001)
131+
#20044=*
132+
exprs(#20044,79,#20042,0,"goog")
133+
hasLocation(#20044,#20009)
134+
enclosingStmt(#20044,#20039)
135+
exprContainers(#20044,#20001)
136+
literals("goog","goog",#20044)
137+
#20045=@"var;{goog};{#20000}"
138+
variables(#20045,"goog",#20000)
139+
bind(#20044,#20045)
140+
#20046=*
141+
exprs(#20046,0,#20042,1,"declareModuleId")
142+
hasLocation(#20046,#20013)
143+
enclosingStmt(#20046,#20039)
144+
exprContainers(#20046,#20001)
145+
literals("declareModuleId","declareModuleId",#20046)
161146
#20047=*
162-
tokeninfo(#20047,6,#20001,9,"x")
163-
hasLocation(#20047,#20025)
147+
exprs(#20047,4,#20040,0,"'test'")
148+
hasLocation(#20047,#20017)
149+
enclosingStmt(#20047,#20039)
150+
exprContainers(#20047,#20001)
151+
literals("test","'test'",#20047)
164152
#20048=*
165-
tokeninfo(#20048,8,#20001,10,"=")
166-
#20049=@"loc,{#10000},3,14,3,14"
167-
locations_default(#20049,#10000,3,14,3,14)
168-
hasLocation(#20048,#20049)
169-
#20050=*
170-
tokeninfo(#20050,3,#20001,11,"5")
171-
hasLocation(#20050,#20027)
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)
172162
#20051=*
173-
tokeninfo(#20051,8,#20001,12,";")
174-
#20052=@"loc,{#10000},3,17,3,17"
175-
locations_default(#20052,#10000,3,17,3,17)
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)
176166
hasLocation(#20051,#20052)
167+
enclosingStmt(#20051,#20049)
168+
exprContainers(#20051,#20001)
177169
#20053=*
178-
tokeninfo(#20053,0,#20001,13,"")
179-
#20054=@"loc,{#10000},4,1,4,0"
180-
locations_default(#20054,#10000,4,1,4,0)
181-
hasLocation(#20053,#20054)
170+
exprs(#20053,78,#20051,0,"x")
171+
hasLocation(#20053,#20027)
172+
enclosingStmt(#20053,#20049)
173+
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)
182182
#20055=*
183183
entry_cfg_node(#20055,#20001)
184184
#20056=@"loc,{#10000},1,1,1,0"
185185
locations_default(#20056,#10000,1,1,1,0)
186186
hasLocation(#20055,#20056)
187187
#20057=*
188188
exit_cfg_node(#20057,#20001)
189-
hasLocation(#20057,#20054)
190-
successor(#20018,#20020)
191-
successor(#20020,#20024)
192-
successor(#20026,#20022)
193-
successor(#20024,#20026)
194-
successor(#20022,#20057)
195-
successor(#20005,#20011)
196-
successor(#20016,#20007)
197-
successor(#20014,#20009)
198-
successor(#20011,#20014)
199-
successor(#20009,#20016)
200-
successor(#20007,#20018)
201-
successor(#20055,#20005)
189+
hasLocation(#20057,#20035)
190+
successor(#20048,#20049)
191+
successor(#20049,#20053)
192+
successor(#20054,#20051)
193+
successor(#20053,#20054)
194+
successor(#20051,#20057)
195+
successor(#20039,#20044)
196+
successor(#20047,#20040)
197+
successor(#20046,#20042)
198+
successor(#20044,#20046)
199+
successor(#20042,#20047)
200+
successor(#20040,#20048)
201+
successor(#20055,#20039)
202202
numlines(#10000,3,2,0)
203203
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)