Skip to content

Commit a60cace

Browse files
committed
JS: Update TRAP output
1 parent ced1d21 commit a60cace

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

javascript/extractor/tests/ts/output/trap/exportasnamespace.d.ts.trap

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,28 @@ scopenodes(#20001,#20033)
9797
scopenesting(#20033,#20000)
9898
is_module(#20001)
9999
is_es2015_module(#20001)
100-
#20034=*
101-
stmts(#20034,30,#20001,0,"export ... foo();")
102-
hasLocation(#20034,#20003)
103-
stmt_containers(#20034,#20001)
100+
#20034=@"var;{foo};{#20033}"
101+
variables(#20034,"foo",#20033)
104102
#20035=*
105-
stmts(#20035,17,#20034,-1,"declare ... foo();")
106-
#20036=@"loc,{#10000},1,8,1,30"
107-
locations_default(#20036,#10000,1,8,1,30)
108-
hasLocation(#20035,#20036)
103+
stmts(#20035,30,#20001,0,"export ... foo();")
104+
hasLocation(#20035,#20003)
109105
stmt_containers(#20035,#20001)
110-
has_declare_keyword(#20035)
111-
#20037=*
112-
exprs(#20037,78,#20035,-1,"foo")
113-
hasLocation(#20037,#20013)
114-
expr_containers(#20037,#20035)
115-
literals("foo","foo",#20037)
116-
#20038=@"var;{foo};{#20000}"
117-
variables(#20038,"foo",#20000)
118-
decl(#20037,#20038)
106+
#20036=*
107+
stmts(#20036,17,#20035,-1,"declare ... foo();")
108+
#20037=@"loc,{#10000},1,8,1,30"
109+
locations_default(#20037,#10000,1,8,1,30)
110+
hasLocation(#20036,#20037)
111+
stmt_containers(#20036,#20001)
112+
has_declare_keyword(#20036)
113+
#20038=*
114+
exprs(#20038,78,#20036,-1,"foo")
115+
hasLocation(#20038,#20013)
116+
expr_containers(#20038,#20036)
117+
literals("foo","foo",#20038)
118+
decl(#20038,#20034)
119119
#20039=*
120120
scopes(#20039,1)
121-
scopenodes(#20035,#20039)
121+
scopenodes(#20036,#20039)
122122
scopenesting(#20039,#20033)
123123
#20040=@"var;{arguments};{#20039}"
124124
variables(#20040,"arguments",#20039)
@@ -142,8 +142,8 @@ hasLocation(#20043,#20044)
142142
exit_cfg_node(#20045,#20001)
143143
hasLocation(#20045,#20031)
144144
successor(#20041,#20045)
145-
successor(#20034,#20035)
146-
successor(#20035,#20041)
147-
successor(#20043,#20034)
145+
successor(#20035,#20036)
146+
successor(#20036,#20041)
147+
successor(#20043,#20035)
148148
numlines(#10000,2,2,0)
149149
filetype(#10000,"typescript")

javascript/extractor/tests/ts/output/trap/namespaces.ts.trap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,12 @@ hasLocation(#20096,#20097)
305305
enclosing_stmt(#20096,#20092)
306306
expr_containers(#20096,#20001)
307307
#20098=*
308-
exprs(#20098,79,#20096,0,"M")
308+
exprs(#20098,103,#20096,0,"M")
309309
hasLocation(#20098,#20052)
310310
enclosing_stmt(#20098,#20092)
311311
expr_containers(#20098,#20001)
312312
literals("M","M",#20098)
313+
namespacebind(#20098,#20069)
313314
bind(#20098,#20066)
314315
#20099=*
315316
exprs(#20099,0,#20096,1,"N")

0 commit comments

Comments
 (0)