示例#1
0
 public void ThrowError(Ast.ErrorInfo error, SourceSpan span, params object[] messageArgs)
 {
     throw new SyntaxErrorException(
               error.FormatMessage(messageArgs),
               Compiler.SourceUnit,
               span,
               error.Code,
               error.Severity);
 }
示例#2
0
 public void ReportError(Ast.ErrorInfo error, SourceSpan span, params object[] messageArgs)
 {
     Compiler.Errors.Add(
         Compiler.SourceUnit,
         error.FormatMessage(messageArgs),
         span,
         error.Code,
         error.Severity);
 }