renamed "namespacedefinition" to "namespace_definition"

This commit is contained in:
Erik Krogh Kristensen
2020-09-04 11:55:27 +02:00
parent 8c812dcdfb
commit bcbd1f045f
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import javascript
* Declarations that declare an alias for a namespace (i.e. an import) are not
* considered to be namespace definitions.
*/
class NamespaceDefinition extends Stmt, @namespacedefinition, AST::ValueNode {
class NamespaceDefinition extends Stmt, @namespace_definition, AST::ValueNode {
/**
* DEPRECATED: Use `getIdentifier()` instead.
*

View File

@@ -195,7 +195,7 @@ case @stmt.kind of
@export_declaration = @export_all_declaration | @export_default_declaration | @export_named_declaration;
@namespacedefinition = @namespace_declaration | @enum_declaration;
@namespace_definition = @namespace_declaration | @enum_declaration;
@typedefinition = @classdefinition | @interface_declaration | @enum_declaration | @type_alias_declaration | @enum_member;
is_instantiated(unique int decl: @namespace_declaration ref);
@@ -695,7 +695,7 @@ case @symbol.kind of
;
@type_with_symbol = @type_reference | @typevariable_type | @typeof_type | @unique_symbol_type;
@ast_node_with_symbol = @typedefinition | @namespacedefinition | @toplevel | @typeaccess | @namespace_access | @var_decl | @function | @invokeexpr | @import_declaration | @external_module_reference;
@ast_node_with_symbol = @typedefinition | @namespace_definition | @toplevel | @typeaccess | @namespace_access | @var_decl | @function | @invokeexpr | @import_declaration | @external_module_reference;
ast_node_symbol(
unique int node: @ast_node_with_symbol ref,