Skip to content

Commit 5467efe

Browse files
committed
renamed "typeassertion" to "type_assertion"
1 parent 4af9508 commit 5467efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ class TypeParameter extends @type_parameter, TypeExpr {
11861186
* A type assertion, also known as an unchecked type cast, is a TypeScript expression
11871187
* of form `E as T` or `<T> E` where `E` is an expression and `T` is a type.
11881188
*/
1189-
class TypeAssertion extends Expr, @typeassertion {
1189+
class TypeAssertion extends Expr, @type_assertion {
11901190
/** Gets the expression whose type to assert, that is, the `E` in `E as T` or `<T> E`. */
11911191
Expr getExpression() { result = getChildExpr(0) }
11921192

javascript/ql/src/semmlecode.javascript.dbscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ case @expr.kind of
391391

392392
@import_or_export_declaration = @import_declaration | @export_declaration;
393393

394-
@typeassertion = @as_type_assertion | @prefix_type_assertion;
394+
@type_assertion = @as_type_assertion | @prefix_type_assertion;
395395

396396
@classdefinition = @class_decl_stmt | @class_expr;
397397
@interfacedefinition = @interface_declaration | @interface_typeexpr;

0 commit comments

Comments
 (0)