1 instantiation of CodeBlockAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
893var context = new CodeBlockAnalysisContext(declaredNode, declaredSymbol, semanticModel,
58 references to CodeBlockAnalysisContext
Microsoft.CodeAnalysis (12)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
893var context = new CodeBlockAnalysisContext(declaredNode, declaredSymbol, semanticModel,
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (5)
113public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action); 408public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action); 943public abstract void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action); 1098public abstract void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action); 1124/// A code block action or code block end action can use a <see cref="CodeBlockAnalysisContext"/> to report <see cref="Diagnostic"/>s about a code block.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
174public Action<CodeBlockAnalysisContext> Action { get; } 176public CodeBlockAnalyzerAction(Action<CodeBlockAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (4)
78public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action) 183public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action) 253public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action) 305public override void RegisterCodeBlockEndAction(Action<CodeBlockAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
99protected bool ShouldSkipAnalysis(CodeBlockAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (5)
105/// <param name="codeBlock">The syntax node provided via <see cref="CodeBlockAnalysisContext.CodeBlock"/>.</param> 111protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 207/// for analysis performed by a <see cref="CodeBlockAnalysisContext"/> callback.</para> 213/// <para><c>intervalTree</c>: the set of intervals analyzed by <see cref="CodeBlockAnalysisContext"/> 224public void AnalyzeCodeBlock(CodeBlockAnalysisContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
140/// - <see cref="CodeBlockAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 142/// - <paramref name="span"/> intersects with <see cref="CodeBlockAnalysisContext.FilterSpan"/>. 144public static bool ShouldAnalyzeSpan(this CodeBlockAnalysisContext context, TextSpan span) 216public static SyntaxNode GetAnalysisRoot(this CodeBlockAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (3)
53/// <param name="codeBlock">The syntax node provided via <see cref="CodeBlockAnalysisContext.CodeBlock"/>.</param> 82private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 269public void AnalyzeCodeBlock(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
318public static void AnalyzeCodeBlock(CodeBlockAnalysisContext _)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
782public static void OnCodeBlockEnded(CodeBlockAnalysisContext context)
Semantics\PrimaryConstructorTests.cs (4)
4821private void Handle(CodeBlockAnalysisContext context) 5034private void Handle11(CodeBlockAnalysisContext context) 5840private void Handle(CodeBlockAnalysisContext context) 5990private void Handle11(CodeBlockAnalysisContext context)
Semantics\RecordTests.cs (2)
27284private void Handle(CodeBlockAnalysisContext context) 27497private void Handle11(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Features (4)
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
51protected override ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (3)
53/// <param name="codeBlock">The syntax node provided via <see cref="CodeBlockAnalysisContext.CodeBlock"/>.</param> 82private static ImmutableArray<TextSpan> AnalyzeCodeBlock(CodeBlockAnalysisContext context, int positionOfFirstReducingNullableDirective) 269public void AnalyzeCodeBlock(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (2)
6566private void Handle(CodeBlockAnalysisContext context) 6716private void Handle11(CodeBlockAnalysisContext context)
Semantics\TopLevelStatementsTests.cs (1)
6914private void Handle(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (4)
1674Public Sub AnalyzeCodeBlock(context As CodeBlockAnalysisContext) 1699Public Sub AnalyzeCodeBlock(context As CodeBlockAnalysisContext) 1723Public Sub AnalyzeCodeBlock(context As CodeBlockAnalysisContext) 1826Public Shared Sub OnCodeBlockEnded(context As CodeBlockAnalysisContext)
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
99protected bool ShouldSkipAnalysis(CodeBlockAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (5)
105/// <param name="codeBlock">The syntax node provided via <see cref="CodeBlockAnalysisContext.CodeBlock"/>.</param> 111protected abstract ImmutableArray<Diagnostic> AnalyzeCodeBlock(CodeBlockAnalysisContext context, SyntaxNode root); 207/// for analysis performed by a <see cref="CodeBlockAnalysisContext"/> callback.</para> 213/// <para><c>intervalTree</c>: the set of intervals analyzed by <see cref="CodeBlockAnalysisContext"/> 224public void AnalyzeCodeBlock(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
53private void AnalyzeCodeBlock(CodeBlockAnalysisContext context)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (1)
38Protected Overrides Function AnalyzeCodeBlock(context As CodeBlockAnalysisContext, root As SyntaxNode) As ImmutableArray(Of Diagnostic)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
411Private Shared Sub OnCodeBlock(context As CodeBlockAnalysisContext)
Diagnostics\GetDiagnosticsTests.vb (1)
631Private Sub AnalyzeCodeBlockEnd(context As CodeBlockAnalysisContext)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
140/// - <see cref="CodeBlockAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 142/// - <paramref name="span"/> intersects with <see cref="CodeBlockAnalysisContext.FilterSpan"/>. 144public static bool ShouldAnalyzeSpan(this CodeBlockAnalysisContext context, TextSpan span) 216public static SyntaxNode GetAnalysisRoot(this CodeBlockAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)