CompilationResult
Class in Yarn.Compiler
Inherits from System.Object
Summary
The result of a compilation.
public class CompilationResult : ICodeDumpHelperRemarks
Instances of this class are produced as a result of supplying a CompilationJob to Compile(CompilationJob) .
Methods
| Name | Description |
|---|---|
| GetDescriptionForVariable(string) | Gets the description for a given variable, if it exists. |
| GetLabelsForNode(string) | Gets the mapping of instruction indices to named labels found in the node. |
| GetStringForKey(string) | Gets the user-facing string for a given key from the code dump helper’s string table. |
Properties
| Name | Description |
|---|---|
| ContainsErrors | Gets a value indicating whether this compilation result contains any error diagnostics. |
| ContainsImplicitStringTags | Gets a value indicating whether the compiler had to create line IDs for lines in the source code that lacked line: tags. |
| DebugInfo | Gets the collection of DebugInfo objects for each node in Program . |
| Declarations | Gets the collection of variable declarations that were found during compilation. |
| Diagnostics | Gets the collection of Diagnostic objects that describe problems in the source code. |
| FileTags | Gets the collection of file-level tags found in the source code. |
| ParseResults | Contains the results of parsing each input of the compilation. |
| Program | Gets the compiled Yarn program that the Compiler produced. |
| ProjectDebugInfo | Gets the debugging information for this compiled project. |
| StringTable | Gets a dictionary mapping line IDs to StringInfo objects. |
| UserDefinedTypes | Gets a collection of any types that were defined by the user in the input (for example, user-defined enum types.) |