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

CommonToken() public method

public CommonToken ( ICharStream>.Tuple source, int type, int channel, int start, int stop ) : System
source ICharStream>.Tuple
type int
channel int
start int
stop int
return System
        public CommonToken(Tuple<ITokenSource, ICharStream> source, int type, int channel, int start, int stop)
        {
            this.source = source;
            this._type = type;
            this._channel = channel;
            this.start = start;
            this.stop = stop;
            if (source.Item1 != null)
            {
                this._line = source.Item1.Line;
                this.charPositionInLine = source.Item1.Column;
            }
        }

Same methods

CommonToken::CommonToken ( IToken oldToken ) : System
CommonToken::CommonToken ( int type ) : System
CommonToken::CommonToken ( int type, string text ) : System