mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
renamed "ifstmt" to "if_stmt"
This commit is contained in:
@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
||||
}
|
||||
|
||||
private class TControlStmt =
|
||||
TLoopStmt or @ifstmt or @withstmt or @switchstmt or @trystmt or @catchclause;
|
||||
TLoopStmt or @if_stmt or @withstmt or @switchstmt or @trystmt or @catchclause;
|
||||
|
||||
private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt;
|
||||
|
||||
@@ -406,7 +406,7 @@ class BundleDirective extends KnownDirective {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class IfStmt extends @ifstmt, ControlStmt {
|
||||
class IfStmt extends @if_stmt, ControlStmt {
|
||||
/** Gets the condition of this `if` statement. */
|
||||
Expr getCondition() { result = getChildExpr(0) }
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ case @stmt.kind of
|
||||
0 = @empty_stmt
|
||||
| 1 = @block_stmt
|
||||
| 2 = @expr_stmt
|
||||
| 3 = @ifstmt
|
||||
| 3 = @if_stmt
|
||||
| 4 = @labeledstmt
|
||||
| 5 = @breakstmt
|
||||
| 6 = @continuestmt
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<v>610340</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@ifstmt</k>
|
||||
<k>@if_stmt</k>
|
||||
<v>68214</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user