MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​Code­ModelIPartial­Compilation
Open sandboxFocus

IPartialCompilation Interface

Represents a subset of a Roslyn Microsoft.CodeAnalysis.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 Microsoft.CodeAnalysis.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(ManagedResource[])
WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation>)

Extension Methods

PartialCompilationExtensions.UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxTree, CancellationToken, SyntaxTree>, CancellationToken)
PartialCompilationExtensions.UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxNode, CancellationToken, SyntaxNode>, CancellationToken)
PartialCompilationExtensions.UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxTree, SyntaxTree>, CancellationToken)
PartialCompilationExtensions.RewriteSyntaxTreesAsync(IPartialCompilation, CSharpSyntaxRewriter, ProjectServiceProvider, CancellationToken)
PartialCompilationExtensions.RewriteSyntaxTreesAsync(IPartialCompilation, Func<SyntaxNode, CSharpSyntaxRewriter>, ProjectServiceProvider, CancellationToken)
PartialCompilationExtensions.AddSyntaxTrees(IPartialCompilation, SyntaxTree[])
PartialCompilationExtensions.AddSyntaxTrees(IPartialCompilation, IEnumerable<SyntaxTree>)
PartialCompilationExtensions.GetParseOptions(IPartialCompilation)

See Also