Esempio n. 1
0
        public static void Error(SourcePosition position, string message)
        {
            _errors++;
            _output.WriteLine($"{position.Describe()}: {message}");

            if (_errors > 100)
            {
                throw new InvalidDataException("Error limit exceeded, aborting");
            }
        }
Esempio n. 2
0
 public static void Warning(SourcePosition position, string message)
 {
     _warnings++;
     _output.WriteLine($"{position.Describe()}: warning: {message}");
 }