1 write to FilterSpan
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
918FilterSpan = filterSpan;
63 references to FilterSpan
GenerateDocumentationAndConfigFiles (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
291: new(_scope, this.Symbol, this.Compilation, analyzerOptions, this.IsGeneratedCode, this.FilterTree, this.FilterSpan, this.CancellationToken);
Microsoft.CodeAnalysis.Analyzers (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
124Contract.ThrowIfFalse(context.FilterSpan != symbolStartAnalyzer._symbolStartAnalysisContext.FilterSpan);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
75if (context.FilterSpan is not null)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
75if (context.FilterSpan is not null)
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
124Contract.ThrowIfFalse(context.FilterSpan != symbolStartAnalyzer._symbolStartAnalysisContext.FilterSpan);
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Microsoft.CodeAnalysis.Workspaces (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);
Roslyn.Diagnostics.Analyzers (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (8)
39/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 41/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44=> context.FilterTree == null || (context.FilterTree == tree && ShouldAnalyze(context.FilterSpan, span)); 49/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 51/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 161/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 166Contract.ThrowIfFalse(context.FilterSpan.HasValue); 167return context.FilterTree.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie, context.CancellationToken);