renamed "throwstmt" to "throw_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:11 +02:00
parent 5e2c25eacd
commit 4762c9eac8
3 changed files with 4 additions and 4 deletions

View File

@@ -457,7 +457,7 @@ class LabeledStmt extends @labeled_stmt, Stmt {
Stmt getStmt() { result = getChildStmt(1) } Stmt getStmt() { result = getChildStmt(1) }
} }
private class TJumpStmt = TBreakOrContinueStmt or @return_stmt or @throwstmt; private class TJumpStmt = TBreakOrContinueStmt or @return_stmt or @throw_stmt;
private class TBreakOrContinueStmt = @break_stmt or @continue_stmt; private class TBreakOrContinueStmt = @break_stmt or @continue_stmt;
@@ -639,7 +639,7 @@ class ReturnStmt extends @return_stmt, JumpStmt {
* throw new Error(); * throw new Error();
* ``` * ```
*/ */
class ThrowStmt extends @throwstmt, JumpStmt { class ThrowStmt extends @throw_stmt, JumpStmt {
/** Gets the expression specifying the value to throw. */ /** Gets the expression specifying the value to throw. */
Expr getExpr() { result = getChildExpr(0) } Expr getExpr() { result = getChildExpr(0) }

View File

@@ -159,7 +159,7 @@ case @stmt.kind of
| 7 = @with_stmt | 7 = @with_stmt
| 8 = @switch_stmt | 8 = @switch_stmt
| 9 = @return_stmt | 9 = @return_stmt
| 10 = @throwstmt | 10 = @throw_stmt
| 11 = @trystmt | 11 = @trystmt
| 12 = @whilestmt | 12 = @whilestmt
| 13 = @dowhilestmt | 13 = @dowhilestmt

View File

@@ -94,7 +94,7 @@
<v>48209</v> <v>48209</v>
</e> </e>
<e> <e>
<k>@throwstmt</k> <k>@throw_stmt</k>
<v>2305</v> <v>2305</v>
</e> </e>
<e> <e>