MetalamaAPI documentationAdvanced APIMetalama.​CompilerInitialize­Services­Context
Open sandboxFocus

InitializeServicesContext Class

Context passed to a source transformer when InitializeServices(InitializeServicesContext) is called.

Inheritance
System.Object
InitializeServicesContext
Namespace: Metalama.Compiler
Assembly: Metalama.Compiler.Interface.dll
Syntax
public sealed class InitializeServicesContext : Object

Properties

Name Description
AnalyzerConfigOptionsProvider

Gets the AnalyzerConfigOptionsProvider, which allows to access .editorconfig options.

Compilation

Gets the Compilation.

Options

Gets options of the current InitializeServicesContext.

Methods

Name Description
ReportDiagnostic(Diagnostic)

Adds a Microsoft.CodeAnalysis.Diagnostic to the user's compilation.