Antlr4.Runtime.CommonTokenFactory.Create C# (CSharp) Method

Create() public method

public Create ( ICharStream>.Tuple source, int type, string text, int channel, int start, int stop, int line, int charPositionInLine ) : CommonToken
source ICharStream>.Tuple
type int
text string
channel int
start int
stop int
line int
charPositionInLine int
return CommonToken
        public virtual CommonToken Create(Tuple<ITokenSource, ICharStream> source, int type, string text, int channel, int start, int stop, int line, int charPositionInLine)
        {
            CommonToken t = new CommonToken(source, type, channel, start, stop);
            t.Line = line;
            t.Column = charPositionInLine;
            if (text != null)
            {
                t.Text = text;
            }
            else
            {
                if (copyText && source.Item2 != null)
                {
                    t.Text = source.Item2.GetText(Interval.Of(start, stop));
                }
            }
            return t;
        }

Same methods

CommonTokenFactory::Create ( int type, string text ) : CommonToken