Open sandboxFocus

Namespace Metalama.Compiler

Classes

DiagnosticFilterCollection

A collection of DiagnosticFilter, indexed by file path and diagnostic id. This collection is not thread-safe.

DiagnosticFilterRunner

Processes a Diagnostic through a set of DiagnosticFilter and to determine if the Diagnostic must be suppressed.

InitializeServicesContext

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

InitializeServicesOptions

Options of a ISourceTransformer, exposed on Options.

Intrinsics

ManagedResource

Represents a managed resource.

MetalamaCompilerAnnotations

Exposes the SyntaxAnnotations used by Metalama.Compiler.

MetalamaCompilerInfo

SourceGeneratedCodeTracker

TransformedFileMapping

TransformedFilesMap

Contains information about files written by Metalama when the MetalamaEmitCompilerTransformedFiles project property is set.

TransformerAttribute

Place this attribute onto a type to cause it to be considered a source transformer.

TransformerContext

Context passed to a source transformer when Execute(TransformerContext) is called. The implementation can modify the compilation using the methods AddSyntaxTrees(params SyntaxTree[]), ReplaceSyntaxTree(SyntaxTree, SyntaxTree) or AddResources(params ManagedResource[]). It can report a diagnostic using ReportDiagnostic(Diagnostic) or suppress diagnostics using RegisterDiagnosticFilter(in DiagnosticFilter).

TransformerOptions

Options of a ISourceTransformer, exposed on Options.

TransformerOrderAttribute

Applying this attribute on an assembly specifies the execution order of transformers it knows about, including transformers inside the assembly itself.

Structs

DiagnosticFilter

Represents a mechanism able to suppress diagnostics with a delegate.

DiagnosticFilteringRequest

SyntaxTreeTransformation

Interfaces

ISourceTransformer

The interface required to implement a source transformer.

ISourceTransformerWithServices

Enums

SyntaxTreeTransformationKind

Delegates

DiagnosticFilterDelegate