Lines Matching refs:channel
9 * token streams to tokens on a particular channel (tokens where
13 * methods like {@see CommonTokenStream::getText()}. The channel filtering
18 * By default, tokens are placed on the default channel
20 * {@code CommonTokenStream::channel(HIDDEN)} lexer command, or by using an
28 * channel.we
33 * Specifies the channel to use for filtering tokens.
37 * default channel assigned to tokens created by the lexer.
41 protected $channel;
45 * source and filtering tokens to the specified channel. Only tokens whose
46 * {@see Token::getChannel()} matches `channel` or have the
51 * @param int $channel The channel to use for filtering tokens.
53 public function __construct(TokenSource $tokenSource, int $channel = Token::DEFAULT_CHANNEL)
57 $this->channel = $channel;
62 return $this->nextTokenOnChannel($i, $this->channel);
75 // skip off-channel tokens
76 $i = $this->previousTokenOnChannel($i - 1, $this->channel);
103 // skip off-channel tokens, but make sure to not look past EOF
105 $i = $this->nextTokenOnChannel($i + 1, $this->channel);
124 if ($t->getChannel() === $this->channel) {