renamed "returnstmt" to "return_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:10 +02:00
parent b3746efec8
commit 5e2c25eacd
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) }
}
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) }

View File

@@ -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

View File

@@ -90,7 +90,7 @@
<v>1569</v>
</e>
<e>
<k>@returnstmt</k>
<k>@return_stmt</k>
<v>48209</v>
</e>
<e>