Class CompilerOptions
- Namespace
- DialogueDown.Configuration
- Assembly
- DialogueDown.dll
Deeply immutable options that configure a single compile — the public value a consumer builds,
in code or by loading a dialogue.toml, and hands to a composition root. The root
separates it into each stage's options view. Start from Default and adjust it with
a with expression.
[Equatable]
public sealed record CompilerOptions : IEquatable<CompilerOptions>
- Inheritance
-
CompilerOptions
- Implements
- Inherited Members
Constructors
- CompilerOptions()
Creates the unconfigured options: every knob at its built-in default.
- CompilerOptions(CompilationMode, IEnumerable<ConfiguredSpeaker>, IEnumerable<KeyValuePair<UnmodeledNodeKind, UnmodeledNodeHandling>>)
Creates immutable snapshots of every configured collection.
Properties
- Default
The unconfigured options: every knob at its built-in default.
- Mode
How far a compile proceeds after an error; the default is StageBoundary.
- Speakers
Speakers supplied by configuration — an immutable registry seeded alongside a script's own speakers. At most one may be the default speaker, and a script's own
##defaulttakes precedence over it.
- UnmodeledMarkdown
How the front-end handles each kind of unmodeled Markdown construct, overriding the built-in defaults. Only the kinds named here differ; every other kind keeps its default, so an empty map (the default) is the built-in behavior.
Methods
- Equals(CompilerOptions?)
Indicates whether the current object is equal to another object of the same type.
- GetHashCode()
Serves as the default hash function.