phplinter\Linter::last_newline PHP Метод

last_newline() защищенный Метод

----------------------------------------------------------------------+
protected last_newline ( $pos ) : Int
$pos Int
Результат Int ----------------------------------------------------------------------+
    protected function last_newline($pos)
    {
        $i = $pos;
        while ($i > 0) {
            if ($this->tokens[--$i][0] == T_NEWLINE) {
                break;
            }
        }
        return $i;
    }