1 write to FilterFileOpt
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisScope.cs (1)
148
FilterFileOpt
= filterFile;
30 references to FilterFileOpt
Microsoft.CodeAnalysis (30)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (6)
215
if (analysisScope.
FilterFileOpt
.HasValue)
217
var completedAnalyzersForFile = GetCompletedAnalyzersForFile_NoLock(analysisScope.
FilterFileOpt
.Value, analysisScope.IsSyntacticSingleFileAnalysis);
233
AddCompletedAnalyzerForFile_NoLock(analysisScope.
FilterFileOpt
.Value, analysisScope.IsSyntacticSingleFileAnalysis, analyzer);
239
if (analysisScope.
FilterFileOpt
.Value.SourceTree != null)
460
=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.
FilterFileOpt
!.Value.SourceTree, analysisScope.Analyzers, builder);
466
=> AddLocalDiagnosticsForPartialAnalysis_NoLock(localDiagnostics, analysisScope.
FilterFileOpt
!.Value.AdditionalFile, analysisScope.Analyzers, builder);
DiagnosticAnalyzer\AnalysisScope.cs (14)
30
/// Normally, this is the same as <see cref="
FilterFileOpt
"/>,
72
public bool IsSingleFileAnalysis =>
FilterFileOpt
!= null;
195
return new AnalysisScope(SyntaxTrees, AdditionalFiles, analyzers, hasAllAnalyzers,
FilterFileOpt
, FilterSpanOpt, OriginalFilterFile, OriginalFilterSpan, IsSyntacticSingleFileAnalysis, ConcurrentAnalysis);
211
=> new AnalysisScope(SyntaxTrees, AdditionalFiles, Analyzers, HasAllAnalyzers,
FilterFileOpt
, filterSpan, OriginalFilterFile, OriginalFilterSpan, IsSyntacticSingleFileAnalysis, ConcurrentAnalysis);
228
return !
FilterFileOpt
.HasValue ||
FilterFileOpt
.GetValueOrDefault().SourceTree == tree;
233
return !
FilterFileOpt
.HasValue ||
FilterFileOpt
.GetValueOrDefault().AdditionalFile == file;
241
if (!
FilterFileOpt
.HasValue)
246
var filterTree =
FilterFileOpt
.GetValueOrDefault().SourceTree;
269
if (!
FilterFileOpt
.HasValue)
274
if (
FilterFileOpt
.GetValueOrDefault().SourceTree == null)
294
if (!
FilterFileOpt
.HasValue)
299
var filterFile =
FilterFileOpt
.GetValueOrDefault();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
1804
AnalyzerExecutor.ExecuteSymbolActions(actionsByKind[(int)symbol.Kind], analyzer, symbolEvent, s_getTopmostNodeForAnalysis, isGeneratedCodeSymbol, analysisScope.
FilterFileOpt
?.SourceTree, analysisScope.FilterSpanOpt, cancellationToken);
2518
if (analysisScope.
FilterFileOpt
!= null && analysisScope.
FilterFileOpt
?.SourceTree != decl.SyntaxTree)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (7)
794
processSymbolStartAnalyzers(analysisScope.
FilterFileOpt
!.Value, analysisScope.FilterSpanOpt, compilationEvents, symbolStartAnalyzers, compilation,
972
(SourceOrAdditionalFile file, bool syntax)? filterScope = analysisScope.
FilterFileOpt
.HasValue ?
973
(analysisScope.
FilterFileOpt
.Value, analysisScope.IsSyntacticSingleFileAnalysis) :
1013
var compilationUnitCompletedEvent = new CompilationUnitCompletedEvent(compilation, analysisScope.
FilterFileOpt
!.Value.SourceTree!, analysisScope.FilterSpanOpt);
1025
if (analysisScope.
FilterFileOpt
== null)
1034
var mappedModel = compilation.GetSemanticModel(analysisScope.
FilterFileOpt
!.Value.SourceTree!);
1060
var tree = analysisScope.
FilterFileOpt
!.Value.SourceTree!;