renamed "catchclause" to "catch_clause"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:18 +02:00
parent d0e4748def
commit c56746929d
3 changed files with 5 additions and 5 deletions

View File

@@ -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) }

View File

@@ -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);

View File

@@ -134,7 +134,7 @@
<v>8674</v>
</e>
<e>
<k>@catchclause</k>
<k>@catch_clause</k>
<v>1272</v>
</e>
<e>