1 instantiation of CompilationAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
331var context = new CompilationAnalysisContext(
32 references to CompilationAnalysisContext
Microsoft.Analyzers.Local (2)
ApiLifecycle\ApiLifecycleAnalyzer.cs (2)
65private static void ReportDiagnosticForModel(CompilationAnalysisContext context, AssemblyAnalysis assemblyAnalysis) 142private static void CheckAllPublicTypesAreExperimentalAndNotObsolete(CompilationAnalysisContext context)
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
331var context = new CompilationAnalysisContext(
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
48public static void AnalyzeCompilation(CompilationAnalysisContext context)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
60public abstract void RegisterCompilationAction(Action<CompilationAnalysisContext> action); 355public abstract void RegisterCompilationEndAction(Action<CompilationAnalysisContext> action); 556/// A compilation action or compilation end action can use a <see cref="CompilationAnalysisContext"/> to report <see cref="Diagnostic"/>s about a <see cref="CodeAnalysis.Compilation"/>.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
119public Action<CompilationAnalysisContext> Action { get; } 121public CompilationAnalyzerAction(Action<CompilationAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
36public override void RegisterCompilationAction(Action<CompilationAnalysisContext> action) 141public override void RegisterCompilationEndAction(Action<CompilationAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
115private void AnalyzeCompilation(CompilationAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
39public void AnalyzeCompilation(CompilationAnalysisContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticServiceTests.vb (2)
1749Private Shared Sub AnalyzeCompilation(context As CompilationAnalysisContext) 1788Public Sub AnalyzeCompilation(context As CompilationAnalysisContext)
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
115private void AnalyzeCompilation(CompilationAnalysisContext context)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
86public void AnalyzeCompilation(CompilationAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (5)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1076private void OnCompilation(CompilationAnalysisContext context) 2027void reportDiagnosticsAtCompilationEnd(CompilationAnalysisContext compilationEndContext)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
298private void Report(CompilationAnalysisContext context, IFieldSymbol field, ITypeSymbol moreSpecificType, DiagnosticDescriptor descriptor)
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
142private void Report(CompilationAnalysisContext context, IFieldSymbol field, DiagnosticDescriptor descriptor)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
59private void AnalyzeCompilation(CompilationAnalysisContext context)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (9)
CommandLineTests.vb (9)
10968Public MustOverride Sub AnalyzeCompilation(context As CompilationAnalysisContext) 10981Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11006Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11032Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11056Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11080Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11110Public Overrides Sub AnalyzeCompilation(context As CompilationAnalysisContext) 11117Private Sub CompilationEndAction(context As CompilationAnalysisContext) 11133Private Sub ReportDiagnostic(path As String, context As CompilationAnalysisContext, Optional span As TextSpan = Nothing)
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\MembersMustExistAnalyzer.cs (1)
30private void OnCompilationEnd(CompilationAnalysisContext context)