public static SimplifiedDiagnostic FromDiagnostic(Diagnostic diagnostic)
 {
     return(new SimplifiedDiagnostic(diagnostic.Id,
                                     FileLocation.FromLocation(diagnostic.Location),
                                     diagnostic.GetMessage()));
 }
 public SimplifiedDiagnostic WithLocation(FileLocation fileLocation)
 {
     return(new SimplifiedDiagnostic(descriptor.Id, fileLocation, message));
 }
 internal SimplifiedDiagnostic(string id, FileLocation location, string message)
 {
     this.Id       = id;
     this.Location = location;
     this.Message  = message;
 }