mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
renamed "forofstmt" to "for_of_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 @forofstmt;
|
||||
private class TEnhancedForLoop = @for_in_stmt or @foreachstmt or @for_of_stmt;
|
||||
|
||||
/**
|
||||
* A control statement, that is, is a loop, an if statement, a switch statement,
|
||||
@@ -891,7 +891,7 @@ class ForInStmt extends @for_in_stmt, EnhancedForLoop { }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class ForOfStmt extends @forofstmt, EnhancedForLoop {
|
||||
class ForOfStmt extends @for_of_stmt, EnhancedForLoop {
|
||||
/**
|
||||
* Holds if this is a `for-await-of` statement.
|
||||
*/
|
||||
|
||||
@@ -170,7 +170,7 @@ case @stmt.kind of
|
||||
| 18 = @var_decl_stmt
|
||||
| 19 = @case
|
||||
| 20 = @catch_clause
|
||||
| 21 = @forofstmt
|
||||
| 21 = @for_of_stmt
|
||||
| 22 = @constdeclstmt
|
||||
| 23 = @letstmt
|
||||
| 24 = @legacy_letstmt
|
||||
@@ -203,7 +203,7 @@ is_instantiated(unique int decl: @namespace_declaration ref);
|
||||
@declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @function_decl_stmt | @enumdeclaration | @external_module_declaration | @global_augmentation_declaration | @field;
|
||||
has_declare_keyword(unique int stmt: @declarable_node ref);
|
||||
|
||||
is_for_await_of(unique int forof: @forofstmt ref);
|
||||
is_for_await_of(unique int forof: @for_of_stmt ref);
|
||||
|
||||
// expressions
|
||||
#keyset[parent, idx]
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
<v>1272</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@forofstmt</k>
|
||||
<k>@for_of_stmt</k>
|
||||
<v>61</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user