1 override of RegisterCompilationAction
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
36public override void RegisterCompilationAction(Action<CompilationAnalysisContext> action)
19 references to RegisterCompilationAction
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
81context.RegisterCompilationAction(AnalyzeCompilation);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
890context.RegisterCompilationAction(compilationContext =>
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
925context.RegisterCompilationAction(c => c.ReportDiagnostic(Diagnostic.Create(s_compilationRule, c.Compilation.SyntaxTrees.First().GetRoot().GetLocation()))); 941context.RegisterCompilationAction(c => c.ReportDiagnostic(Diagnostic.Create(s_compilationRule, c.Compilation.SyntaxTrees.First().GetRoot().GetLocation())));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Diagnostics\DiagnosticServiceTests.vb (3)
1696context.RegisterCompilationAction(Sub(c) Return) 1720context.RegisterCompilationAction(Sub(c) Return) 1746context.RegisterCompilationAction(AddressOf AnalyzeCompilation)
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
81context.RegisterCompilationAction(AnalyzeCompilation);
Microsoft.CodeAnalysis.Test.Utilities (10)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
561context.RegisterCompilationAction(compilationContext => 824context.RegisterCompilationAction(compilationContext => 835context.RegisterCompilationAction(_ => { }); 855context.RegisterCompilationAction(compilationContext => 876context.RegisterCompilationAction(compilationContext => 976context.RegisterCompilationAction(cc => ReportDiagnostic(cc.ReportDiagnostic, ActionKind.Compilation)); 1073context.RegisterCompilationAction(this.OnCompilation); 2485context.RegisterCompilationAction(compilationContext =>
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
40analysisContext.RegisterCompilationAction(
Diagnostics\TestDiagnosticAnalyzer.cs (1)
44context.RegisterCompilationAction(this.AnalyzeCompilation);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
275context.RegisterCompilationAction(