phplinter\Lint\BaseLint::prev PHP Method

prev() protected method

----------------------------------------------------------------------+ Return the previous meaningfull token
protected prev ( $pos ) : Int
return Int ----------------------------------------------------------------------+
    protected function prev($pos)
    {
        $i = $pos;
        $o = $this->node->tokens;
        $c = $this->node->start;
        while (--$i > $c) {
            if (\phplinter\Tokenizer::meaningfull($o[$i][0])) {
                return $i;
            }
        }
        return false;
    }