Table of Contents

Class CompilationResult

Namespace
MuLang.Compiler
Assembly
MuLang.Compiler.dll

Represents the result of compiling MuLang source code to portable IR.

public sealed class CompilationResult
Inheritance
CompilationResult
Inherited Members

Properties

Diagnostics

Gets the diagnostics produced by compilation.

public DiagnosticCollection Diagnostics { get; }

Property Value

DiagnosticCollection

IsSuccessful

Gets a value indicating whether compilation produced valid portable IR without errors.

public bool IsSuccessful { get; }

Property Value

bool

LineMap

Gets the source line map.

public TextLineMap LineMap { get; }

Property Value

TextLineMap

Program

Gets the compiled portable IR program, or null when compilation failed.

public IrProgram? Program { get; }

Property Value

IrProgram

SourceDocument

Gets the source document URI, when available.

public Uri? SourceDocument { get; }

Property Value

Uri