mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "throwstmt" to "throw_stmt"
This commit is contained in:
@@ -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) }
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user