Exemple #1
0
 internal void ReportSyntaxWarning(string message, Node node)
 {
     _context.Errors.Add(_context.SourceUnit, message, node.Span, -1, Severity.Warning);
 }
Exemple #2
0
 internal void ReportSyntaxError(string message, Node node)
 {
     // TODO: Change the error code (-1)
     _context.Errors.Add(_context.SourceUnit, message, node.Span, -1, Severity.FatalError);
     throw new NotImplementedException();
     //throw TotemOps.SyntaxError(message, _context.SourceUnit, node.Span, -1);
 }