mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "catchclause" to "catch_clause"
This commit is contained in:
@@ -65,7 +65,7 @@ class Stmt extends @stmt, ExprOrStmt, Documentable {
|
||||
}
|
||||
|
||||
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 @catch_clause;
|
||||
|
||||
private class TLoopStmt = TEnhancedForLoop or @while_stmt or @do_while_stmt or @for_stmt;
|
||||
|
||||
@@ -1056,7 +1056,7 @@ class Case extends @case, Stmt {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class CatchClause extends @catchclause, ControlStmt, Parameterized {
|
||||
class CatchClause extends @catch_clause, ControlStmt, Parameterized {
|
||||
/** Gets the body of this `catch` clause. */
|
||||
BlockStmt getBody() { result = getChildStmt(1) }
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ case @stmt.kind of
|
||||
| 17 = @function_decl_stmt
|
||||
| 18 = @var_decl_stmt
|
||||
| 19 = @case
|
||||
| 20 = @catchclause
|
||||
| 20 = @catch_clause
|
||||
| 21 = @forofstmt
|
||||
| 22 = @constdeclstmt
|
||||
| 23 = @letstmt
|
||||
@@ -436,7 +436,7 @@ scopenesting (unique int inner: @scope ref,
|
||||
// functions
|
||||
@function = @function_decl_stmt | @function_expr | @arrow_function_expr;
|
||||
|
||||
@parameterized = @function | @catchclause;
|
||||
@parameterized = @function | @catch_clause;
|
||||
@type_parameterized = @function | @class_or_interface | @typealiasdeclaration | @mapped_typeexpr | @infer_typeexpr;
|
||||
|
||||
is_generator (int fun: @function ref);
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<v>8674</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@catchclause</k>
|
||||
<k>@catch_clause</k>
|
||||
<v>1272</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user