Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83b89fa

Browse files
committed
renamed "exprContainers" to "expr_containers"
1 parent 30ba7d2 commit 83b89fa

223 files changed

Lines changed: 3317 additions & 3310 deletions

File tree

Some content is hidden

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

javascript/extractor/src/com/semmle/js/extractor/ASTExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ protected Label visit(SourceElement nd, int kind, String tostring, Context c) {
405405
Statement enclosingStmt = contextManager.getCurrentStatement();
406406
if (enclosingStmt != null)
407407
trapwriter.addTuple("enclosing_stmt", lbl, trapwriter.localID(enclosingStmt));
408-
trapwriter.addTuple("exprContainers", lbl, contextManager.getCurrentContainerKey());
408+
trapwriter.addTuple("expr_containers", lbl, contextManager.getCurrentContainerKey());
409409
return lbl;
410410
}
411411

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ exprs(#20017,18,#20016,0,"!class {}")
5757
locations_default(#20018,#10000,1,1,1,9)
5858
hasLocation(#20017,#20018)
5959
enclosing_stmt(#20017,#20016)
60-
exprContainers(#20017,#20001)
60+
expr_containers(#20017,#20001)
6161
#20019=*
6262
exprs(#20019,80,#20017,0,"class {}")
6363
#20020=@"loc,{#10000},1,2,1,9"
6464
locations_default(#20020,#10000,1,2,1,9)
6565
hasLocation(#20019,#20020)
6666
enclosing_stmt(#20019,#20016)
67-
exprContainers(#20019,#20001)
67+
expr_containers(#20019,#20001)
6868
#20021=*
6969
properties(#20021,#20019,2,0,"constructor() {}")
7070
#20022=@"loc,{#10000},1,8,1,7"
@@ -74,13 +74,13 @@ hasLocation(#20021,#20022)
7474
exprs(#20023,0,#20021,0,"constructor")
7575
hasLocation(#20023,#20022)
7676
enclosing_stmt(#20023,#20016)
77-
exprContainers(#20023,#20001)
77+
expr_containers(#20023,#20001)
7878
literals("constructor","constructor",#20023)
7979
#20024=*
8080
exprs(#20024,9,#20021,1,"() {}")
8181
hasLocation(#20024,#20022)
8282
enclosing_stmt(#20024,#20016)
83-
exprContainers(#20024,#20001)
83+
expr_containers(#20024,#20001)
8484
#20025=*
8585
scopes(#20025,1)
8686
scopenodes(#20024,#20025)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ exprs(#20019,18,#20018,0,"!class A {}")
6262
locations_default(#20020,#10000,1,1,1,11)
6363
hasLocation(#20019,#20020)
6464
enclosing_stmt(#20019,#20018)
65-
exprContainers(#20019,#20001)
65+
expr_containers(#20019,#20001)
6666
#20021=*
6767
exprs(#20021,80,#20019,0,"class A {}")
6868
#20022=@"loc,{#10000},1,2,1,11"
6969
locations_default(#20022,#10000,1,2,1,11)
7070
hasLocation(#20021,#20022)
7171
enclosing_stmt(#20021,#20018)
72-
exprContainers(#20021,#20001)
72+
expr_containers(#20021,#20001)
7373
#20023=*
7474
scopes(#20023,8)
7575
scopenodes(#20021,#20023)
@@ -82,7 +82,7 @@ local_type_names(#20025,"A",#20023)
8282
exprs(#20026,78,#20021,0,"A")
8383
hasLocation(#20026,#20009)
8484
enclosing_stmt(#20026,#20018)
85-
exprContainers(#20026,#20001)
85+
expr_containers(#20026,#20001)
8686
literals("A","A",#20026)
8787
decl(#20026,#20024)
8888
typedecl(#20026,#20025)
@@ -95,13 +95,13 @@ hasLocation(#20027,#20028)
9595
exprs(#20029,0,#20027,0,"constructor")
9696
hasLocation(#20029,#20028)
9797
enclosing_stmt(#20029,#20018)
98-
exprContainers(#20029,#20001)
98+
expr_containers(#20029,#20001)
9999
literals("constructor","constructor",#20029)
100100
#20030=*
101101
exprs(#20030,9,#20027,1,"() {}")
102102
hasLocation(#20030,#20028)
103103
enclosing_stmt(#20030,#20018)
104-
exprContainers(#20030,#20001)
104+
expr_containers(#20030,#20001)
105105
#20031=*
106106
scopes(#20031,1)
107107
scopenodes(#20030,#20031)

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ exprs(#20021,18,#20020,0,"!class extends B {}")
6767
locations_default(#20022,#10000,1,1,1,19)
6868
hasLocation(#20021,#20022)
6969
enclosing_stmt(#20021,#20020)
70-
exprContainers(#20021,#20001)
70+
expr_containers(#20021,#20001)
7171
#20023=*
7272
exprs(#20023,80,#20021,0,"class extends B {}")
7373
#20024=@"loc,{#10000},1,2,1,19"
7474
locations_default(#20024,#10000,1,2,1,19)
7575
hasLocation(#20023,#20024)
7676
enclosing_stmt(#20023,#20020)
77-
exprContainers(#20023,#20001)
77+
expr_containers(#20023,#20001)
7878
#20025=*
7979
exprs(#20025,79,#20023,1,"B")
8080
hasLocation(#20025,#20011)
8181
enclosing_stmt(#20025,#20020)
82-
exprContainers(#20025,#20001)
82+
expr_containers(#20025,#20001)
8383
literals("B","B",#20025)
8484
#20026=@"var;{B};{#20000}"
8585
variables(#20026,"B",#20000)
@@ -93,13 +93,13 @@ hasLocation(#20027,#20028)
9393
exprs(#20029,0,#20027,0,"constructor")
9494
hasLocation(#20029,#20028)
9595
enclosing_stmt(#20029,#20020)
96-
exprContainers(#20029,#20001)
96+
expr_containers(#20029,#20001)
9797
literals("constructor","constructor",#20029)
9898
#20030=*
9999
exprs(#20030,9,#20027,1,"(...arg ... rgs); }")
100100
hasLocation(#20030,#20028)
101101
enclosing_stmt(#20030,#20020)
102-
exprContainers(#20030,#20001)
102+
expr_containers(#20030,#20001)
103103
#20031=*
104104
scopes(#20031,1)
105105
scopenodes(#20030,#20031)
@@ -109,7 +109,7 @@ variables(#20032,"args",#20031)
109109
#20033=*
110110
exprs(#20033,78,#20030,0,"args")
111111
hasLocation(#20033,#20028)
112-
exprContainers(#20033,#20030)
112+
expr_containers(#20033,#20030)
113113
literals("args","args",#20033)
114114
decl(#20033,#20032)
115115
#20034=@"var;{arguments};{#20031}"
@@ -128,22 +128,22 @@ stmt_containers(#20036,#20030)
128128
exprs(#20037,13,#20036,0,"super(...args)")
129129
hasLocation(#20037,#20028)
130130
enclosing_stmt(#20037,#20036)
131-
exprContainers(#20037,#20030)
131+
expr_containers(#20037,#20030)
132132
#20038=*
133133
exprs(#20038,81,#20037,-1,"super")
134134
hasLocation(#20038,#20028)
135135
enclosing_stmt(#20038,#20036)
136-
exprContainers(#20038,#20030)
136+
expr_containers(#20038,#20030)
137137
#20039=*
138138
exprs(#20039,66,#20037,0,"...args")
139139
hasLocation(#20039,#20028)
140140
enclosing_stmt(#20039,#20036)
141-
exprContainers(#20039,#20030)
141+
expr_containers(#20039,#20030)
142142
#20040=*
143143
exprs(#20040,79,#20039,0,"args")
144144
hasLocation(#20040,#20028)
145145
enclosing_stmt(#20040,#20036)
146-
exprContainers(#20040,#20030)
146+
expr_containers(#20040,#20030)
147147
literals("args","args",#20040)
148148
bind(#20040,#20032)
149149
isMethod(#20027)

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ exprs(#20023,18,#20022,0,"!class ... ds B {}")
7272
locations_default(#20024,#10000,1,1,1,21)
7373
hasLocation(#20023,#20024)
7474
enclosing_stmt(#20023,#20022)
75-
exprContainers(#20023,#20001)
75+
expr_containers(#20023,#20001)
7676
#20025=*
7777
exprs(#20025,80,#20023,0,"class A extends B {}")
7878
#20026=@"loc,{#10000},1,2,1,21"
7979
locations_default(#20026,#10000,1,2,1,21)
8080
hasLocation(#20025,#20026)
8181
enclosing_stmt(#20025,#20022)
82-
exprContainers(#20025,#20001)
82+
expr_containers(#20025,#20001)
8383
#20027=*
8484
scopes(#20027,8)
8585
scopenodes(#20025,#20027)
@@ -92,15 +92,15 @@ local_type_names(#20029,"A",#20027)
9292
exprs(#20030,78,#20025,0,"A")
9393
hasLocation(#20030,#20009)
9494
enclosing_stmt(#20030,#20022)
95-
exprContainers(#20030,#20001)
95+
expr_containers(#20030,#20001)
9696
literals("A","A",#20030)
9797
decl(#20030,#20028)
9898
typedecl(#20030,#20029)
9999
#20031=*
100100
exprs(#20031,79,#20025,1,"B")
101101
hasLocation(#20031,#20013)
102102
enclosing_stmt(#20031,#20022)
103-
exprContainers(#20031,#20001)
103+
expr_containers(#20031,#20001)
104104
literals("B","B",#20031)
105105
#20032=@"var;{B};{#20000}"
106106
variables(#20032,"B",#20000)
@@ -114,13 +114,13 @@ hasLocation(#20033,#20034)
114114
exprs(#20035,0,#20033,0,"constructor")
115115
hasLocation(#20035,#20034)
116116
enclosing_stmt(#20035,#20022)
117-
exprContainers(#20035,#20001)
117+
expr_containers(#20035,#20001)
118118
literals("constructor","constructor",#20035)
119119
#20036=*
120120
exprs(#20036,9,#20033,1,"(...arg ... rgs); }")
121121
hasLocation(#20036,#20034)
122122
enclosing_stmt(#20036,#20022)
123-
exprContainers(#20036,#20001)
123+
expr_containers(#20036,#20001)
124124
#20037=*
125125
scopes(#20037,1)
126126
scopenodes(#20036,#20037)
@@ -130,7 +130,7 @@ variables(#20038,"args",#20037)
130130
#20039=*
131131
exprs(#20039,78,#20036,0,"args")
132132
hasLocation(#20039,#20034)
133-
exprContainers(#20039,#20036)
133+
expr_containers(#20039,#20036)
134134
literals("args","args",#20039)
135135
decl(#20039,#20038)
136136
#20040=@"var;{arguments};{#20037}"
@@ -149,22 +149,22 @@ stmt_containers(#20042,#20036)
149149
exprs(#20043,13,#20042,0,"super(...args)")
150150
hasLocation(#20043,#20034)
151151
enclosing_stmt(#20043,#20042)
152-
exprContainers(#20043,#20036)
152+
expr_containers(#20043,#20036)
153153
#20044=*
154154
exprs(#20044,81,#20043,-1,"super")
155155
hasLocation(#20044,#20034)
156156
enclosing_stmt(#20044,#20042)
157-
exprContainers(#20044,#20036)
157+
expr_containers(#20044,#20036)
158158
#20045=*
159159
exprs(#20045,66,#20043,0,"...args")
160160
hasLocation(#20045,#20034)
161161
enclosing_stmt(#20045,#20042)
162-
exprContainers(#20045,#20036)
162+
expr_containers(#20045,#20036)
163163
#20046=*
164164
exprs(#20046,79,#20045,0,"args")
165165
hasLocation(#20046,#20034)
166166
enclosing_stmt(#20046,#20042)
167-
exprContainers(#20046,#20036)
167+
expr_containers(#20046,#20036)
168168
literals("args","args",#20046)
169169
bind(#20046,#20038)
170170
isMethod(#20033)

0 commit comments

Comments
 (0)