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