Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 059d728 commit 76f728aCopy full SHA for 76f728a
10 files changed
javascript/extractor/src/com/semmle/js/extractor/ASTExtractor.java
@@ -1222,7 +1222,7 @@ public Label visit(JumpStatement nd, Context c) {
1222
Label key = super.visit(nd, c);
1223
visit(nd.getLabel(), key, 0, IdContext.label);
1224
Label targetKey = trapwriter.localID(contextManager.getTarget(nd));
1225
- trapwriter.addTuple("jumpTargets", key, targetKey);
+ trapwriter.addTuple("jump_targets", key, targetKey);
1226
return key;
1227
}
1228
javascript/extractor/tests/cfg/output/trap/tst.js.trap
@@ -1064,7 +1064,7 @@ stmts(#20369,6,#20365,3,"continue;")
1064
locations_default(#20370,#10000,13,5,13,13)
1065
hasLocation(#20369,#20370)
1066
stmt_containers(#20369,#20001)
1067
-jumpTargets(#20369,#20365)
+jump_targets(#20369,#20365)
1068
#20371=*
1069
stmts(#20371,17,#20001,2,"functio ... (p);\n}")
1070
#20372=@"loc,{#10000},15,1,18,1"
javascript/extractor/tests/stmts/output/trap/conditionals.js.trap
@@ -313,7 +313,7 @@ stmts(#20102,5,#20098,0,"break;")
313
locations_default(#20103,#10000,10,5,10,10)
314
hasLocation(#20102,#20103)
315
stmt_containers(#20102,#20001)
316
-jumpTargets(#20102,#20093)
+jump_targets(#20102,#20093)
317
#20104=*
318
stmts(#20104,19,#20093,2,"default:")
319
hasLocation(#20104,#20023)
javascript/extractor/tests/stmts/output/trap/loops.js.trap
@@ -718,7 +718,7 @@ hasLocation(#20258,#20097)
718
enclosingStmt(#20258,#20256)
719
exprContainers(#20258,#20001)
720
literals("outer","outer",#20258)
721
-jumpTargets(#20256,#20237)
+jump_targets(#20256,#20237)
722
#20259=*
723
stmts(#20259,3,#20252,2,"if (e)\n ... ntinue;")
724
#20260=@"loc,{#10000},7,14,10,21"
@@ -746,14 +746,14 @@ hasLocation(#20265,#20113)
746
enclosingStmt(#20265,#20263)
747
exprContainers(#20265,#20001)
748
literals("outer","outer",#20265)
749
-jumpTargets(#20263,#20237)
+jump_targets(#20263,#20237)
750
#20266=*
751
stmts(#20266,6,#20259,2,"continue;")
752
#20267=@"loc,{#10000},10,13,10,21"
753
locations_default(#20267,#10000,10,13,10,21)
754
hasLocation(#20266,#20267)
755
stmt_containers(#20266,#20001)
756
-jumpTargets(#20266,#20250)
+jump_targets(#20266,#20250)
757
#20268=*
758
stmts(#20268,13,#20001,2,"do {\n ... ile(a);")
759
#20269=@"loc,{#10000},13,1,15,11"
javascript/extractor/tests/stmts/output/trap/switch.js.trap
@@ -386,7 +386,7 @@ stmts(#20136,5,#20134,0,"break;")
386
locations_default(#20137,#10000,3,5,3,10)
387
hasLocation(#20136,#20137)
388
stmt_containers(#20136,#20001)
389
-jumpTargets(#20136,#20130)
+jump_targets(#20136,#20130)
390
#20138=*
391
stmts(#20138,19,#20130,1,"case 23 ... += 19;")
392
#20139=@"loc,{#10000},4,1,5,12"
javascript/ql/src/semmle/javascript/Aliases.qll
@@ -96,3 +96,8 @@ deprecated predicate isClosureModule(TopLevel toplevel) { is_closure_module(topl
96
* Use `ASTNode#getContainer()` instead.
97
*/
98
deprecated predicate stmtContainers(Stmt stmt, StmtContainer container) { stmt_containers(stmt, container) }
99
+/**
100
+ * Alias for the predicate `jump_targets` defined in the .dbscheme.
101
+ * Use `JumpStmt#getTarget()` instead.
102
+ */
103
+deprecated predicate jumpTargets(Stmt jump, Stmt target) { jump_targets(jump, target) }
javascript/ql/src/semmle/javascript/Stmt.qll
@@ -509,7 +509,7 @@ class BreakOrContinueStmt extends TBreakOrContinueStmt, JumpStmt {
509
predicate hasTargetLabel() { exists(getTargetLabel()) }
510
511
/** Gets the statement this statement breaks out of or continues with. */
512
- override Stmt getTarget() { jumpTargets(this, result) }
+ override Stmt getTarget() { jump_targets(this, result) }
513
514
override predicate isSubjectToSemicolonInsertion() { any() }
515
javascript/ql/src/semmlecode.javascript.dbscheme
@@ -142,7 +142,7 @@ stmts (unique int id: @stmt,
142
stmt_containers (unique int stmt: @stmt ref,
143
int container: @stmt_container ref);
144
145
-jumpTargets (unique int jump: @stmt ref,
+jump_targets (unique int jump: @stmt ref,
146
int target: @stmt ref);
147
148
@stmtparent = @stmt | @toplevel | @functionexpr | @arrowfunctionexpr;
javascript/ql/src/semmlecode.javascript.dbscheme.stats
@@ -10133,7 +10133,7 @@
10133
</dependencies>
10134
</relation>
10135
<relation>
10136
-<name>jumpTargets</name>
+<name>jump_targets</name>
10137
<cardinality>11791</cardinality>
10138
<columnsizes>
10139
<e>
javascript/upgrades/c73fbfca57f3d593b9ff50c6aa3a886d6888efec/upgrade.properties
@@ -12,3 +12,5 @@ is_closure_module.rel: reorder isClosureModule.rel(int toplevel) toplevel
12
isClosureModule.rel: delete
13
stmt_containers.rel: reorder stmtContainers.rel(int stmt, int container) stmt container
14
stmtContainers.rel: delete
15
+jump_targets.rel: reorder jumpTargets.rel(int jump, int target) jump target
16
+jumpTargets.rel: delete
0 commit comments