Lines Matching refs:pos
12 private int $pos = 0; variable in PhpParser\\NodeVisitor\\CommentAnnotatingVisitor
42 $oldPos = $this->pos;
43 $this->pos = $pos = $node->getStartTokenPos();
44 if ($nextCommentPos > $oldPos && $nextCommentPos < $pos) {
46 while (--$pos >= $oldPos) {
47 $token = $this->tokens[$pos];
50 $token->text, $token->line, $token->pos, $pos,
51 $token->getEndLine(), $token->getEndPos() - 1, $pos);
56 $token->text, $token->line, $token->pos, $pos,
57 $token->getEndLine(), $token->getEndPos() - 1, $pos);
70 } while ($nextCommentPos !== false && $nextCommentPos < $this->pos);
76 $this->pos = $endPos;