/// <summary> /// Produces the filtering action for the diagnostic based on the options passed in. /// </summary> /// <returns> /// A new <see cref="DiagnosticInfo"/> with new effective severity based on the options or null if the /// diagnostic has been suppressed. /// </returns> public abstract ReportDiagnostic GetDiagnosticReport(DiagnosticInfo diagnosticInfo, CompilationOptions options);
public static Diagnostic Create(DiagnosticInfo info) { return(new DiagnosticWithInfo(info, Location.None)); }
/// <summary> /// Create a simple language specific diagnostic with no location for given info. /// </summary> public abstract Diagnostic CreateDiagnostic(DiagnosticInfo info);