renamed "externalmoduledeclaration" to "external_module_declaration"

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

View File

@@ -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:
* ``` * ```

View File

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

View File

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