Class CompilationResult
Result of compiling PL/0 source code.
public sealed class CompilationResult
- Inheritance
-
CompilationResult
- Inherited Members
Constructors
CompilationResult(IReadOnlyList<Instruction>, IReadOnlyList<CompilerDiagnostic>)
Creates a new compilation result.
public CompilationResult(IReadOnlyList<Instruction> instructions, IReadOnlyList<CompilerDiagnostic> diagnostics)
Parameters
instructionsIReadOnlyList<Instruction>Generated P-Code instructions.
diagnosticsIReadOnlyList<CompilerDiagnostic>Diagnostics produced during compilation.
Properties
Diagnostics
Gets the diagnostics produced during compilation.
public IReadOnlyList<CompilerDiagnostic> Diagnostics { get; }
Property Value
Instructions
Gets the generated P-Code instructions.
public IReadOnlyList<Instruction> Instructions { get; }
Property Value
Success
Gets a value indicating whether compilation succeeded without diagnostics.
public bool Success { get; }