allow rename of methods
parent
1f157d7424
commit
c54b817ba6
|
@ -265,6 +265,15 @@ class TextDocument
|
||||||
$location = LocationFactory::fromNode($ref);
|
$location = LocationFactory::fromNode($ref);
|
||||||
$location->range->start->character++;
|
$location->range->start->character++;
|
||||||
$locations[] = $location;
|
$locations[] = $location;
|
||||||
|
}elseif ($ref instanceof Node\ClassMembersNode) {
|
||||||
|
foreach ($ref->classMemberDeclarations as $declaration) {
|
||||||
|
if ($declaration instanceof Node\MethodDeclaration) {
|
||||||
|
if ($declaration->getName() === $node->getName()) {
|
||||||
|
$location = LocationFactory::fromToken($declaration, $declaration->name);
|
||||||
|
$locations[] = $location;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue