1
0
Fork 0

Minor cleanup

pull/357/head
Rob Lourens 2017-05-23 18:27:11 -07:00
parent 97937eaadb
commit f51af8bc0d
4 changed files with 2 additions and 5 deletions

View File

@ -54,7 +54,6 @@ class SymbolInformation
} else if ($node instanceof Tolerant\Node\Statement\TraitDeclaration) {
$symbol->kind = SymbolKind::CLASS_;
}
// TODO 'define'
else if (\LanguageServer\ParserHelpers::isConstDefineExpression($node)) {
// constants with define() like
// define('TEST_DEFINE_CONSTANT', false);

View File

@ -209,7 +209,7 @@ class TextDocument
} else {
// Definition with a global FQN
$fqn = DefinitionResolver::getDefinedFqn($node);
// var_dump($fqn);
// Wait until indexing finished
if (!$this->index->isComplete()) {
yield waitForEvent($this->index, 'complete');
@ -228,7 +228,6 @@ class TextDocument
$refs = $document->getReferenceNodesByFqn($fqn);
if ($refs !== null) {
foreach ($refs as $ref) {
// var_dump($ref->getNodeKindName());
$locations[] = Location::fromNode($ref);
}
}

View File

@ -28,7 +28,6 @@ class NamespacedTest extends GlobalTest
new TextDocumentIdentifier($definition->uri),
$definition->range->end
)->wait();
// var_dump($result);
$this->assertEquals(parent::getReferenceLocations('TestNamespace'), $result);
}
}