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