renamed "foreachstmt" to "for_each_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:22 +02:00
parent 442d3e5f70
commit 893b743b57
3 changed files with 4 additions and 4 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 @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, * 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. * A `debugger` statement.

View File

@@ -174,7 +174,7 @@ case @stmt.kind of
| 22 = @const_decl_stmt | 22 = @const_decl_stmt
| 23 = @let_stmt | 23 = @let_stmt
| 24 = @legacy_let_stmt | 24 = @legacy_let_stmt
| 25 = @foreachstmt | 25 = @for_each_stmt
| 26 = @classdeclstmt | 26 = @classdeclstmt
| 27 = @importdeclaration | 27 = @importdeclaration
| 28 = @exportalldeclaration | 28 = @exportalldeclaration

View File

@@ -154,7 +154,7 @@
<v>1</v> <v>1</v>
</e> </e>
<e> <e>
<k>@foreachstmt</k> <k>@for_each_stmt</k>
<v>1</v> <v>1</v>
</e> </e>
<e> <e>