mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "typeassertion" to "type_assertion"
This commit is contained in:
@@ -1186,7 +1186,7 @@ class TypeParameter extends @type_parameter, TypeExpr {
|
||||
* A type assertion, also known as an unchecked type cast, is a TypeScript expression
|
||||
* of form `E as T` or `<T> E` where `E` is an expression and `T` is a type.
|
||||
*/
|
||||
class TypeAssertion extends Expr, @typeassertion {
|
||||
class TypeAssertion extends Expr, @type_assertion {
|
||||
/** Gets the expression whose type to assert, that is, the `E` in `E as T` or `<T> E`. */
|
||||
Expr getExpression() { result = getChildExpr(0) }
|
||||
|
||||
|
||||
@@ -391,7 +391,7 @@ case @expr.kind of
|
||||
|
||||
@import_or_export_declaration = @import_declaration | @export_declaration;
|
||||
|
||||
@typeassertion = @as_type_assertion | @prefix_type_assertion;
|
||||
@type_assertion = @as_type_assertion | @prefix_type_assertion;
|
||||
|
||||
@classdefinition = @class_decl_stmt | @class_expr;
|
||||
@interfacedefinition = @interface_declaration | @interface_typeexpr;
|
||||
|
||||
Reference in New Issue
Block a user