示例#1
0
 public ErrorSinkWrapper(Microsoft.Scripting.SourceUnit sourceUnit, Microsoft.Scripting.ErrorSink errorSink)
 {
     if (sourceUnit == null)
         throw new ArgumentNullException();
     if (errorSink == null)
         throw new ArgumentNullException();
     this.SourceUnit = sourceUnit;
     this.ErrorSink = errorSink;
 }
 public ErrorSinkWrapper(Microsoft.Scripting.SourceUnit sourceUnit, Microsoft.Scripting.ErrorSink errorSink)
 {
     if (sourceUnit == null)
     {
         throw new ArgumentNullException();
     }
     if (errorSink == null)
     {
         throw new ArgumentNullException();
     }
     this.SourceUnit = sourceUnit;
     this.ErrorSink  = errorSink;
 }
示例#3
0
 public override void Add(Microsoft.Scripting.SourceUnit source, string message, Microsoft.Scripting.SourceSpan span, int errorCode, Microsoft.Scripting.Severity severity)
 {
     Add(message, span);
 }