renamed "importdeclaration" to "import_declaration"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:53:23 +02:00
parent 1da7021340
commit bdfeecdee1
3 changed files with 5 additions and 5 deletions

View File

@@ -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) }

View File

@@ -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,

View File

@@ -162,7 +162,7 @@
<v>41</v>
</e>
<e>
<k>@importdeclaration</k>
<k>@import_declaration</k>
<v>8</v>
</e>
<e>