2 writes to AdditionalFile
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (2)
24
AdditionalFile
= null;
29
AdditionalFile
= file;
20 references to AdditionalFile
Microsoft.CodeAnalysis (20)
DiagnosticAnalyzer\AnalysisContextInfo.cs (2)
101
RoslynDebug.Assert(_file.Value.
AdditionalFile
!= null);
102
sb.AppendLine($"{nameof(AdditionalText)}: {_file.Value.
AdditionalFile
.Path}");
DiagnosticAnalyzer\AnalysisResultBuilder.cs (3)
114
else if (filterFile.
AdditionalFile
is { } additionalFile)
137
else if (filterFile.
AdditionalFile
is { } additionalFile)
466
=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.FilterFileOpt!.Value.
AdditionalFile
, analysisScope.Analyzers, builder);
DiagnosticAnalyzer\AnalysisScope.cs (5)
124
var additionalFiles = filterFile.
AdditionalFile
!= null ? ImmutableArray.Create(filterFile.
AdditionalFile
) : ImmutableArray<AdditionalText>.Empty;
233
return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().
AdditionalFile
== file;
309
if (filterFile.
AdditionalFile
== null ||
310
!PathUtilities.Comparer.Equals(externalFileLocation.GetLineSpan().Path, filterFile.
AdditionalFile
.Path))
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (2)
132
if (_contextFile?.
AdditionalFile
!= null &&
135
return PathUtilities.Comparer.Equals(_contextFile.Value.
AdditionalFile
.Path, externalFileLocation.GetLineSpan().Path);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
611
Debug.Assert(file.
AdditionalFile
!= null);
612
var additionalFile = file.
AdditionalFile
;
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (6)
12
/// For source files, <see cref="SourceTree"/> is non-null and <see cref="
AdditionalFile
"/> is null.
13
/// For additional files, <see cref="
AdditionalFile
"/> is non-null and <see cref="SourceTree"/> is null.
37
=> SourceTree == other.SourceTree &&
AdditionalFile
== other.
AdditionalFile
;
53
RoslynDebug.Assert(
AdditionalFile
!= null);
54
return Hash.Combine(false,
AdditionalFile
.GetHashCode());