Skip to content

Commit 0d5db15

Browse files
committed
renamed "typealiasdeclaration" to "type_alias_declaration"
1 parent 232dbe9 commit 0d5db15

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class ExportAsNamespaceDeclaration extends Stmt, @exportasnamespacedeclaration {
248248
/**
249249
* A type alias declaration, that is, a statement of form `type A = T`.
250250
*/
251-
class TypeAliasDeclaration extends @typealiasdeclaration, TypeParameterized, Stmt {
251+
class TypeAliasDeclaration extends @type_alias_declaration, TypeParameterized, Stmt {
252252
/** Gets the name of this type alias as a string. */
253253
string getName() { result = getIdentifier().getName() }
254254

javascript/ql/src/semmlecode.javascript.dbscheme

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ case @stmt.kind of
184184
| 32 = @import_equals_declaration
185185
| 33 = @export_assign_declaration
186186
| 34 = @interface_declaration
187-
| 35 = @typealiasdeclaration
187+
| 35 = @type_alias_declaration
188188
| 36 = @enumdeclaration
189189
| 37 = @external_module_declaration
190190
| 38 = @exportasnamespacedeclaration
@@ -196,7 +196,7 @@ case @stmt.kind of
196196
@exportdeclaration = @export_all_declaration | @export_default_declaration | @export_named_declaration;
197197

198198
@namespacedefinition = @namespace_declaration | @enumdeclaration;
199-
@typedefinition = @classdefinition | @interface_declaration | @enumdeclaration | @typealiasdeclaration | @enum_member;
199+
@typedefinition = @classdefinition | @interface_declaration | @enumdeclaration | @type_alias_declaration | @enum_member;
200200

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

@@ -437,7 +437,7 @@ scopenesting (unique int inner: @scope ref,
437437
@function = @function_decl_stmt | @function_expr | @arrow_function_expr;
438438

439439
@parameterized = @function | @catch_clause;
440-
@type_parameterized = @function | @class_or_interface | @typealiasdeclaration | @mapped_typeexpr | @infer_typeexpr;
440+
@type_parameterized = @function | @class_or_interface | @type_alias_declaration | @mapped_typeexpr | @infer_typeexpr;
441441

442442
is_generator (int fun: @function ref);
443443
has_rest_parameter (int fun: @function ref);

javascript/ql/src/semmlecode.javascript.dbscheme.stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
<v>5</v>
563563
</e>
564564
<e>
565-
<k>@typealiasdeclaration</k>
565+
<k>@type_alias_declaration</k>
566566
<v>120</v>
567567
</e>
568568
<e>

0 commit comments

Comments
 (0)