mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "dowhilestmt" to "do_while_stmt"
This commit is contained in:
@@ -67,7 +67,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
|||||||
private class TControlStmt =
|
private class TControlStmt =
|
||||||
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
|
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
|
||||||
|
|
||||||
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @dowhilestmt or @forstmt;
|
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @forstmt;
|
||||||
|
|
||||||
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
|
private class TEnhancedForLoop = @forinstmt or @foreachstmt or @forofstmt;
|
||||||
|
|
||||||
@@ -743,7 +743,7 @@ class WhileStmt extends @while_stmt, LoopStmt {
|
|||||||
* } while(++i < lines.length);
|
* } while(++i < lines.length);
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class DoWhileStmt extends @dowhilestmt, LoopStmt {
|
class DoWhileStmt extends @do_while_stmt, LoopStmt {
|
||||||
/** Gets the loop condition of this `do`-`while` loop. */
|
/** Gets the loop condition of this `do`-`while` loop. */
|
||||||
Expr getExpr() { result = getChildExpr(1) }
|
Expr getExpr() { result = getChildExpr(1) }
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ case @stmt.kind of
|
|||||||
| 10 = @throw_stmt
|
| 10 = @throw_stmt
|
||||||
| 11 = @try_stmt
|
| 11 = @try_stmt
|
||||||
| 12 = @while_stmt
|
| 12 = @while_stmt
|
||||||
| 13 = @dowhilestmt
|
| 13 = @do_while_stmt
|
||||||
| 14 = @forstmt
|
| 14 = @forstmt
|
||||||
| 15 = @forinstmt
|
| 15 = @forinstmt
|
||||||
| 16 = @debuggerstmt
|
| 16 = @debuggerstmt
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
<v>3120</v>
|
<v>3120</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@dowhilestmt</k>
|
<k>@do_while_stmt</k>
|
||||||
<v>1471</v>
|
<v>1471</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user