Skip to content

Commit

Permalink
Fix TypeScript compilation with new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed May 9, 2019
1 parent e32849d commit 9733060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/findAllReferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1417,8 +1417,8 @@ namespace ts.FindAllReferences.Core {
const typeNode = findAncestor(refNode, a => !isQualifiedName(a.parent) && !isTypeNode(a.parent) && !isTypeElement(a.parent))!;
const typeHavingNode = typeNode.parent;
if (hasType(typeHavingNode) && typeHavingNode.type === typeNode && state.markSeenContainingTypeReference(typeHavingNode)) {
if (hasInitializer(typeHavingNode)) {
addIfImplementation(typeHavingNode.initializer!);
if (hasInitializer(typeHavingNode) && isExpression(typeHavingNode.initializer!)) {
addIfImplementation(typeHavingNode.initializer);
}
else if (isFunctionLike(typeHavingNode) && (typeHavingNode as FunctionLikeDeclaration).body) {
const body = (typeHavingNode as FunctionLikeDeclaration).body!;
Expand Down

0 comments on commit 9733060

Please sign in to comment.