Lines Matching refs:token
59 * This is the backing field for {@see CommonToken::getText()} when the token
100 throw new \RuntimeException('Unexpected token source type.');
136 * token will share a reference to the {@see CommonToken::text()} field and
145 $token = new self($this->type, $this->source, $this->channel, $this->start, $this->stop);
147 $token->index = $this->index;
148 $token->line = $this->line;
149 $token->charPositionInLine = $this->charPositionInLine;
151 $token->setText($this->text);
153 return $token;
198 * Explicitly set the text for this token. If `text` is not `null`, then
202 * @param string $text The explicit text of the token, or `null`
204 * along with the start and stop indexes of the token.
266 throw new \RuntimeException('Unexpected token source type.');
277 throw new \RuntimeException('Unexpected token source type.');