1
0
Fork 0

Remove PhpParser workaround

pull/102/head
Felix Becker 2016-10-20 02:07:49 +02:00
parent 9cbca1cd7f
commit 55fbcc3075
1 changed files with 0 additions and 5 deletions

View File

@ -35,11 +35,6 @@ class NodeAtPositionFinder extends NodeVisitorAbstract
public function leaveNode(Node $node)
{
$range = Range::fromNode($node);
// Workaround for https://github.com/nikic/PHP-Parser/issues/311
$parent = $node->getAttribute('parentNode');
if (isset($parent) && $parent instanceof Node\Stmt\GroupUse && $parent->prefix === $node) {
return;
}
if (!isset($this->node) && $range->includes($this->position)) {
$this->node = $node;
}