/** * Determines whether the current node appears //before// a specified node in * the tree. * * @param AASTNode * @return bool */ public final function isBefore(AASTNode $node) { return last($this->getTokens())->getOffset() < head($node->getTokens())->getOffset(); }