renamed "forofstmt" to "for_of_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:19 +02:00
parent c56746929d
commit 231583a3f8
3 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ private class TControlStmt =
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @for_stmt; 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, * 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. * Holds if this is a `for-await-of` statement.
*/ */

View File

@@ -170,7 +170,7 @@ case @stmt.kind of
| 18 = @var_decl_stmt | 18 = @var_decl_stmt
| 19 = @case | 19 = @case
| 20 = @catch_clause | 20 = @catch_clause
| 21 = @forofstmt | 21 = @for_of_stmt
| 22 = @constdeclstmt | 22 = @constdeclstmt
| 23 = @letstmt | 23 = @letstmt
| 24 = @legacy_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; @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); 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 // expressions
#keyset[parent, idx] #keyset[parent, idx]

View File

@@ -138,7 +138,7 @@
<v>1272</v> <v>1272</v>
</e> </e>
<e> <e>
<k>@forofstmt</k> <k>@for_of_stmt</k>
<v>61</v> <v>61</v>
</e> </e>
<e> <e>