1 write to FilterSpan
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
918FilterSpan = filterSpan;
120 references to FilterSpan
GenerateDocumentationAndConfigFiles (8)
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);
Metrics (8)
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);
Metrics.Legacy (8)
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.Analyzers (8)
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\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.BannedApiAnalyzers (8)
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\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
124Contract.ThrowIfFalse(context.FilterSpan != symbolStartAnalyzer._symbolStartAnalysisContext.FilterSpan);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
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\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
76if (context.FilterSpan is not null)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
76if (context.FilterSpan is not null)
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
124Contract.ThrowIfFalse(context.FilterSpan != symbolStartAnalyzer._symbolStartAnalysisContext.FilterSpan);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
198if (context.FilterSpan.HasValue)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (8)
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.PublicApiAnalyzers (8)
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.ResxSourceGenerator (8)
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.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
3137CallbackFilterSpan = startContext.FilterSpan; 3145if (startContext.FilterSpan != endContext.FilterSpan)
Microsoft.CodeAnalysis.Workspaces (8)
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\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);
Test.Utilities (8)
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);
Text.Analyzers (8)
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);