public Create ( ICharStream>.Tuple |
||
source | ICharStream>.Tuple | |
type | int | |
text | string | |
channel | int | |
start | int | |
stop | int | |
line | int | |
charPositionInLine | int | |
return |
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;
}
CommonTokenFactory::Create ( int type, string text ) : |