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

InitializeServicesContext Class

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

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

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 Diagnostic to the user's compilation.