Table of Contents

Class MuLangCompilationOptions

Namespace
MuLang.Compiler
Assembly
MuLang.Compiler.dll

Represents options shared by MuLang analysis and compilation.

public sealed class MuLangCompilationOptions
Inheritance
MuLangCompilationOptions
Inherited Members

Constructors

MuLangCompilationOptions()

public MuLangCompilationOptions()

Properties

Default

Gets the default compilation options.

public static MuLangCompilationOptions Default { get; }

Property Value

MuLangCompilationOptions

ExpectedResultType

Gets or sets the expected result type, or null to infer an expression result or use void for a program.

public TypeSymbol? ExpectedResultType { get; init; }

Property Value

TypeSymbol

Profile

Gets or sets the language profile, or null to use Latest.

public LanguageProfile? Profile { get; init; }

Property Value

LanguageProfile

SourceDocument

Gets or sets the source document URI, or null when unavailable.

public Uri? SourceDocument { get; init; }

Property Value

Uri