1 override of RegisterCodeBlockAction
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
78public override void RegisterCodeBlockAction(Action<CodeBlockAnalysisContext> action)
11 references to RegisterCodeBlockAction
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
772context.RegisterCodeBlockAction(OnCodeBlockEnded); 4496context.RegisterCodeBlockAction(context => { AssertSame(context.Options); RegisterCodeBlockActionInvoked = true; });
Semantics\PrimaryConstructorTests.cs (2)
4959context.RegisterCodeBlockAction(Handle); 5978context.RegisterCodeBlockAction(Handle);
Semantics\RecordTests.cs (1)
27368context.RegisterCodeBlockAction(Handle);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (1)
6635context.RegisterCodeBlockAction(Handle);
Semantics\TopLevelStatementsTests.cs (1)
7001context.RegisterCodeBlockAction(Handle);
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
608context.RegisterCodeBlockAction(codeBlockContext => 3213context.RegisterCodeBlockAction(context =>
Diagnostics\TestDiagnosticAnalyzer.cs (1)
46context.RegisterCodeBlockAction(this.AnalyzeCodeBlock);
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
72c.RegisterCodeBlockAction(b => ThrowIfMatch(nameof(c.RegisterCodeBlockAction), new AnalysisContextInfo(b.SemanticModel.Compilation, b.OwningSymbol, b.CodeBlock)));