Module yarnspinner::compiler
source · Expand description
Types and traits used by the compiler, in particular the Compiler
struct.
Structs§
- The result of a compilation.
- An object that contains Yarn source code to compile, and instructions on how to compile it.
- A collection of
Diagnostic
objects that describe problems that occurred during compilation. At least one of these diagnostics will have a severity ofDiagnosticSeverity::Error
. - Contains debug information for a node in a Yarn file.
- Information about a declaration. Stored inside a declaration table, which is produced from the Compiler.
- A diagnostic message that describes an error, warning or informational message that the user can take action on.
- Represents the contents of a file to compile.
- Contains positional information about an instruction.
- Information about a string. Stored inside a string table, which is produced from the Compiler.
Enums§
- The types of compilation that the compiler will do.
- The source of a declaration.
- The severity of the issue.
Traits§
- Trait implemented for
Vec<Diagnostic>
to provide utility methods.