1 type derived from CompilationStartAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
124internal sealed class AnalyzerCompilationStartAnalysisContext : CompilationStartAnalysisContext
83 references to CompilationStartAnalysisContext
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
27private void AnalyzeCompilationStart(CompilationStartAnalysisContext context)
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
17internal static bool TryLoadAssemblyModel(CompilationStartAnalysisContext context, out Assembly? assembly)
Microsoft.AspNetCore.Analyzers (1)
StartupAnalyzer.cs (1)
29private void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.AspNetCore.App.Analyzers (2)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
28private static void OnCompilationStart(CompilationStartAnalysisContext context)
Http\HeaderDictionaryAddAnalyzer.cs (1)
26private static void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.AspNetCore.Mvc.Analyzers (5)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
36private static void InitializeWorker(CompilationStartAnalysisContext context, TypeCache typeCache)
TagHelpersInCodeBlocksAnalyzer.cs (1)
39private static void InitializeWorker(CompilationStartAnalysisContext context, SymbolCache symbolCache)
TopLevelParameterNameAnalyzer.cs (1)
36private static void InitializeWorker(CompilationStartAnalysisContext context, SymbolCache symbolCache)
ViewFeaturesAnalyzerContext.cs (2)
12public ViewFeaturesAnalyzerContext(CompilationStartAnalysisContext context) 20public CompilationStartAnalysisContext Context { get; }
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
35private static void InitializeWorker(CompilationStartAnalysisContext context, ApiControllerSymbolCache symbolCache)
ApiConventionAnalyzer.cs (1)
37private static void InitializeWorker(CompilationStartAnalysisContext context, ApiControllerSymbolCache symbolCache)
Microsoft.CodeAnalysis (6)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
53public abstract void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action); 297/// A compilation start action can use a <see cref="CompilationStartAnalysisContext"/> to register actions to be executed at any of:
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
108public Action<CompilationStartAnalysisContext> Action { get; } 110public CompilationStartAnalyzerAction(Action<CompilationStartAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
30public override void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action) 373public void RegisterCompilationStartAction(Action<CompilationStartAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
47private void CompilationStartAction(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
53protected abstract void RegisterAttributeSyntaxAction(CompilationStartAnalysisContext context, CompilationAnalyzer compilationAnalyzer);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
175CompilationStartAnalysisContext compilationStartContext, 182private void RegisterActions(CompilationStartAnalysisContext compilationStartContext)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
48CompilationStartAnalysisContext context,
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
49private void OnCompilationStart(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
95private void AnalyzeCompilation(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
90private void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
46public static void CreateAndRegisterActions(CompilationStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
43private void AnalyzeCompilation(CompilationStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
14protected override void RegisterAttributeSyntaxAction(CompilationStartAnalysisContext context, CompilationAnalyzer compilationAnalyzer)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
15735public abstract void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context); 15762public override void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context) 15789public override void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context) 15808public override void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context) 15825public override void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context) 15850public override void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
230public void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context)
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
36public void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
2318private void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
46public static void CreateAndRegisterActions(CompilationStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
43private void AnalyzeCompilation(CompilationStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
14protected override void RegisterAttributeSyntaxAction(CompilationStartAnalysisContext context, CompilationAnalyzer compilationAnalyzer)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (4)
1456context.RegisterCompilationStartAction(Sub(compilationContext As CompilationStartAnalysisContext) 1596context.RegisterCompilationStartAction(Sub(compStartContext As CompilationStartAnalysisContext) 1775Private Shared Sub OnCompilationStarted(context As CompilationStartAnalysisContext) 2520Private Sub AnalyzeCompilation(context As CompilationStartAnalysisContext)
Microsoft.CodeAnalysis.Features (8)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
47private void CompilationStartAction(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
53protected abstract void RegisterAttributeSyntaxAction(CompilationStartAnalysisContext context, CompilationAnalyzer compilationAnalyzer);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
175CompilationStartAnalysisContext compilationStartContext, 182private void RegisterActions(CompilationStartAnalysisContext compilationStartContext)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
48CompilationStartAnalysisContext context,
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
49private void OnCompilationStart(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
95private void AnalyzeCompilation(CompilationStartAnalysisContext context)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
90private void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
134public void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context)
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
83public void CreateAnalyzerWithinCompilation(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
1145private void OnCompilationStart(CompilationStartAnalysisContext context) 1530private void OnCompilationStart(CompilationStartAnalysisContext context) 1799private void OnCompilationStart(CompilationStartAnalysisContext context) 2734private void AnalyzeCompilation(CompilationStartAnalysisContext context) 2929private void OnCompilationStart(CompilationStartAnalysisContext context) 3013private void AnalyzeCompilation(CompilationStartAnalysisContext context)
Diagnostics\EmptyArrayAnalyzer.cs (1)
61internal void RegisterOperationAction(CompilationStartAnalysisContext context)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
15Protected Overrides Sub RegisterAttributeSyntaxAction(context As CompilationStartAnalysisContext, compilationAnalyzer As CompilationAnalyzer)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (8)
CommandLineTests.vb (8)
10886Sub(startContext As CompilationStartAnalysisContext) 10892Public MustOverride Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 10902Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 10927Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 10953Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 10977Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 11001Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext) 11038Public Overrides Sub CreateAnalyzerWithinCompilation(context As CompilationStartAnalysisContext)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
15Protected Overrides Sub RegisterAttributeSyntaxAction(context As CompilationStartAnalysisContext, compilationAnalyzer As CompilationAnalyzer)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\GetDiagnosticsTests.vb (1)
605Private Sub OnCompilationStart(context As CompilationStartAnalysisContext)
Microsoft.DotNet.CodeAnalysis (6)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
55public override void OnCompilationStart(CompilationStartAnalysisContext context)
Analyzers\BaseAnalyzer.cs (2)
21private void InitializeAnalyzer(CompilationStartAnalysisContext context) 43public abstract void OnCompilationStart(CompilationStartAnalysisContext context);
Analyzers\MembersMustExistAnalyzer.cs (1)
45public override void OnCompilationStart(CompilationStartAnalysisContext context)
Analyzers\PinvokeAnalyzer.cs (1)
28public override void OnCompilationStart(CompilationStartAnalysisContext obj)
Analyzers\ResourceUsageAnalyzer.cs (1)
25public override void OnCompilationStart(CompilationStartAnalysisContext context)
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
619private void PrepareForAnalysis(CompilationStartAnalysisContext context)
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
68private void PrepareForAnalysis(CompilationStartAnalysisContext context)
Microsoft.ML.InternalCodeAnalyzer (2)
BaseTestClassAnalyzer.cs (1)
38private void AnalyzeCompilation(CompilationStartAnalysisContext context)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
42private void CompilationStart(CompilationStartAnalysisContext context)