mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
renamed "returnstmt" to "return_stmt"
This commit is contained in:
@@ -457,7 +457,7 @@ class LabeledStmt extends @labeled_stmt, Stmt {
|
||||
Stmt getStmt() { result = getChildStmt(1) }
|
||||
}
|
||||
|
||||
private class TJumpStmt = TBreakOrContinueStmt or @returnstmt or @throwstmt;
|
||||
private class TJumpStmt = TBreakOrContinueStmt or @return_stmt or @throwstmt;
|
||||
|
||||
private class TBreakOrContinueStmt = @break_stmt or @continue_stmt;
|
||||
|
||||
@@ -616,7 +616,7 @@ class SwitchStmt extends @switch_stmt, ControlStmt {
|
||||
* return;
|
||||
* ```
|
||||
*/
|
||||
class ReturnStmt extends @returnstmt, JumpStmt {
|
||||
class ReturnStmt extends @return_stmt, JumpStmt {
|
||||
/** Gets the expression specifying the returned value, if any. */
|
||||
Expr getExpr() { result = getChildExpr(0) }
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ case @stmt.kind of
|
||||
| 6 = @continue_stmt
|
||||
| 7 = @with_stmt
|
||||
| 8 = @switch_stmt
|
||||
| 9 = @returnstmt
|
||||
| 9 = @return_stmt
|
||||
| 10 = @throwstmt
|
||||
| 11 = @trystmt
|
||||
| 12 = @whilestmt
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<v>1569</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@returnstmt</k>
|
||||
<k>@return_stmt</k>
|
||||
<v>48209</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user