renamed "whilestmt" to "while_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:13 +02:00
parent f749d46fe8
commit ed585de1a0
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 @whilestmt or @dowhilestmt or @forstmt;
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @dowhilestmt or @forstmt;
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
@@ -723,7 +723,7 @@ class TryStmt extends @try_stmt, ControlStmt {
* }
* ```
*/
class WhileStmt extends @whilestmt, LoopStmt {
class WhileStmt extends @while_stmt, LoopStmt {
/** Gets the loop condition of this `while` loop. */
Expr getExpr() { result = getChildExpr(0) }

View File

@@ -161,7 +161,7 @@ case @stmt.kind of
| 9 = @return_stmt
| 10 = @throw_stmt
| 11 = @try_stmt
| 12 = @whilestmt
| 12 = @while_stmt
| 13 = @dowhilestmt
| 14 = @forstmt
| 15 = @forinstmt

View File

@@ -102,7 +102,7 @@
<v>1316</v>
</e>
<e>
<k>@whilestmt</k>
<k>@while_stmt</k>
<v>3120</v>
</e>
<e>