Remove goToImplementation test, not supported for parameters

This commit is contained in:
Andy Hanson
2017-05-15 15:02:47 -07:00
parent 38784b761a
commit 0140e6df77
2 changed files with 1 additions and 11 deletions

View File

@@ -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