1
0
Fork 0

Revert "Find references on unused symbol must not load referenced URIs"

This reverts commit 258b905d9f.
pull/392/head
Stephan Unverwerth 2017-06-10 11:23:23 +02:00
parent 249d3727f2
commit a1fc6b50ed
1 changed files with 9 additions and 12 deletions

View File

@ -221,11 +221,9 @@ class TextDocument
return []; return [];
} }
} }
$referenceUris = $this->index->getReferenceUris($fqn);
if (!empty($referenceUris)) {
$refDocuments = yield Promise\all(array_map( $refDocuments = yield Promise\all(array_map(
[$this->documentLoader, 'getOrLoad'], [$this->documentLoader, 'getOrLoad'],
$referenceUris $this->index->getReferenceUris($fqn)
)); ));
foreach ($refDocuments as $document) { foreach ($refDocuments as $document) {
$refs = $document->getReferenceNodesByFqn($fqn); $refs = $document->getReferenceNodesByFqn($fqn);
@ -236,7 +234,6 @@ class TextDocument
} }
} }
} }
}
return $locations; return $locations;
}); });
} }