renamed "declstmt" to "decl_stmt"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:55:26 +02:00
parent 5e58d34e19
commit 4f8d2156c0
2 changed files with 3 additions and 3 deletions

View File

@@ -951,7 +951,7 @@ class FunctionDeclStmt extends @function_decl_stmt, Stmt, Function {
* let i = 1, j = i-1;
* ```
*/
class DeclStmt extends @declstmt, Stmt {
class DeclStmt extends @decl_stmt, Stmt {
/** Gets the `i`th declarator in this declaration statement. */
VariableDeclarator getDecl(int i) { result = getChildExpr(i) and i >= 0 }

View File

@@ -191,7 +191,7 @@ case @stmt.kind of
| 39 = @global_augmentation_declaration
;
@declstmt = @var_decl_stmt | @const_decl_stmt | @let_stmt | @legacy_let_stmt;
@decl_stmt = @var_decl_stmt | @const_decl_stmt | @let_stmt | @legacy_let_stmt;
@exportdeclaration = @export_all_declaration | @export_default_declaration | @export_named_declaration;
@@ -200,7 +200,7 @@ case @stmt.kind of
is_instantiated(unique int decl: @namespace_declaration ref);
@declarable_node = @declstmt | @namespace_declaration | @class_decl_stmt | @function_decl_stmt | @enum_declaration | @external_module_declaration | @global_augmentation_declaration | @field;
@declarable_node = @decl_stmt | @namespace_declaration | @class_decl_stmt | @function_decl_stmt | @enum_declaration | @external_module_declaration | @global_augmentation_declaration | @field;
has_declare_keyword(unique int stmt: @declarable_node ref);
is_for_await_of(unique int forof: @for_of_stmt ref);