Table of Contents

Class CompilationResult

Namespace
DialogueDown.Compilation
Assembly
DialogueDown.dll

The outcome of one compilation: the original Source, the front-end artifacts every compile reaches, and the DialogueDown.Compilation.CompilationResult.Diagnostics collected while compiling. Which ending it is, is its type — a CompilationSuccess carrying every stage artifact, or a CompilationFailure carrying how far the compile got. The stage artifacts and the diagnostics are internal — they are the compiler's own types, still under active design — so tooling that has friend access (the visualization project) can project them, while a public caller sees the source, a HasErrors convenience, and the located diagnostics.

public abstract record CompilationResult : IEquatable<CompilationResult>
Inheritance
CompilationResult
Implements
Derived
Inherited Members

Properties

HasErrors

Whether any collected diagnostic is an error — the script is not valid.

LocatedDiagnostics

The located, rendered diagnostics for this compile — the public view a consumer displays: each carries its code, severity, final message, and one-based start/end position. Built once on first access (cached) by projecting the collected diagnostics through a DialogueDown.Diagnostics.LineMap over Source, in report order.

Source

The original script text this result was compiled from.