Lines Matching refs:token
250 $token = $this->tokens[++$this->tokenPos];
251 $tokenId = $token->id;
255 $tokenValue = $token->text;
503 $token = $this->tokens[$tokenPos];
505 'startLine' => $token->line,
507 'startFilePos' => $token->pos,
508 'endLine' => $token->line,
510 'endFilePos' => $token->pos,
891 protected function createCommentFromToken(Token $token, int $tokenPos): Comment { argument
892 assert($token->id === \T_COMMENT || $token->id == \T_DOC_COMMENT);
893 return \T_DOC_COMMENT === $token->id
894 ? new Comment\Doc($token->text, $token->line, $token->pos, $tokenPos,
895 $token->getEndLine(), $token->getEndPos() - 1, $tokenPos)
896 : new Comment($token->text, $token->line, $token->pos, $tokenPos,
897 $token->getEndLine(), $token->getEndPos() - 1, $tokenPos);
905 $token = $this->tokens[$tokenPos];
906 if (!isset($this->dropTokens[$token->id])) {
910 if ($token->id === \T_COMMENT || $token->id === \T_DOC_COMMENT) {
911 return $this->createCommentFromToken($token, $tokenPos);
958 $token = $this->tokens[$tokenPos];
959 assert($token->id == \T_INLINE_HTML);