protected function last_newline($pos) { $i = $pos; while ($i > 0) { if ($this->tokens[--$i][0] == T_NEWLINE) { break; } } return $i; }