Lines Matching defs:channel

44      *  and tokens are prefiltered for a certain channel (the parser will only
45 * see these tokens and cannot change the filter channel number during the
63 /** <summary>Map<tokentype, channel> to override some Tokens' channel numbers</summary> */
69 /** <summary>Skip tokens on any channel but this one; this is how we skip whitespace...</summary> */
70 protected int channel = TokenChannels.Default;
94 public LegacyCommonTokenStream(ITokenSource tokenSource, int channel)
96 this.channel = channel;
118 channel = TokenChannels.Default;
124 * set some token type / channel overrides before filling buffer.
136 // is there a channel override for token type?
152 } else if (discardOffChannelTokens && t.Channel != this.channel) {
162 // leave p pointing at first token on channel
175 * Walk past any token not on the channel the parser is listening to.
185 /** <summary>Given a starting index, return the index of the first on-channel token.</summary> */
188 while (i < n && ((IToken)tokens[i]).Channel != channel) {
195 while (i >= 0 && ((IToken)tokens[i]).Channel != channel) {
203 * to force all tokens of type ttype to be on channel. For example,
206 * channel.
209 public virtual void SetTokenTypeChannel(int ttype, int channel) {
213 channelOverrideMap[ttype] = channel;
241 * method looks at both on and off channel tokens.
304 // skip off-channel tokens
318 /** <summary>Look backwards k tokens on-channel tokens</summary> */
335 // skip off-channel tokens
346 * Return absolute token i; ignore which channel the tokens are on;
347 * that is, count all tokens not just on-channel tokens.