1 write to FilterFileOpt
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisScope.cs (1)
148FilterFileOpt = filterFile;
30 references to FilterFileOpt
Microsoft.CodeAnalysis (30)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (6)
215if (analysisScope.FilterFileOpt.HasValue) 217var completedAnalyzersForFile = GetCompletedAnalyzersForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis); 233AddCompletedAnalyzerForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis, analyzer); 239if (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"/>, 72public bool IsSingleFileAnalysis => FilterFileOpt != null; 195return 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); 228return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().SourceTree == tree; 233return !FilterFileOpt.HasValue || FilterFileOpt.GetValueOrDefault().AdditionalFile == file; 241if (!FilterFileOpt.HasValue) 246var filterTree = FilterFileOpt.GetValueOrDefault().SourceTree; 269if (!FilterFileOpt.HasValue) 274if (FilterFileOpt.GetValueOrDefault().SourceTree == null) 294if (!FilterFileOpt.HasValue) 299var filterFile = FilterFileOpt.GetValueOrDefault();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
1804AnalyzerExecutor.ExecuteSymbolActions(actionsByKind[(int)symbol.Kind], analyzer, symbolEvent, s_getTopmostNodeForAnalysis, isGeneratedCodeSymbol, analysisScope.FilterFileOpt?.SourceTree, analysisScope.FilterSpanOpt, cancellationToken); 2518if (analysisScope.FilterFileOpt != null && analysisScope.FilterFileOpt?.SourceTree != decl.SyntaxTree)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (7)
794processSymbolStartAnalyzers(analysisScope.FilterFileOpt!.Value, analysisScope.FilterSpanOpt, compilationEvents, symbolStartAnalyzers, compilation, 972(SourceOrAdditionalFile file, bool syntax)? filterScope = analysisScope.FilterFileOpt.HasValue ? 973(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis) : 1013var compilationUnitCompletedEvent = new CompilationUnitCompletedEvent(compilation, analysisScope.FilterFileOpt!.Value.SourceTree!, analysisScope.FilterSpanOpt); 1025if (analysisScope.FilterFileOpt == null) 1034var mappedModel = compilation.GetSemanticModel(analysisScope.FilterFileOpt!.Value.SourceTree!); 1060var tree = analysisScope.FilterFileOpt!.Value.SourceTree!;