public override void ErrorReported(ScriptSource source, string message, Microsoft.Scripting.SourceSpan span, int errorCode, Microsoft.Scripting.Severity severity)
 {
     Message   = message;
     ErrorCode = errorCode;
     sev       = severity;
     Span      = span;
 }
Beispiel #2
0
 public override void ErrorReported(ScriptSource source, string message, SourceSpan span, int errorCode,
                                    Microsoft.Scripting.Severity severity)
 {
     //-1 because it's 1 based
     Diagnostics.Add(new PyDiagnostic(
                         message,
                         span.Start.Line,
                         span.End.Line,
                         span.Start.Column,
                         span.Start.Column,
                         Host.ToSeverity(severity)));
 }