public DiagnosticViewModel(Diagnostic diagnostic, SourceText sourceText) { var textLocation = sourceText.GetTextLocation(diagnostic.Span.Start); Diagnostic = diagnostic; Description = diagnostic.Message; Column = textLocation.Column + 1; Line = textLocation.Line + 1; }