Skip to content

Commit b28cbf3

Browse files
committed
renamed "typedefinition" to "type_definition"
1 parent bcbd1f0 commit b28cbf3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

javascript/ql/src/semmle/javascript/TypeScript.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class NamespaceDeclaration extends NamespaceDefinition, StmtContainer, @namespac
9696
* Note that imports and type parameters are not type definitions. Consider using `TypeDecl` to capture
9797
* a wider class of type declarations.
9898
*/
99-
class TypeDefinition extends ASTNode, @typedefinition {
99+
class TypeDefinition extends ASTNode, @type_definition {
100100
/**
101101
* Gets the identifier naming the type.
102102
*/

javascript/ql/src/semmlecode.javascript.dbscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ case @stmt.kind of
196196
@export_declaration = @export_all_declaration | @export_default_declaration | @export_named_declaration;
197197

198198
@namespace_definition = @namespace_declaration | @enum_declaration;
199-
@typedefinition = @classdefinition | @interface_declaration | @enum_declaration | @type_alias_declaration | @enum_member;
199+
@type_definition = @classdefinition | @interface_declaration | @enum_declaration | @type_alias_declaration | @enum_member;
200200

201201
is_instantiated(unique int decl: @namespace_declaration ref);
202202

@@ -695,7 +695,7 @@ case @symbol.kind of
695695
;
696696

697697
@type_with_symbol = @type_reference | @typevariable_type | @typeof_type | @unique_symbol_type;
698-
@ast_node_with_symbol = @typedefinition | @namespace_definition | @toplevel | @typeaccess | @namespace_access | @var_decl | @function | @invokeexpr | @import_declaration | @external_module_reference;
698+
@ast_node_with_symbol = @type_definition | @namespace_definition | @toplevel | @typeaccess | @namespace_access | @var_decl | @function | @invokeexpr | @import_declaration | @external_module_reference;
699699

700700
ast_node_symbol(
701701
unique int node: @ast_node_with_symbol ref,

0 commit comments

Comments
 (0)