Antlr.Runtime.LegacyCommonTokenStream.SetTokenTypeChannel C# (CSharp) Method

SetTokenTypeChannel() public method

* A simple filter mechanism whereby you can tell this token stream * to force all tokens of type ttype to be on channel. For example, * when interpreting, we cannot exec actions so we need to tell * the stream to force all WS and NEWLINE to be a different, ignored * channel. *
public SetTokenTypeChannel ( int ttype, int channel ) : void
ttype int
channel int
return void
        public virtual void SetTokenTypeChannel( int ttype, int channel )
        {
            if ( channelOverrideMap == null )
            {
                channelOverrideMap = new Dictionary<int, int>();
            }
            channelOverrideMap[ttype] = channel;
        }