1
0
Fork 0

Remove PhpParser workaround (#102)

pull/103/head
Felix Becker 2016-10-20 02:13:15 +02:00 committed by GitHub
parent 1e00275e02
commit f8733c741c
1 changed files with 0 additions and 5 deletions

View File

@ -35,11 +35,6 @@ class NodeAtPositionFinder extends NodeVisitorAbstract
public function leaveNode(Node $node) public function leaveNode(Node $node)
{ {
$range = Range::fromNode($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)) { if (!isset($this->node) && $range->includes($this->position)) {
$this->node = $node; $this->node = $node;
} }