mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "trystmt" to "try_stmt"
This commit is contained in:
@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private class TControlStmt =
|
private class TControlStmt =
|
||||||
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @trystmt or @catchclause;
|
TLoopStmt or @if_stmt or @with_stmt or @switch_stmt or @try_stmt or @catchclause;
|
||||||
|
|
||||||
private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt;
|
private class TLoopStmt = TEnhancedForLoop or @whilestmt or @dowhilestmt or @forstmt;
|
||||||
|
|
||||||
@@ -677,7 +677,7 @@ class ThrowStmt extends @throw_stmt, JumpStmt {
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class TryStmt extends @trystmt, ControlStmt {
|
class TryStmt extends @try_stmt, ControlStmt {
|
||||||
/** Gets the body of this `try` statement. */
|
/** Gets the body of this `try` statement. */
|
||||||
BlockStmt getBody() { result = getChildStmt(0) }
|
BlockStmt getBody() { result = getChildStmt(0) }
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ case @stmt.kind of
|
|||||||
| 8 = @switch_stmt
|
| 8 = @switch_stmt
|
||||||
| 9 = @return_stmt
|
| 9 = @return_stmt
|
||||||
| 10 = @throw_stmt
|
| 10 = @throw_stmt
|
||||||
| 11 = @trystmt
|
| 11 = @try_stmt
|
||||||
| 12 = @whilestmt
|
| 12 = @whilestmt
|
||||||
| 13 = @dowhilestmt
|
| 13 = @dowhilestmt
|
||||||
| 14 = @forstmt
|
| 14 = @forstmt
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
<v>2305</v>
|
<v>2305</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@trystmt</k>
|
<k>@try_stmt</k>
|
||||||
<v>1316</v>
|
<v>1316</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user