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

Skip to content

Commit 059d728

Browse files
committed
renamed "stmtContainers" to "stmt_containers"
1 parent 07fd747 commit 059d728

224 files changed

Lines changed: 1155 additions & 1148 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
@@ -416,7 +416,7 @@ public Label visit(Statement nd, Context c) {
416416
String tostring = lexicalExtractor.mkToString(nd);
417417
trapwriter.addTuple("stmts", lbl, kind, c.parent, c.childIndex, tostring);
418418
locationManager.emitNodeLocation(nd, lbl);
419-
trapwriter.addTuple("stmtContainers", lbl, contextManager.getCurrentContainerKey());
419+
trapwriter.addTuple("stmt_containers", lbl, contextManager.getCurrentContainerKey());
420420
contextManager.setCurrentStatement(nd);
421421
return lbl;
422422
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ hasLocation(#20001,#20003)
5050
#20016=*
5151
stmts(#20016,2,#20001,0,"!class {};")
5252
hasLocation(#20016,#20003)
53-
stmtContainers(#20016,#20001)
53+
stmt_containers(#20016,#20001)
5454
#20017=*
5555
exprs(#20017,18,#20016,0,"!class {}")
5656
#20018=@"loc,{#10000},1,1,1,9"
@@ -91,7 +91,7 @@ isArgumentsObject(#20026)
9191
#20027=*
9292
stmts(#20027,1,#20024,-2,"{}")
9393
hasLocation(#20027,#20022)
94-
stmtContainers(#20027,#20024)
94+
stmt_containers(#20027,#20024)
9595
isMethod(#20021)
9696
#20028=*
9797
entry_cfg_node(#20028,#20001)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ hasLocation(#20001,#20003)
5555
#20018=*
5656
stmts(#20018,2,#20001,0,"!class A {};")
5757
hasLocation(#20018,#20003)
58-
stmtContainers(#20018,#20001)
58+
stmt_containers(#20018,#20001)
5959
#20019=*
6060
exprs(#20019,18,#20018,0,"!class A {}")
6161
#20020=@"loc,{#10000},1,1,1,11"
@@ -112,7 +112,7 @@ isArgumentsObject(#20032)
112112
#20033=*
113113
stmts(#20033,1,#20030,-2,"{}")
114114
hasLocation(#20033,#20028)
115-
stmtContainers(#20033,#20030)
115+
stmt_containers(#20033,#20030)
116116
isMethod(#20027)
117117
#20034=*
118118
entry_cfg_node(#20034,#20001)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ hasLocation(#20001,#20003)
6060
#20020=*
6161
stmts(#20020,2,#20001,0,"!class extends B {};")
6262
hasLocation(#20020,#20003)
63-
stmtContainers(#20020,#20001)
63+
stmt_containers(#20020,#20001)
6464
#20021=*
6565
exprs(#20021,18,#20020,0,"!class extends B {}")
6666
#20022=@"loc,{#10000},1,1,1,19"
@@ -119,11 +119,11 @@ hasRestParameter(#20030)
119119
#20035=*
120120
stmts(#20035,1,#20030,-2,"{ super(...args); }")
121121
hasLocation(#20035,#20028)
122-
stmtContainers(#20035,#20030)
122+
stmt_containers(#20035,#20030)
123123
#20036=*
124124
stmts(#20036,2,#20035,0,"super(...args);")
125125
hasLocation(#20036,#20028)
126-
stmtContainers(#20036,#20030)
126+
stmt_containers(#20036,#20030)
127127
#20037=*
128128
exprs(#20037,13,#20036,0,"super(...args)")
129129
hasLocation(#20037,#20028)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ hasLocation(#20001,#20003)
6565
#20022=*
6666
stmts(#20022,2,#20001,0,"!class ... s B {};")
6767
hasLocation(#20022,#20003)
68-
stmtContainers(#20022,#20001)
68+
stmt_containers(#20022,#20001)
6969
#20023=*
7070
exprs(#20023,18,#20022,0,"!class ... ds B {}")
7171
#20024=@"loc,{#10000},1,1,1,21"
@@ -140,11 +140,11 @@ hasRestParameter(#20036)
140140
#20041=*
141141
stmts(#20041,1,#20036,-2,"{ super(...args); }")
142142
hasLocation(#20041,#20034)
143-
stmtContainers(#20041,#20036)
143+
stmt_containers(#20041,#20036)
144144
#20042=*
145145
stmts(#20042,2,#20041,0,"super(...args);")
146146
hasLocation(#20042,#20034)
147-
stmtContainers(#20042,#20036)
147+
stmt_containers(#20042,#20036)
148148
#20043=*
149149
exprs(#20043,13,#20042,0,"super(...args)")
150150
hasLocation(#20043,#20034)

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ stmts(#20139,26,#20001,0,"class A ... () {}\n}")
389389
#20140=@"loc,{#10000},1,1,9,1"
390390
locations_default(#20140,#10000,1,1,9,1)
391391
hasLocation(#20139,#20140)
392-
stmtContainers(#20139,#20001)
392+
stmt_containers(#20139,#20001)
393393
#20141=*
394394
exprs(#20141,78,#20139,0,"A")
395395
hasLocation(#20141,#20041)
@@ -432,13 +432,13 @@ stmts(#20150,1,#20146,-2,"{\n ctor;\n }")
432432
#20151=@"loc,{#10000},2,17,4,3"
433433
locations_default(#20151,#10000,2,17,4,3)
434434
hasLocation(#20150,#20151)
435-
stmtContainers(#20150,#20146)
435+
stmt_containers(#20150,#20146)
436436
#20152=*
437437
stmts(#20152,2,#20150,0,"ctor;")
438438
#20153=@"loc,{#10000},3,5,3,9"
439439
locations_default(#20153,#10000,3,5,3,9)
440440
hasLocation(#20152,#20153)
441-
stmtContainers(#20152,#20146)
441+
stmt_containers(#20152,#20146)
442442
#20154=*
443443
exprs(#20154,79,#20152,0,"ctor")
444444
hasLocation(#20154,#20053)
@@ -501,7 +501,7 @@ stmts(#20169,1,#20165,-2,"{}")
501501
#20170=@"loc,{#10000},7,7,7,8"
502502
locations_default(#20170,#10000,7,7,7,8)
503503
hasLocation(#20169,#20170)
504-
stmtContainers(#20169,#20165)
504+
stmt_containers(#20169,#20165)
505505
isMethod(#20162)
506506
#20171=*
507507
properties(#20171,#20139,6,0,"static g() {}")
@@ -533,15 +533,15 @@ stmts(#20178,1,#20174,-2,"{}")
533533
#20179=@"loc,{#10000},8,14,8,15"
534534
locations_default(#20179,#10000,8,14,8,15)
535535
hasLocation(#20178,#20179)
536-
stmtContainers(#20178,#20174)
536+
stmt_containers(#20178,#20174)
537537
isMethod(#20171)
538538
isStatic(#20171)
539539
#20180=*
540540
stmts(#20180,26,#20001,1,"class B ... \n z;\n}")
541541
#20181=@"loc,{#10000},11,1,18,1"
542542
locations_default(#20181,#10000,11,1,18,1)
543543
hasLocation(#20180,#20181)
544-
stmtContainers(#20180,#20001)
544+
stmt_containers(#20180,#20001)
545545
#20182=*
546546
exprs(#20182,78,#20180,0,"B")
547547
hasLocation(#20182,#20094)
@@ -591,13 +591,13 @@ stmts(#20192,1,#20188,-2,"{\n b ... er;\n }")
591591
#20193=@"loc,{#10000},12,17,16,3"
592592
locations_default(#20193,#10000,12,17,16,3)
593593
hasLocation(#20192,#20193)
594-
stmtContainers(#20192,#20188)
594+
stmt_containers(#20192,#20188)
595595
#20194=*
596596
stmts(#20194,2,#20192,0,"before;")
597597
#20195=@"loc,{#10000},13,5,13,11"
598598
locations_default(#20195,#10000,13,5,13,11)
599599
hasLocation(#20194,#20195)
600-
stmtContainers(#20194,#20188)
600+
stmt_containers(#20194,#20188)
601601
#20196=*
602602
exprs(#20196,79,#20194,0,"before")
603603
hasLocation(#20196,#20110)
@@ -612,7 +612,7 @@ stmts(#20198,2,#20192,1,"super();")
612612
#20199=@"loc,{#10000},14,5,14,12"
613613
locations_default(#20199,#10000,14,5,14,12)
614614
hasLocation(#20198,#20199)
615-
stmtContainers(#20198,#20188)
615+
stmt_containers(#20198,#20188)
616616
#20200=*
617617
exprs(#20200,13,#20198,0,"super()")
618618
#20201=@"loc,{#10000},14,5,14,11"
@@ -630,7 +630,7 @@ stmts(#20203,2,#20192,2,"after;")
630630
#20204=@"loc,{#10000},15,5,15,10"
631631
locations_default(#20204,#10000,15,5,15,10)
632632
hasLocation(#20203,#20204)
633-
stmtContainers(#20203,#20188)
633+
stmt_containers(#20203,#20188)
634634
#20205=*
635635
exprs(#20205,79,#20203,0,"after")
636636
hasLocation(#20205,#20122)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ hasLocation(#20001,#20003)
9090
#20032=*
9191
stmts(#20032,3,#20001,0,"if(x,1+2,y||z);")
9292
hasLocation(#20032,#20003)
93-
stmtContainers(#20032,#20001)
93+
stmt_containers(#20032,#20001)
9494
#20033=*
9595
exprs(#20033,10,#20032,0,"x,1+2,y||z")
9696
#20034=@"loc,{#10000},1,4,1,13"
@@ -154,7 +154,7 @@ bind(#20045,#20046)
154154
#20047=*
155155
stmts(#20047,0,#20032,1,";")
156156
hasLocation(#20047,#20029)
157-
stmtContainers(#20047,#20001)
157+
stmt_containers(#20047,#20001)
158158
#20048=*
159159
entry_cfg_node(#20048,#20001)
160160
#20049=@"loc,{#10000},1,1,1,0"

javascript/extractor/tests/cfg/output/trap/short-circuit.js.trap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ hasLocation(#20001,#20032)
9393
#20033=*
9494
stmts(#20033,2,#20001,0,"a && b && c;")
9595
hasLocation(#20033,#20003)
96-
stmtContainers(#20033,#20001)
96+
stmt_containers(#20033,#20001)
9797
#20034=*
9898
exprs(#20034,44,#20033,0,"a && b && c")
9999
#20035=@"loc,{#10000},1,1,1,11"
@@ -138,7 +138,7 @@ bind(#20042,#20043)
138138
#20044=*
139139
stmts(#20044,2,#20001,1,"x || y || z;")
140140
hasLocation(#20044,#20005)
141-
stmtContainers(#20044,#20001)
141+
stmt_containers(#20044,#20001)
142142
#20045=*
143143
exprs(#20045,45,#20044,0,"x || y || z")
144144
#20046=@"loc,{#10000},2,1,2,11"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ hasLocation(#20001,#20003)
8585
#20030=*
8686
stmts(#20030,2,#20001,0,"(a ? b ... ) || e;")
8787
hasLocation(#20030,#20003)
88-
stmtContainers(#20030,#20001)
88+
stmt_containers(#20030,#20001)
8989
#20031=*
9090
exprs(#20031,45,#20030,0,"(a ? b ... d) || e")
9191
#20032=@"loc,{#10000},1,1,1,21"

0 commit comments

Comments
 (0)