mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "forstmt" to "for_stmt"
This commit is contained in:
@@ -67,7 +67,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
|||||||
private class TControlStmt =
|
private class TControlStmt =
|
||||||
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
|
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
|
||||||
|
|
||||||
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @forstmt;
|
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @for_stmt;
|
||||||
|
|
||||||
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
|
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
|
||||||
|
|
||||||
@@ -782,7 +782,7 @@ class ExprOrVarDecl extends ASTNode {
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class ForStmt extends @forstmt, LoopStmt {
|
class ForStmt extends @for_stmt, LoopStmt {
|
||||||
/** Gets the init part of this `for` loop. */
|
/** Gets the init part of this `for` loop. */
|
||||||
ExprOrVarDecl getInit() {
|
ExprOrVarDecl getInit() {
|
||||||
result = getChildExpr(0) or
|
result = getChildExpr(0) or
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ case @stmt.kind of
|
|||||||
| 11 = @try_stmt
|
| 11 = @try_stmt
|
||||||
| 12 = @while_stmt
|
| 12 = @while_stmt
|
||||||
| 13 = @do_while_stmt
|
| 13 = @do_while_stmt
|
||||||
| 14 = @forstmt
|
| 14 = @for_stmt
|
||||||
| 15 = @forinstmt
|
| 15 = @forinstmt
|
||||||
| 16 = @debuggerstmt
|
| 16 = @debuggerstmt
|
||||||
| 17 = @functiondeclstmt
|
| 17 = @functiondeclstmt
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<v>1471</v>
|
<v>1471</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@forstmt</k>
|
<k>@for_stmt</k>
|
||||||
<v>5385</v>
|
<v>5385</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user