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

CommonToken() public method

Constructs a new CommonToken with the specified token type and text.
public CommonToken ( int type, string text ) : System
type int The token type.
text string The text of the token.
return System
        public CommonToken(int type, string text)
        {
            this._type = type;
            this._channel = TokenConstants.DefaultChannel;
            this._text = text;
            this.source = EmptySource;
        }

Same methods

CommonToken::CommonToken ( IToken oldToken ) : System
CommonToken::CommonToken ( ICharStream>.Tuple source, int type, int channel, int start, int stop ) : System
CommonToken::CommonToken ( int type ) : System