mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
renamed "functiontypeexpr" to "function_typeexpr"
This commit is contained in:
@@ -314,7 +314,7 @@ class InterfaceTypeExpr extends TypeExpr, InterfaceDefinition, @interface_typeex
|
||||
* A TypeScript function type, such as `(x: string) => number` or a
|
||||
* constructor type such as `new (x: string) => Object`.
|
||||
*/
|
||||
class FunctionTypeExpr extends TypeExpr, @functiontypeexpr {
|
||||
class FunctionTypeExpr extends TypeExpr, @function_typeexpr {
|
||||
/** Holds if this is a constructor type, such as `new (x: string) => Object`. */
|
||||
predicate isConstructor() { this instanceof ConstructorTypeExpr }
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ is_delegating (int yield: @yieldexpr ref);
|
||||
|
||||
@expr_or_stmt = @expr | @stmt;
|
||||
@expr_or_type = @expr | @typeexpr;
|
||||
@exprparent = @expr_or_stmt | @property | @functiontypeexpr;
|
||||
@exprparent = @expr_or_stmt | @property | @function_typeexpr;
|
||||
@arraylike = @arrayexpr | @arraypattern;
|
||||
@type_annotation = @typeexpr | @jsdoc_type_expr;
|
||||
@node_in_stmt_container = @cfg_node | @type_annotation | @toplevel;
|
||||
@@ -595,7 +595,7 @@ case @typeexpr.kind of
|
||||
@namespace_access = @local_namespace_access | @qualified_namespace_access | @import_namespace_access;
|
||||
@import_typeexpr = @import_type_access | @import_namespace_access | @import_var_type_access;
|
||||
|
||||
@functiontypeexpr = @plain_function_typeexpr | @constructor_typeexpr;
|
||||
@function_typeexpr = @plain_function_typeexpr | @constructor_typeexpr;
|
||||
|
||||
// types
|
||||
types (
|
||||
|
||||
Reference in New Issue
Block a user