Lines Matching refs:pos
26 public int $pos; variable in PhpParser\\Internal\\TokenPolyfill
42 final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) { argument
46 $this->pos = $pos;
129 $pos = 0;
138 $tokens[] = new static(\ord('"'), $token, $line, $pos);
139 $pos += 2;
141 $tokens[] = new static(\ord($token), $token, $line, $pos);
142 $pos++;
154 $tokens[] = new static($id, $text, $line, $pos);
155 $pos += \strlen($text);
163 $tokens[] = new static(\T_WHITESPACE, $trailingNewline, $line, $pos);
165 $pos += \strlen($trailingNewline);
202 $tokens[] = new static($id, $newText, $line, $pos);
203 $pos += \strlen($newText);
209 $tokens[] = new static($id, $text, $line, $pos);
211 $pos += \strlen($text);