Minor cleanup
parent
97937eaadb
commit
f51af8bc0d
|
@ -55,7 +55,7 @@ class TestClass implements TestInterface
|
|||
* @param TestClass $testParameter Lorem sunt velit incididunt mollit
|
||||
* @return TestClass
|
||||
*/
|
||||
public function testMethod($testParameter) : TestInterface
|
||||
public function testMethod($testParameter): TestInterface
|
||||
{
|
||||
$this->testProperty = $testParameter;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue