Open sandboxFocus

Interface IPartialCompilation

Represents a subset of a Roslyn Compilation. The subset is limited to specific syntax trees.

Namespace: Metalama.Framework.Engine.CodeModel
Assembly: Metalama.Framework.Sdk.dll
Syntax
public interface IPartialCompilation

Properties

Name Description
Compilation

Gets the Roslyn Compilation.

IsPartial

Gets a value indicating whether the current IPartialCompilation is actually partial, or represents a complete compilation.

Namespaces

Gets the namespaces that contain types.

Resources

Gets the list of managed resources for the current compilation. This property is not defined at the design time, only at compile time.

SyntaxTrees

Gets the list of syntax trees in the current subset.

Types

Gets the types declared in the current subset.

Methods

Name Description
WithAdditionalResources(params ManagedResource[])

Returns a copy of the current IPartialCompilation where the Resources have been modified.

WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation>?)

Returns a copy of the current IPartialCompilation where the SyntaxTrees have been modified.

Extension Methods

See Also