2 instantiations of FileChange
dotnet-format (2)
Analyzers\AnalyzerFormatter.cs (1)
192
formattedFiles.Add(new FormattedFile(document, new[] { new
FileChange
(diagnosticPosition, diagnostic.Id, $"{diagnostic.Severity.ToString().ToLower()} {diagnostic.Id}: {diagnostic.GetMessage()}") }));
Formatters\DocumentFormatter.cs (1)
174
var fileChange = new
FileChange
(changePosition, Name, $"{FormatWarningDescription}{changeMessage}");
6 references to FileChange
dotnet-format (6)
FormattedFile.cs (2)
14
public IEnumerable<
FileChange
> FileChanges { get; }
16
public FormattedFile(Document document, IEnumerable<
FileChange
> fileChanges)
Formatters\DocumentFormatter.cs (3)
159
private ImmutableArray<
FileChange
> GetFileChanges(FormatOptions formatOptions, Document document, SourceText originalText, SourceText formattedText, bool changesAreErrors, ILogger logger)
161
var fileChanges = ImmutableArray.CreateBuilder<
FileChange
>();
174
var
fileChange = new FileChange(changePosition, Name, $"{FormatWarningDescription}{changeMessage}");
Logging\ILoggerExtensions.cs (1)
16
public static string LogFormattingIssue(this ILogger logger, Document document, string formatterName,
FileChange
fileChange, bool changesAreErrors)