Antlr4.Runtime.CommonTokenStream.CommonTokenStream C# (CSharp) Method

CommonTokenStream() public method

Constructs a new CommonTokenStream using the specified token source and filtering tokens to the specified channel. Only tokens whose IToken.Channel() matches channel or have the IToken.Type() equal to TokenConstants.Eof will be returned by the token stream lookahead methods.
public CommonTokenStream ( ITokenSource tokenSource, int channel ) : Antlr4.Runtime.Sharpen
tokenSource ITokenSource The token source.
channel int The channel to use for filtering tokens.
return Antlr4.Runtime.Sharpen
        public CommonTokenStream(ITokenSource tokenSource, int channel)
            : this(tokenSource)
        {
            this.channel = channel;
        }

Same methods

CommonTokenStream::CommonTokenStream ( ITokenSource tokenSource ) : Antlr4.Runtime.Sharpen