diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index 16a516c2603..8581dc3989d 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -67,7 +67,7 @@ namespace ts.FindAllReferences { } function getImplementationReferenceEntries(typeChecker: TypeChecker, cancellationToken: CancellationToken, sourceFiles: SourceFile[], node: Node): Entry[] | undefined { - if (node.parent.kind === SyntaxKind.SourceFile) { + if (node.kind === SyntaxKind.SourceFile) { return undefined; } // If invoked directly on a shorthand property assignment, then return diff --git a/tests/cases/fourslash/jsDocGoToImplementation.ts b/tests/cases/fourslash/jsDocGoToImplementation.ts deleted file mode 100644 index cad5c29c82f..00000000000 --- a/tests/cases/fourslash/jsDocGoToImplementation.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// - -/////** -//// * @param /**/[|foo|] I pity the foo -//// */ -////function f([|foo|]: number) { -//// return foo; -////} - -verify.allRangesAppearInImplementationList("");