Lines Matching refs:token
41 private function handleInvalidCharacter(Token $token, ErrorHandler $errorHandler): void { argument
42 $chr = $token->text;
53 'startLine' => $token->line,
54 'endLine' => $token->line,
55 'startFilePos' => $token->pos,
56 'endFilePos' => $token->pos,
60 private function isUnterminatedComment(Token $token): bool { argument
61 return $token->is([\T_COMMENT, \T_DOC_COMMENT])
62 && substr($token->text, 0, 2) === '/*'
63 && substr($token->text, -2) !== '*/';
84 $token = $tokens[$i];
85 if ($token->id === \T_BAD_CHARACTER) {
86 $this->handleInvalidCharacter($token, $errorHandler);
89 if ($token->id === \ord('&')) {
96 $token->id = $followedByVarOrVarArg