mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
renamed "importdeclaration" to "import_declaration"
This commit is contained in:
@@ -50,7 +50,7 @@ class ES2015Module extends Module {
|
||||
* import * as console from 'console';
|
||||
* ```
|
||||
*/
|
||||
class ImportDeclaration extends Stmt, Import, @importdeclaration {
|
||||
class ImportDeclaration extends Stmt, Import, @import_declaration {
|
||||
override ES2015Module getEnclosingModule() { result = getTopLevel() }
|
||||
|
||||
override PathExpr getImportedPath() { result = getChildExpr(-1) }
|
||||
|
||||
@@ -176,7 +176,7 @@ case @stmt.kind of
|
||||
| 24 = @legacy_let_stmt
|
||||
| 25 = @for_each_stmt
|
||||
| 26 = @class_decl_stmt
|
||||
| 27 = @importdeclaration
|
||||
| 27 = @import_declaration
|
||||
| 28 = @exportalldeclaration
|
||||
| 29 = @exportdefaultdeclaration
|
||||
| 30 = @exportnameddeclaration
|
||||
@@ -389,7 +389,7 @@ case @expr.kind of
|
||||
|
||||
@exportspecifier = @namedexportspecifier | @exportdefaultspecifier | @exportnamespacespecifier;
|
||||
|
||||
@import_or_export_declaration = @importdeclaration | @exportdeclaration;
|
||||
@import_or_export_declaration = @import_declaration | @exportdeclaration;
|
||||
|
||||
@typeassertion = @astypeassertion | @prefixtypeassertion;
|
||||
|
||||
@@ -695,7 +695,7 @@ case @symbol.kind of
|
||||
;
|
||||
|
||||
@type_with_symbol = @typereference | @typevariable_type | @typeoftype | @uniquesymboltype;
|
||||
@ast_node_with_symbol = @typedefinition | @namespacedefinition | @toplevel | @typeaccess | @namespace_access | @vardecl | @function | @invokeexpr | @importdeclaration | @externalmodulereference;
|
||||
@ast_node_with_symbol = @typedefinition | @namespacedefinition | @toplevel | @typeaccess | @namespace_access | @vardecl | @function | @invokeexpr | @import_declaration | @externalmodulereference;
|
||||
|
||||
ast_node_symbol(
|
||||
unique int node: @ast_node_with_symbol ref,
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<v>41</v>
|
||||
</e>
|
||||
<e>
|
||||
<k>@importdeclaration</k>
|
||||
<k>@import_declaration</k>
|
||||
<v>8</v>
|
||||
</e>
|
||||
<e>
|
||||
|
||||
Reference in New Issue
Block a user