Skip to content

Commit d440b5f

Browse files
committed
JS: Update TRAP files
1 parent 47895b3 commit d440b5f

File tree

265 files changed

+45997
-44908
lines changed

Some content is hidden

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

265 files changed

+45997
-44908
lines changed

javascript/extractor/tests/cfg/output/trap/classexpr1.js.trap

Lines changed: 73 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -47,74 +47,84 @@ locations_default(#20015,#10000,1,11,1,10)
4747
hasLocation(#20014,#20015)
4848
toplevels(#20001,0)
4949
hasLocation(#20001,#20003)
50-
#20016=*
51-
stmts(#20016,2,#20001,0,"!class {};")
52-
hasLocation(#20016,#20003)
53-
stmt_containers(#20016,#20001)
50+
#20016=@"var;{this};{#20000}"
51+
variables(#20016,"this",#20000)
5452
#20017=*
55-
exprs(#20017,18,#20016,0,"!class {}")
56-
#20018=@"loc,{#10000},1,1,1,9"
57-
locations_default(#20018,#10000,1,1,1,9)
58-
hasLocation(#20017,#20018)
59-
enclosing_stmt(#20017,#20016)
60-
expr_containers(#20017,#20001)
61-
#20019=*
62-
exprs(#20019,80,#20017,0,"class {}")
63-
#20020=@"loc,{#10000},1,2,1,9"
64-
locations_default(#20020,#10000,1,2,1,9)
65-
hasLocation(#20019,#20020)
66-
enclosing_stmt(#20019,#20016)
67-
expr_containers(#20019,#20001)
68-
#20021=*
69-
properties(#20021,#20019,2,0,"constructor() {}")
70-
#20022=@"loc,{#10000},1,8,1,7"
71-
locations_default(#20022,#10000,1,8,1,7)
72-
hasLocation(#20021,#20022)
73-
#20023=*
74-
exprs(#20023,0,#20021,0,"constructor")
75-
hasLocation(#20023,#20022)
76-
enclosing_stmt(#20023,#20016)
77-
expr_containers(#20023,#20001)
78-
literals("constructor","constructor",#20023)
53+
stmts(#20017,2,#20001,0,"!class {};")
54+
hasLocation(#20017,#20003)
55+
stmt_containers(#20017,#20001)
56+
#20018=*
57+
exprs(#20018,18,#20017,0,"!class {}")
58+
#20019=@"loc,{#10000},1,1,1,9"
59+
locations_default(#20019,#10000,1,1,1,9)
60+
hasLocation(#20018,#20019)
61+
enclosing_stmt(#20018,#20017)
62+
expr_containers(#20018,#20001)
63+
#20020=*
64+
exprs(#20020,80,#20018,0,"class {}")
65+
#20021=@"loc,{#10000},1,2,1,9"
66+
locations_default(#20021,#10000,1,2,1,9)
67+
hasLocation(#20020,#20021)
68+
enclosing_stmt(#20020,#20017)
69+
expr_containers(#20020,#20001)
70+
#20022=*
71+
scopes(#20022,8)
72+
scopenodes(#20020,#20022)
73+
scopenesting(#20022,#20000)
74+
#20023=@"var;{this};{#20022}"
75+
variables(#20023,"this",#20022)
7976
#20024=*
80-
exprs(#20024,9,#20021,1,"() {}")
81-
hasLocation(#20024,#20022)
82-
enclosing_stmt(#20024,#20016)
83-
expr_containers(#20024,#20001)
84-
#20025=*
85-
scopes(#20025,1)
86-
scopenodes(#20024,#20025)
87-
scopenesting(#20025,#20000)
88-
#20026=@"var;{arguments};{#20025}"
89-
variables(#20026,"arguments",#20025)
90-
is_arguments_object(#20026)
77+
properties(#20024,#20020,2,0,"constructor() {}")
78+
#20025=@"loc,{#10000},1,8,1,7"
79+
locations_default(#20025,#10000,1,8,1,7)
80+
hasLocation(#20024,#20025)
81+
#20026=*
82+
exprs(#20026,0,#20024,0,"constructor")
83+
hasLocation(#20026,#20025)
84+
enclosing_stmt(#20026,#20017)
85+
expr_containers(#20026,#20001)
86+
literals("constructor","constructor",#20026)
9187
#20027=*
92-
stmts(#20027,1,#20024,-2,"{}")
93-
hasLocation(#20027,#20022)
94-
stmt_containers(#20027,#20024)
95-
is_method(#20021)
88+
exprs(#20027,9,#20024,1,"() {}")
89+
hasLocation(#20027,#20025)
90+
enclosing_stmt(#20027,#20017)
91+
expr_containers(#20027,#20001)
9692
#20028=*
97-
entry_cfg_node(#20028,#20001)
98-
#20029=@"loc,{#10000},1,1,1,0"
99-
locations_default(#20029,#10000,1,1,1,0)
100-
hasLocation(#20028,#20029)
101-
#20030=*
102-
exit_cfg_node(#20030,#20001)
103-
hasLocation(#20030,#20015)
104-
successor(#20016,#20023)
105-
successor(#20024,#20021)
93+
scopes(#20028,1)
94+
scopenodes(#20027,#20028)
95+
scopenesting(#20028,#20022)
96+
#20029=@"var;{this};{#20028}"
97+
variables(#20029,"this",#20028)
98+
#20030=@"var;{arguments};{#20028}"
99+
variables(#20030,"arguments",#20028)
100+
is_arguments_object(#20030)
106101
#20031=*
107-
entry_cfg_node(#20031,#20024)
108-
hasLocation(#20031,#20022)
102+
stmts(#20031,1,#20027,-2,"{}")
103+
hasLocation(#20031,#20025)
104+
stmt_containers(#20031,#20027)
105+
is_method(#20024)
109106
#20032=*
110-
exit_cfg_node(#20032,#20024)
111-
hasLocation(#20032,#20022)
112-
successor(#20027,#20032)
113-
successor(#20031,#20027)
114-
successor(#20023,#20024)
115-
successor(#20021,#20019)
116-
successor(#20019,#20017)
117-
successor(#20017,#20030)
118-
successor(#20028,#20016)
107+
entry_cfg_node(#20032,#20001)
108+
#20033=@"loc,{#10000},1,1,1,0"
109+
locations_default(#20033,#10000,1,1,1,0)
110+
hasLocation(#20032,#20033)
111+
#20034=*
112+
exit_cfg_node(#20034,#20001)
113+
hasLocation(#20034,#20015)
114+
successor(#20017,#20026)
115+
successor(#20027,#20024)
116+
#20035=*
117+
entry_cfg_node(#20035,#20027)
118+
hasLocation(#20035,#20025)
119+
#20036=*
120+
exit_cfg_node(#20036,#20027)
121+
hasLocation(#20036,#20025)
122+
successor(#20031,#20036)
123+
successor(#20035,#20031)
124+
successor(#20026,#20027)
125+
successor(#20024,#20020)
126+
successor(#20020,#20018)
127+
successor(#20018,#20034)
128+
successor(#20032,#20017)
119129
numlines(#10000,1,1,0)
120130
filetype(#10000,"javascript")

javascript/extractor/tests/cfg/output/trap/classexpr2.js.trap

Lines changed: 86 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -52,91 +52,97 @@ locations_default(#20017,#10000,1,13,1,12)
5252
hasLocation(#20016,#20017)
5353
toplevels(#20001,0)
5454
hasLocation(#20001,#20003)
55-
#20018=*
56-
stmts(#20018,2,#20001,0,"!class A {};")
57-
hasLocation(#20018,#20003)
58-
stmt_containers(#20018,#20001)
55+
#20018=@"var;{this};{#20000}"
56+
variables(#20018,"this",#20000)
5957
#20019=*
60-
exprs(#20019,18,#20018,0,"!class A {}")
61-
#20020=@"loc,{#10000},1,1,1,11"
62-
locations_default(#20020,#10000,1,1,1,11)
63-
hasLocation(#20019,#20020)
64-
enclosing_stmt(#20019,#20018)
65-
expr_containers(#20019,#20001)
66-
#20021=*
67-
exprs(#20021,80,#20019,0,"class A {}")
68-
#20022=@"loc,{#10000},1,2,1,11"
69-
locations_default(#20022,#10000,1,2,1,11)
70-
hasLocation(#20021,#20022)
71-
enclosing_stmt(#20021,#20018)
72-
expr_containers(#20021,#20001)
73-
#20023=*
74-
scopes(#20023,8)
75-
scopenodes(#20021,#20023)
76-
scopenesting(#20023,#20000)
77-
#20024=@"var;{A};{#20023}"
78-
variables(#20024,"A",#20023)
79-
#20025=@"local_type_name;{A};{#20023}"
80-
local_type_names(#20025,"A",#20023)
81-
#20026=*
82-
exprs(#20026,78,#20021,0,"A")
83-
hasLocation(#20026,#20009)
84-
enclosing_stmt(#20026,#20018)
85-
expr_containers(#20026,#20001)
86-
literals("A","A",#20026)
87-
decl(#20026,#20024)
88-
typedecl(#20026,#20025)
89-
#20027=*
90-
properties(#20027,#20021,2,0,"constructor() {}")
91-
#20028=@"loc,{#10000},1,10,1,9"
92-
locations_default(#20028,#10000,1,10,1,9)
93-
hasLocation(#20027,#20028)
58+
stmts(#20019,2,#20001,0,"!class A {};")
59+
hasLocation(#20019,#20003)
60+
stmt_containers(#20019,#20001)
61+
#20020=*
62+
exprs(#20020,18,#20019,0,"!class A {}")
63+
#20021=@"loc,{#10000},1,1,1,11"
64+
locations_default(#20021,#10000,1,1,1,11)
65+
hasLocation(#20020,#20021)
66+
enclosing_stmt(#20020,#20019)
67+
expr_containers(#20020,#20001)
68+
#20022=*
69+
exprs(#20022,80,#20020,0,"class A {}")
70+
#20023=@"loc,{#10000},1,2,1,11"
71+
locations_default(#20023,#10000,1,2,1,11)
72+
hasLocation(#20022,#20023)
73+
enclosing_stmt(#20022,#20019)
74+
expr_containers(#20022,#20001)
75+
#20024=*
76+
scopes(#20024,8)
77+
scopenodes(#20022,#20024)
78+
scopenesting(#20024,#20000)
79+
#20025=@"var;{this};{#20024}"
80+
variables(#20025,"this",#20024)
81+
#20026=@"var;{A};{#20024}"
82+
variables(#20026,"A",#20024)
83+
#20027=@"local_type_name;{A};{#20024}"
84+
local_type_names(#20027,"A",#20024)
85+
#20028=*
86+
exprs(#20028,78,#20022,0,"A")
87+
hasLocation(#20028,#20009)
88+
enclosing_stmt(#20028,#20019)
89+
expr_containers(#20028,#20001)
90+
literals("A","A",#20028)
91+
decl(#20028,#20026)
92+
typedecl(#20028,#20027)
9493
#20029=*
95-
exprs(#20029,0,#20027,0,"constructor")
96-
hasLocation(#20029,#20028)
97-
enclosing_stmt(#20029,#20018)
98-
expr_containers(#20029,#20001)
99-
literals("constructor","constructor",#20029)
100-
#20030=*
101-
exprs(#20030,9,#20027,1,"() {}")
102-
hasLocation(#20030,#20028)
103-
enclosing_stmt(#20030,#20018)
104-
expr_containers(#20030,#20001)
94+
properties(#20029,#20022,2,0,"constructor() {}")
95+
#20030=@"loc,{#10000},1,10,1,9"
96+
locations_default(#20030,#10000,1,10,1,9)
97+
hasLocation(#20029,#20030)
10598
#20031=*
106-
scopes(#20031,1)
107-
scopenodes(#20030,#20031)
108-
scopenesting(#20031,#20023)
109-
#20032=@"var;{arguments};{#20031}"
110-
variables(#20032,"arguments",#20031)
111-
is_arguments_object(#20032)
99+
exprs(#20031,0,#20029,0,"constructor")
100+
hasLocation(#20031,#20030)
101+
enclosing_stmt(#20031,#20019)
102+
expr_containers(#20031,#20001)
103+
literals("constructor","constructor",#20031)
104+
#20032=*
105+
exprs(#20032,9,#20029,1,"() {}")
106+
hasLocation(#20032,#20030)
107+
enclosing_stmt(#20032,#20019)
108+
expr_containers(#20032,#20001)
112109
#20033=*
113-
stmts(#20033,1,#20030,-2,"{}")
114-
hasLocation(#20033,#20028)
115-
stmt_containers(#20033,#20030)
116-
is_method(#20027)
117-
#20034=*
118-
entry_cfg_node(#20034,#20001)
119-
#20035=@"loc,{#10000},1,1,1,0"
120-
locations_default(#20035,#10000,1,1,1,0)
121-
hasLocation(#20034,#20035)
110+
scopes(#20033,1)
111+
scopenodes(#20032,#20033)
112+
scopenesting(#20033,#20024)
113+
#20034=@"var;{this};{#20033}"
114+
variables(#20034,"this",#20033)
115+
#20035=@"var;{arguments};{#20033}"
116+
variables(#20035,"arguments",#20033)
117+
is_arguments_object(#20035)
122118
#20036=*
123-
exit_cfg_node(#20036,#20001)
124-
hasLocation(#20036,#20017)
125-
successor(#20018,#20026)
126-
successor(#20030,#20027)
119+
stmts(#20036,1,#20032,-2,"{}")
120+
hasLocation(#20036,#20030)
121+
stmt_containers(#20036,#20032)
122+
is_method(#20029)
127123
#20037=*
128-
entry_cfg_node(#20037,#20030)
129-
hasLocation(#20037,#20028)
130-
#20038=*
131-
exit_cfg_node(#20038,#20030)
132-
hasLocation(#20038,#20028)
133-
successor(#20033,#20038)
134-
successor(#20037,#20033)
135-
successor(#20029,#20030)
136-
successor(#20027,#20021)
137-
successor(#20026,#20029)
138-
successor(#20021,#20019)
139-
successor(#20019,#20036)
140-
successor(#20034,#20018)
124+
entry_cfg_node(#20037,#20001)
125+
#20038=@"loc,{#10000},1,1,1,0"
126+
locations_default(#20038,#10000,1,1,1,0)
127+
hasLocation(#20037,#20038)
128+
#20039=*
129+
exit_cfg_node(#20039,#20001)
130+
hasLocation(#20039,#20017)
131+
successor(#20019,#20028)
132+
successor(#20032,#20029)
133+
#20040=*
134+
entry_cfg_node(#20040,#20032)
135+
hasLocation(#20040,#20030)
136+
#20041=*
137+
exit_cfg_node(#20041,#20032)
138+
hasLocation(#20041,#20030)
139+
successor(#20036,#20041)
140+
successor(#20040,#20036)
141+
successor(#20031,#20032)
142+
successor(#20029,#20022)
143+
successor(#20028,#20031)
144+
successor(#20022,#20020)
145+
successor(#20020,#20039)
146+
successor(#20037,#20019)
141147
numlines(#10000,1,1,0)
142148
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)