mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "foreachstmt" to "for_each_stmt"
This commit is contained in:
@@ -69,7 +69,7 @@ private class TControlStmt =
|
||||
|
||||
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @for_stmt;
|
||||
|
||||
private class TEnhancedForLoop = @for_in_stmt or @foreachstmt or @for_of_stmt;
|
||||
private class TEnhancedForLoop = @for_in_stmt or @for_each_stmt or @for_of_stmt;
|
||||
|
||||
/**
|
||||
* A control statement, that is, is a loop, an if statement, a switch statement,
|
||||
@@ -909,7 +909,7 @@ class ForOfStmt extends @for_of_stmt, EnhancedForLoop {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class ForEachStmt extends @foreachstmt, EnhancedForLoop { }
|
||||
class ForEachStmt extends @for_each_stmt, EnhancedForLoop { }
|
||||
|
||||
/**
|
||||
* A `debugger` statement.
|
||||
|
||||
@@ -174,7 +174,7 @@ case @stmt.kind of
|
||||
| 22 = @const_decl_stmt
|
||||
| 23 = @let_stmt
|
||||
| 24 = @legacy_let_stmt
|
||||
| 25 = @foreachstmt
|
||||
| 25 = @for_each_stmt
|
||||
| 26 = @classdeclstmt
|
||||
| 27 = @importdeclaration
|
||||
| 28 = @exportalldeclaration
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
<v>1</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@foreachstmt</k>
|
||||
<k>@for_each_stmt</k>
|
||||
<v>1</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user