renamed "globalaugmentationdeclaration" to "global_augmentation_declaration"

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

View File

@@ -163,7 +163,7 @@ class ExternalModuleDeclaration extends Stmt, StmtContainer, @external_module_de
/** /**
* A TypeScript declaration of form `declare global {...}`. * A TypeScript declaration of form `declare global {...}`.
*/ */
class GlobalAugmentationDeclaration extends Stmt, StmtContainer, @globalaugmentationdeclaration { class GlobalAugmentationDeclaration extends Stmt, StmtContainer, @global_augmentation_declaration {
/** Gets the `i`th statement in this namespace. */ /** Gets the `i`th statement in this namespace. */
Stmt getStmt(int i) { Stmt getStmt(int i) {
i >= 0 and i >= 0 and

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 | @external_module_declaration | @globalaugmentationdeclaration; @stmt_container = @toplevel | @function | @namespace_declaration | @external_module_declaration | @global_augmentation_declaration;
case @stmt.kind of case @stmt.kind of
0 = @emptystmt 0 = @emptystmt
@@ -188,7 +188,7 @@ case @stmt.kind of
| 36 = @enumdeclaration | 36 = @enumdeclaration
| 37 = @external_module_declaration | 37 = @external_module_declaration
| 38 = @exportasnamespacedeclaration | 38 = @exportasnamespacedeclaration
| 39 = @globalaugmentationdeclaration | 39 = @global_augmentation_declaration
; ;
@declstmt = @vardeclstmt | @constdeclstmt | @letstmt | @legacy_letstmt; @declstmt = @vardeclstmt | @constdeclstmt | @letstmt | @legacy_letstmt;
@@ -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 | @external_module_declaration | @globalaugmentationdeclaration | @field; @declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @external_module_declaration | @global_augmentation_declaration | @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

@@ -174,7 +174,7 @@
<v>5</v> <v>5</v>
</e> </e>
<e> <e>
<k>@globalaugmentationdeclaration</k> <k>@global_augmentation_declaration</k>
<v>5</v> <v>5</v>
</e> </e>
<e> <e>