renamed "forstmt" to "for_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:14 +02:00
parent 4c24e2d8ba
commit 712a6dfccd
3 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
private class TControlStmt =
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;
@@ -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. */
ExprOrVarDecl getInit() {
result = getChildExpr(0) or

View File

@@ -163,7 +163,7 @@ case @stmt.kind of
| 11 = @try_stmt
| 12 = @while_stmt
| 13 = @do_while_stmt
| 14 = @forstmt
| 14 = @for_stmt
| 15 = @forinstmt
| 16 = @debuggerstmt
| 17 = @functiondeclstmt

View File

@@ -110,7 +110,7 @@
<v>1471</v>
</e>
<e>
<k>@forstmt</k>
<k>@for_stmt</k>
<v>5385</v>
</e>
<e>