mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "externalmoduledeclaration" to "external_module_declaration"
This commit is contained in:
@@ -128,7 +128,7 @@ class TypeDefinition extends ASTNode, @typedefinition {
|
|||||||
* A TypeScript declaration of form `declare module "X" {...}` where `X`
|
* A TypeScript declaration of form `declare module "X" {...}` where `X`
|
||||||
* is the name of an external module.
|
* is the name of an external module.
|
||||||
*/
|
*/
|
||||||
class ExternalModuleDeclaration extends Stmt, StmtContainer, @externalmoduledeclaration {
|
class ExternalModuleDeclaration extends Stmt, StmtContainer, @external_module_declaration {
|
||||||
/**
|
/**
|
||||||
* Gets the string literal denoting the module name, such as `"fs"` in:
|
* Gets the string literal denoting the module name, such as `"fs"` in:
|
||||||
* ```
|
* ```
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ jump_targets (unique int jump: @stmt ref,
|
|||||||
int target: @stmt ref);
|
int target: @stmt ref);
|
||||||
|
|
||||||
@stmt_parent = @stmt | @toplevel | @function_expr | @arrow_function_expr;
|
@stmt_parent = @stmt | @toplevel | @function_expr | @arrow_function_expr;
|
||||||
@stmt_container = @toplevel | @function | @namespace_declaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
|
@stmt_container = @toplevel | @function | @namespace_declaration | @external_module_declaration | @globalaugmentationdeclaration;
|
||||||
|
|
||||||
case @stmt.kind of
|
case @stmt.kind of
|
||||||
0 = @emptystmt
|
0 = @emptystmt
|
||||||
@@ -186,7 +186,7 @@ case @stmt.kind of
|
|||||||
| 34 = @interfacedeclaration
|
| 34 = @interfacedeclaration
|
||||||
| 35 = @typealiasdeclaration
|
| 35 = @typealiasdeclaration
|
||||||
| 36 = @enumdeclaration
|
| 36 = @enumdeclaration
|
||||||
| 37 = @externalmoduledeclaration
|
| 37 = @external_module_declaration
|
||||||
| 38 = @exportasnamespacedeclaration
|
| 38 = @exportasnamespacedeclaration
|
||||||
| 39 = @globalaugmentationdeclaration
|
| 39 = @globalaugmentationdeclaration
|
||||||
;
|
;
|
||||||
@@ -200,7 +200,7 @@ case @stmt.kind of
|
|||||||
|
|
||||||
is_instantiated(unique int decl: @namespace_declaration ref);
|
is_instantiated(unique int decl: @namespace_declaration ref);
|
||||||
|
|
||||||
@declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration | @field;
|
@declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @external_module_declaration | @globalaugmentationdeclaration | @field;
|
||||||
has_declare_keyword(unique int stmt: @declarable_node ref);
|
has_declare_keyword(unique int stmt: @declarable_node ref);
|
||||||
|
|
||||||
is_for_await_of(unique int forof: @forofstmt ref);
|
is_for_await_of(unique int forof: @forofstmt ref);
|
||||||
|
|||||||
@@ -570,7 +570,7 @@
|
|||||||
<v>252</v>
|
<v>252</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@externalmoduledeclaration</k>
|
<k>@external_module_declaration</k>
|
||||||
<v>100</v>
|
<v>100</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user