Removed unnecessary loc entry in AST\Node::toArray()

This commit is contained in:
Vladimir Razuvaev 2017-04-25 18:00:06 +07:00
parent 86f01ac1a6
commit 835e4e6b2d

View File

@ -82,11 +82,6 @@ abstract class Node
public function __toString()
{
$tmp = $this->toArray();
$tmp['loc'] = [
'start' => $this->loc->start,
'end' => $this->loc->end
];
return json_encode($tmp);
}