mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
renamed "declstmt" to "decl_stmt"
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user