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

Skip to content

Commit ba600ac

Browse files
committed
renamed "arraySize" to "array_size"
1 parent 83b89fa commit ba600ac

24 files changed

Lines changed: 39 additions & 32 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ public Label visit(EnhancedForStatement nd, Context c) {
10921092
public Label visit(ArrayExpression nd, Context c) {
10931093
Label key = super.visit(nd, c);
10941094
visitAll(nd.getElements(), key, IdContext.varBind, 0);
1095-
trapwriter.addTuple("arraySize", key, nd.getElements().size());
1095+
trapwriter.addTuple("array_size", key, nd.getElements().size());
10961096
return key;
10971097
}
10981098

@@ -1102,7 +1102,7 @@ public Label visit(ArrayPattern nd, Context c) {
11021102
visitAll(nd.getElements(), key, c.idcontext, 0);
11031103
visit(nd.getRest(), key, -1, c.idcontext);
11041104
visitAll(nd.getDefaults(), key, IdContext.varBind, -2, -1);
1105-
trapwriter.addTuple("arraySize", key, nd.getElements().size());
1105+
trapwriter.addTuple("array_size", key, nd.getElements().size());
11061106
return key;
11071107
}
11081108

javascript/extractor/tests/e4x/output/trap/regress.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ literals("y","y",#20023)
8484
#20024=@"var;{y};{#20000}"
8585
variables(#20024,"y",#20000)
8686
bind(#20023,#20024)
87-
arraySize(#20018,1)
87+
array_size(#20018,1)
8888
#20025=*
8989
entry_cfg_node(#20025,#20001)
9090
#20026=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/e4x/output/trap/tst.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ literals("g","g",#20273)
865865
#20274=@"var;{g};{#20000}"
866866
variables(#20274,"g",#20000)
867867
bind(#20273,#20274)
868-
arraySize(#20269,1)
868+
array_size(#20269,1)
869869
#20275=*
870870
stmts(#20275,18,#20001,8,"var e = ... </elt>;")
871871
#20276=@"loc,{#10000},10,1,13,9"

javascript/extractor/tests/es2015/output/trap/array_pattern_with_default.js.trap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ hasLocation(#20031,#20011)
100100
enclosing_stmt(#20031,#20024)
101101
expr_containers(#20031,#20001)
102102
literals("42","42",#20031)
103-
arraySize(#20027,1)
103+
array_size(#20027,1)
104104
#20032=*
105105
exprs(#20032,7,#20025,1,"[]")
106106
#20033=@"loc,{#10000},1,10,1,11"
107107
locations_default(#20033,#10000,1,10,1,11)
108108
hasLocation(#20032,#20033)
109109
enclosing_stmt(#20032,#20024)
110110
expr_containers(#20032,#20001)
111-
arraySize(#20032,0)
111+
array_size(#20032,0)
112112
#20034=*
113113
entry_cfg_node(#20034,#20001)
114114
#20035=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/array_pattern_with_rest.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ enclosing_stmt(#20066,#20060)
199199
expr_containers(#20066,#20051)
200200
literals("ys","ys",#20066)
201201
decl(#20066,#20054)
202-
arraySize(#20064,1)
202+
array_size(#20064,1)
203203
#20067=*
204204
exprs(#20067,79,#20062,1,"o")
205205
hasLocation(#20067,#20037)

javascript/extractor/tests/es2015/output/trap/arrowfn.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ regexpterm(#20113,14,#20112,0,"abc")
317317
locations_default(#20114,#10000,1,14,1,16)
318318
hasLocation(#20113,#20114)
319319
regexpConstValue(#20113,"abc")
320-
arraySize(#20104,3)
320+
array_size(#20104,3)
321321
#20115=*
322322
exprs(#20115,0,#20102,1,"map")
323323
hasLocation(#20115,#20025)

javascript/extractor/tests/es2015/output/trap/complex_array_pattern.js.trap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ hasLocation(#20035,#20011)
112112
enclosing_stmt(#20035,#20026)
113113
expr_containers(#20035,#20001)
114114
literals("x","x",#20035)
115-
arraySize(#20029,1)
115+
array_size(#20029,1)
116116
#20036=*
117117
exprs(#20036,7,#20027,1,"[42]")
118118
#20037=@"loc,{#10000},1,9,1,12"
@@ -126,7 +126,7 @@ hasLocation(#20038,#20019)
126126
enclosing_stmt(#20038,#20026)
127127
expr_containers(#20038,#20001)
128128
literals("42","42",#20038)
129-
arraySize(#20036,1)
129+
array_size(#20036,1)
130130
#20039=*
131131
entry_cfg_node(#20039,#20001)
132132
#20040=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/destructuring.js.trap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ hasLocation(#20188,#20041)
511511
expr_containers(#20188,#20177)
512512
literals("y","y",#20188)
513513
decl(#20188,#20184)
514-
arraySize(#20185,2)
514+
array_size(#20185,2)
515515
#20189=@"var;{arguments};{#20180}"
516516
variables(#20189,"arguments",#20180)
517517
isArgumentsObject(#20189)
@@ -562,8 +562,8 @@ enclosing_stmt(#20201,#20192)
562562
expr_containers(#20201,#20177)
563563
literals("c","c",#20201)
564564
decl(#20201,#20182)
565-
arraySize(#20199,2)
566-
arraySize(#20196,2)
565+
array_size(#20199,2)
566+
array_size(#20196,2)
567567
#20202=*
568568
exprs(#20202,79,#20194,1,"x")
569569
hasLocation(#20202,#20069)
@@ -610,7 +610,7 @@ enclosing_stmt(#20212,#20207)
610610
expr_containers(#20212,#20177)
611611
literals("c","c",#20212)
612612
bind(#20212,#20182)
613-
arraySize(#20209,2)
613+
array_size(#20209,2)
614614
#20213=*
615615
stmts(#20213,20,#20203,1,"catch ( ... (d);\n\t}")
616616
#20214=@"loc,{#10000},5,4,7,2"

javascript/extractor/tests/es2015/output/trap/export10.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ exprs(#20042,7,#20040,0,"[,]")
130130
hasLocation(#20042,#20041)
131131
enclosing_stmt(#20042,#20040)
132132
expr_containers(#20042,#20001)
133-
arraySize(#20042,1)
133+
array_size(#20042,1)
134134
#20043=*
135135
entry_cfg_node(#20043,#20001)
136136
#20044=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/es2015/output/trap/export9.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ exprs(#20043,7,#20041,0,"[,]")
143143
hasLocation(#20043,#20042)
144144
enclosing_stmt(#20043,#20041)
145145
expr_containers(#20043,#20001)
146-
arraySize(#20043,1)
146+
array_size(#20043,1)
147147
#20044=*
148148
entry_cfg_node(#20044,#20001)
149149
#20045=@"loc,{#10000},1,1,1,0"

0 commit comments

Comments
 (0)