File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1868,7 +1868,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
18681868 const nodeLinks = getNodeLinks(node);
18691869 cachedResolvedSignatures.push([nodeLinks, nodeLinks.resolvedSignature] as const);
18701870 nodeLinks.resolvedSignature = undefined;
1871- if (isFunctionLikeDeclaration (node)) {
1871+ if (isFunctionExpressionOrArrowFunction (node)) {
18721872 const symbolLinks = getSymbolLinks(getSymbolOfDeclaration(node));
18731873 const type = symbolLinks.type;
18741874 cachedTypes.push([symbolLinks, type] as const);
Original file line number Diff line number Diff line change 55 ArrayBindingElement ,
66 ArrayBindingOrAssignmentElement ,
77 ArrayBindingOrAssignmentPattern ,
8+ ArrowFunction ,
89 AssertionExpression ,
910 AssignmentDeclarationKind ,
1011 AssignmentPattern ,
@@ -64,6 +65,7 @@ import {
6465 ForInitializer ,
6566 ForInOrOfStatement ,
6667 FunctionBody ,
68+ FunctionExpression ,
6769 FunctionLikeDeclaration ,
6870 FunctionTypeNode ,
6971 GeneratedIdentifier ,
@@ -119,6 +121,7 @@ import {
119121 isExportSpecifier ,
120122 isFunctionBlock ,
121123 isFunctionExpression ,
124+ isFunctionExpressionOrArrowFunction ,
122125 isFunctionTypeNode ,
123126 isIdentifier ,
124127 isImportSpecifier ,
@@ -1928,8 +1931,8 @@ export function isPropertyAccessOrQualifiedName(node: Node): node is PropertyAcc
19281931}
19291932
19301933/** @internal */
1931- export function isCallLikeOrFunctionLikeExpression ( node : Node ) : node is CallLikeExpression | FunctionLikeDeclaration {
1932- return isCallLikeExpression ( node ) || isFunctionLikeDeclaration ( node ) ;
1934+ export function isCallLikeOrFunctionLikeExpression ( node : Node ) : node is CallLikeExpression | FunctionExpression | ArrowFunction {
1935+ return isCallLikeExpression ( node ) || isFunctionExpressionOrArrowFunction ( node ) ;
19331936}
19341937
19351938export function isCallLikeExpression ( node : Node ) : node is CallLikeExpression {
You can’t perform that action at this time.
0 commit comments