public ProcessingResultDiagnostic(Diagnostic diagnostic)
        {
            Id = diagnostic.Id;
            Severity = diagnostic.Severity;
            Message = diagnostic.GetMessage();

            var lineSpan = diagnostic.Location.GetMappedLineSpan();
            Start = new ProcessingResultDiagnosticLocation(lineSpan.StartLinePosition);
            End = new ProcessingResultDiagnosticLocation(lineSpan.EndLinePosition);
        }
Ejemplo n.º 2
0
        public ProcessingResultDiagnostic(Diagnostic diagnostic)
        {
            Id       = diagnostic.Id;
            Severity = diagnostic.Severity;
            Message  = diagnostic.GetMessage();

            var lineSpan = diagnostic.Location.GetMappedLineSpan();

            Start = new ProcessingResultDiagnosticLocation(lineSpan.StartLinePosition);
            End   = new ProcessingResultDiagnosticLocation(lineSpan.EndLinePosition);
        }