renamed "withstmt" to "with_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:09 +02:00
parent 569c5f19cb
commit 3f47afa595
3 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
} }
private class TControlStmt = private class TControlStmt =
TLoopStmt or @if_stmt or @withstmt or @switchstmt or @trystmt or @catchclause; TLoopStmt or @if_stmt or @with_stmt or @switchstmt or @trystmt or @catchclause;
private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt; private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt;
@@ -549,7 +549,7 @@ class ContinueStmt extends @continue_stmt, BreakOrContinueStmt { }
* } * }
* ``` * ```
*/ */
class WithStmt extends @withstmt, ControlStmt { class WithStmt extends @with_stmt, ControlStmt {
/** Gets the controlling expression of this `with` statement. */ /** Gets the controlling expression of this `with` statement. */
Expr getExpr() { result = getChildExpr(0) } Expr getExpr() { result = getChildExpr(0) }

View File

@@ -156,7 +156,7 @@ case @stmt.kind of
| 4 = @labeled_stmt | 4 = @labeled_stmt
| 5 = @break_stmt | 5 = @break_stmt
| 6 = @continue_stmt | 6 = @continue_stmt
| 7 = @withstmt | 7 = @with_stmt
| 8 = @switchstmt | 8 = @switchstmt
| 9 = @returnstmt | 9 = @returnstmt
| 10 = @throwstmt | 10 = @throwstmt

View File

@@ -82,7 +82,7 @@
<v>1642</v> <v>1642</v>
</e> </e>
<e> <e>
<k>@withstmt</k> <k>@with_stmt</k>
<v>4</v> <v>4</v>
</e> </e>
<e> <e>