mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
renamed "namespacedeclaration" to "namespace_declaration"
This commit is contained in:
@@ -56,7 +56,7 @@ class NamespaceDefinition extends Stmt, @namespacedefinition, AST::ValueNode {
|
|||||||
* For example, `declare module "X" {...}` is an external module declaration.
|
* For example, `declare module "X" {...}` is an external module declaration.
|
||||||
* These are represented by `ExternalModuleDeclaration`.
|
* These are represented by `ExternalModuleDeclaration`.
|
||||||
*/
|
*/
|
||||||
class NamespaceDeclaration extends NamespaceDefinition, StmtContainer, @namespacedeclaration {
|
class NamespaceDeclaration extends NamespaceDefinition, StmtContainer, @namespace_declaration {
|
||||||
/** Gets the name of this namespace. */
|
/** Gets the name of this namespace. */
|
||||||
override Identifier getIdentifier() { result = getChildExpr(-1) }
|
override Identifier getIdentifier() { result = getChildExpr(-1) }
|
||||||
|
|
||||||
|
|||||||
@@ -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 | @namespacedeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
|
@stmt_container = @toplevel | @function | @namespace_declaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
|
||||||
|
|
||||||
case @stmt.kind of
|
case @stmt.kind of
|
||||||
0 = @emptystmt
|
0 = @emptystmt
|
||||||
@@ -180,7 +180,7 @@ case @stmt.kind of
|
|||||||
| 28 = @exportalldeclaration
|
| 28 = @exportalldeclaration
|
||||||
| 29 = @exportdefaultdeclaration
|
| 29 = @exportdefaultdeclaration
|
||||||
| 30 = @exportnameddeclaration
|
| 30 = @exportnameddeclaration
|
||||||
| 31 = @namespacedeclaration
|
| 31 = @namespace_declaration
|
||||||
| 32 = @importequalsdeclaration
|
| 32 = @importequalsdeclaration
|
||||||
| 33 = @exportassigndeclaration
|
| 33 = @exportassigndeclaration
|
||||||
| 34 = @interfacedeclaration
|
| 34 = @interfacedeclaration
|
||||||
@@ -195,12 +195,12 @@ case @stmt.kind of
|
|||||||
|
|
||||||
@exportdeclaration = @exportalldeclaration | @exportdefaultdeclaration | @exportnameddeclaration;
|
@exportdeclaration = @exportalldeclaration | @exportdefaultdeclaration | @exportnameddeclaration;
|
||||||
|
|
||||||
@namespacedefinition = @namespacedeclaration | @enumdeclaration;
|
@namespacedefinition = @namespace_declaration | @enumdeclaration;
|
||||||
@typedefinition = @classdefinition | @interfacedeclaration | @enumdeclaration | @typealiasdeclaration | @enum_member;
|
@typedefinition = @classdefinition | @interfacedeclaration | @enumdeclaration | @typealiasdeclaration | @enum_member;
|
||||||
|
|
||||||
is_instantiated(unique int decl: @namespacedeclaration ref);
|
is_instantiated(unique int decl: @namespace_declaration ref);
|
||||||
|
|
||||||
@declarable_node = @declstmt | @namespacedeclaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration | @field;
|
@declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @externalmoduledeclaration | @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);
|
||||||
@@ -1130,7 +1130,7 @@ xmllocations(
|
|||||||
|
|
||||||
@xmllocatable = @xmlcharacters | @xmlelement | @xmlcomment | @xmlattribute | @xmldtd | @file | @xmlnamespace;
|
@xmllocatable = @xmlcharacters | @xmlelement | @xmlcomment | @xmlattribute | @xmldtd | @file | @xmlnamespace;
|
||||||
|
|
||||||
@dataflownode = @expr | @functiondeclstmt | @classdeclstmt | @namespacedeclaration | @enumdeclaration | @property;
|
@dataflownode = @expr | @functiondeclstmt | @classdeclstmt | @namespace_declaration | @enumdeclaration | @property;
|
||||||
|
|
||||||
@optionalchainable = @callexpr | @propaccess;
|
@optionalchainable = @callexpr | @propaccess;
|
||||||
|
|
||||||
|
|||||||
@@ -610,7 +610,7 @@
|
|||||||
<v>5</v>
|
<v>5</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@namespacedeclaration</k>
|
<k>@namespace_declaration</k>
|
||||||
<v>5</v>
|
<v>5</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user