mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "withstmt" to "with_stmt"
This commit is contained in:
@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@@ -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. */
|
||||
Expr getExpr() { result = getChildExpr(0) }
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ case @stmt.kind of
|
||||
| 4 = @labeled_stmt
|
||||
| 5 = @break_stmt
|
||||
| 6 = @continue_stmt
|
||||
| 7 = @withstmt
|
||||
| 7 = @with_stmt
|
||||
| 8 = @switchstmt
|
||||
| 9 = @returnstmt
|
||||
| 10 = @throwstmt
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
<v>1642</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@withstmt</k>
|
||||
<k>@with_stmt</k>
|
||||
<v>4</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user