renamed "dowhilestmt" to "do_while_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:13 +02:00
parent ed585de1a0
commit 4c24e2d8ba
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 @dowhilestmt or @forstmt;
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @forstmt;
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
@@ -743,7 +743,7 @@ class WhileStmt extends @while_stmt, LoopStmt {
* } while(++i < lines.length);
* ```
*/
class DoWhileStmt extends @dowhilestmt, LoopStmt {
class DoWhileStmt extends @do_while_stmt, LoopStmt {
/** Gets the loop condition of this `do`-`while` loop. */
Expr getExpr() { result = getChildExpr(1) }

View File

@@ -162,7 +162,7 @@ case @stmt.kind of
| 10 = @throw_stmt
| 11 = @try_stmt
| 12 = @while_stmt
| 13 = @dowhilestmt
| 13 = @do_while_stmt
| 14 = @forstmt
| 15 = @forinstmt
| 16 = @debuggerstmt

View File

@@ -106,7 +106,7 @@
<v>3120</v>
</e>
<e>
<k>@dowhilestmt</k>
<k>@do_while_stmt</k>
<v>1471</v>
</e>
<e>