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