Exemplo n.º 1
0
        public string ToRangeString(SourcePosition end)
        {
            if (Line == end.Line && Column == end.Column)
                return ToString();

            return string.Format(CultureInfo.InvariantCulture, "{0}-{1}", this, end);
        }
Exemplo n.º 2
0
 internal LexerException(string fileName, SourcePosition pos, string format, params object[] args)
     : base($"{fileName ?? "null"}({pos}): {string.Format(format, args)}")
 {
 }