Lines Matching refs:token
250 $token = $this->tokens[++$this->tokenPos];
251 $tokenId = $token->id;
255 $tokenValue = $token->text;
505 $token = $this->tokens[$tokenPos];
507 'startLine' => $token->line,
509 'startFilePos' => $token->pos,
510 'endLine' => $token->line,
512 'endFilePos' => $token->pos,
893 protected function createCommentFromToken(Token $token, int $tokenPos): Comment { argument
894 assert($token->id === \T_COMMENT || $token->id == \T_DOC_COMMENT);
895 return \T_DOC_COMMENT === $token->id
896 ? new Comment\Doc($token->text, $token->line, $token->pos, $tokenPos,
897 $token->getEndLine(), $token->getEndPos() - 1, $tokenPos)
898 : new Comment($token->text, $token->line, $token->pos, $tokenPos,
899 $token->getEndLine(), $token->getEndPos() - 1, $tokenPos);
907 $token = $this->tokens[$tokenPos];
908 if (!isset($this->dropTokens[$token->id])) {
912 if ($token->id === \T_COMMENT || $token->id === \T_DOC_COMMENT) {
913 return $this->createCommentFromToken($token, $tokenPos);
960 $token = $this->tokens[$tokenPos];
961 assert($token->id == \T_INLINE_HTML);