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