Home | History | Annotate | Download | only in Antlr3.Runtime

Lines Matching full:channel

42      *  and tokens are prefiltered for a certain channel (the parser will only
43 * see these tokens and cannot change the filter channel number during the
62 /** <summary>Map<tokentype, channel> to override some Tokens' channel numbers</summary> */
68 /** <summary>Skip tokens on any channel but this one; this is how we skip whitespace...</summary> */
69 protected int channel = TokenChannels.Default;
95 public LegacyCommonTokenStream( ITokenSource tokenSource, int channel )
98 this.channel = channel;
124 channel = TokenChannels.Default;
130 * set some token type / channel overrides before filling buffer.
144 // is there a channel override for token type?
147 t.Channel = channelI;
162 else if ( discardOffChannelTokens && t.Channel != this.channel )
174 // leave p pointing at first token on channel
187 * Walk past any token not on the channel the parser is listening to.
199 /** <summary>Given a starting index, return the index of the first on-channel token.</summary> */
203 while ( i < n && ( (IToken)tokens[i] ).Channel != channel )
212 while ( i >= 0 && ( (IToken)tokens[i] ).Channel != channel )
221 * to force all tokens of type ttype to be on channel. For example,
224 * channel.
227 public virtual void SetTokenTypeChannel( int ttype, int channel )
233 channelOverrideMap[ttype] = channel;
267 * method looks at both on and off channel tokens.
346 // skip off-channel tokens
361 /** <summary>Look backwards k tokens on-channel tokens</summary> */
383 // skip off-channel tokens
395 * Return absolute token i; ignore which channel the tokens are on;
396 * that is, count all tokens not just on-channel tokens.