1 instantiation of OperationBlockAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
908var context = new OperationBlockAnalysisContext(operationBlocks, declaredSymbol, semanticModel.Compilation,
49 references to OperationBlockAnalysisContext
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.DetectInvalidModelNames.cs (1)
13private void DetectInvalidModelNames(OperationBlockAnalysisContext context, ConcurrentDictionary<ModelNameOperation, byte> modelNameOperations)
ILLink.RoslynAnalyzer (3)
DataFlow\LocalDataFlowAnalysis.cs (2)
37 protected readonly OperationBlockAnalysisContext Context; 55 OperationBlockAnalysisContext context,
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
41 OperationBlockAnalysisContext context,
Microsoft.AspNetCore.App.Analyzers (1)
RouteHandlers\DetectAmbiguousRoutes.cs (1)
22private static void DetectAmbiguousRoutes(in OperationBlockAnalysisContext context, WellKnownTypes wellKnownTypes, ConcurrentDictionary<MapOperation, byte> mapOperations)
Microsoft.CodeAnalysis (11)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
908var context = new OperationBlockAnalysisContext(operationBlocks, declaredSymbol, semanticModel.Compilation,
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (4)
171public virtual void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action) 426public virtual void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action) 981public abstract void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action); 1327public abstract void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action);
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
84public Action<OperationBlockAnalysisContext> Action { get; } 86public OperationBlockAnalyzerAction(Action<OperationBlockAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (4)
102public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action) 201public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action) 271public override void RegisterOperationBlockAction(Action<OperationBlockAnalysisContext> action) 341public override void RegisterOperationBlockEndAction(Action<OperationBlockAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
105protected bool ShouldSkipAnalysis(OperationBlockAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (4)
363/// Method invoked in <see cref="AnalyzeOperationBlockEnd(OperationBlockAnalysisContext)"/> 453private void AnalyzeOperationBlockEnd(OperationBlockAnalysisContext context) 479OperationBlockAnalysisContext context, 697OperationBlockAnalysisContext context,
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
40private void AnalyzeOperationBlock(HashCodeAnalyzer analyzer, OperationBlockAnalysisContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
100/// - <see cref="OperationBlockAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 102/// - <paramref name="span"/> intersects with <see cref="OperationBlockAnalysisContext.FilterSpan"/>. 104public static bool ShouldAnalyzeSpan(this OperationBlockAnalysisContext context, TextSpan span) 192public static SyntaxNode GetAnalysisRoot(this OperationBlockAnalysisContext context, IOperation operationBlock, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
133OperationBlockAnalysisContext context,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (3)
4507private void Handle(OperationBlockAnalysisContext context) 4715private void Handle6(OperationBlockAnalysisContext context) 5782private void Handle(OperationBlockAnalysisContext context)
Semantics\RecordTests.cs (2)
27015private void Handle(OperationBlockAnalysisContext context) 27223private void Handle6(OperationBlockAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
133OperationBlockAnalysisContext context,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (1)
6508private void Handle(OperationBlockAnalysisContext context)
Semantics\TopLevelStatementsTests.cs (2)
6798private void Handle(OperationBlockAnalysisContext context) 7350private void Handle2(OperationBlockAnalysisContext context)
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
105protected bool ShouldSkipAnalysis(OperationBlockAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (4)
363/// Method invoked in <see cref="AnalyzeOperationBlockEnd(OperationBlockAnalysisContext)"/> 453private void AnalyzeOperationBlockEnd(OperationBlockAnalysisContext context) 479OperationBlockAnalysisContext context, 697OperationBlockAnalysisContext context,
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
40private void AnalyzeOperationBlock(HashCodeAnalyzer analyzer, OperationBlockAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
293private void Report(OperationBlockAnalysisContext context, ILocalSymbol local, ITypeSymbol moreSpecificType, DiagnosticDescriptor descriptor)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
133private void Report(OperationBlockAnalysisContext context, ILocalSymbol local, DiagnosticDescriptor descriptor)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\GetDiagnosticsTests.vb (1)
644Private Sub AnalyzeOperationBlockEnd(context As OperationBlockAnalysisContext)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
100/// - <see cref="OperationBlockAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 102/// - <paramref name="span"/> intersects with <see cref="OperationBlockAnalysisContext.FilterSpan"/>. 104public static bool ShouldAnalyzeSpan(this OperationBlockAnalysisContext context, TextSpan span) 192public static SyntaxNode GetAnalysisRoot(this OperationBlockAnalysisContext context, IOperation operationBlock, bool findInTrivia, bool getInnermostNodeForTie = false)