Lines Matching refs:tokens
14 private array $tokens; variable in PhpParser\\Internal\\TokenStream
21 * @param Token[] $tokens Tokens in PhpToken::tokenize() format
23 public function __construct(array $tokens, int $tabWidth) { argument
24 $this->tokens = $tokens;
62 $tokens = $this->tokens;
65 $token = $tokens[$pos];
87 $tokens = $this->tokens;
89 for ($c = \count($tokens); $pos < $c; $pos++) {
90 $token = $tokens[$pos];
103 $tokens = $this->tokens;
110 if (!$tokens[$pos]->is($skipTokenType)) {
121 $tokens = $this->tokens;
128 if (!$tokens[$pos]->is($skipTokenType)) {
144 $tokens = $this->tokens;
146 if (!$tokens[$pos]->isIgnorable()) {
160 $tokens = $this->tokens;
161 for ($count = \count($tokens); $pos < $count; $pos++) {
162 if (!$tokens[$pos]->isIgnorable()) {
171 $tokens = $this->tokens;
172 for ($count = \count($tokens); $pos < $count; $pos++) {
173 if ($tokens[$pos]->is($findTokenType)) {
189 $tokens = $this->tokens;
191 if ($tokens[$pos]->is($tokenType)) {
224 $tokens = $this->tokens;
227 $token = $tokens[$pos];
254 foreach ($this->tokens as $i => $token) {
262 } elseif ($i === 1 && $this->tokens[0]->id === \T_OPEN_TAG &&
263 $this->tokens[0]->text[\strlen($this->tokens[0]->text) - 1] === "\n") {