Utility
Class in Yarn.Compiler
Inherits from System.Object
Summary
Utility methods for working with line tags.
public static class UtilityMethods
| Name | Description |
|---|---|
| AddTagsToLines(string,ICollection | Given Yarn source code, adds line tags to the ends of all lines that need one and do not already have one. |
| DetermineNodeConnections(string[]) | Finds and collates every jump in every node. |
| ExtractStringBlocks(IEnumerable | Gets the collection of contiguous runs of lines in the provided nodes. Each run of lines is guaranteed to run to completion once entered. |
| GenerateYarnFileWithDeclarations(IEnumerable<Yarn.Compiler.Declaration>,string,IEnumerable | Generates a Yarn script that contains a node that declares variables. |
| GetCompiledCodeAsString(Program,Library?,CompilationResult?) | Gets a string containing a representation of the compiled bytecode for a Program . |
| GetRange(ParserRuleContext) | Gets the range covered by a Antlr4.Runtime.ParserRuleContext in the source code. |
| GetYarnValue(IConvertible) | Returns an IYarnValue representation of the provided value. |
| ParseSource(string) | Parses a string of Yarn source code, and produces a FileParseResult and (if there were any problems) a collection of diagnostics. |
| ParseSourceText(string,string) | Parses a string of Yarn source code, and produces a FileParseResult . |
| TagLines(string,ICollection | Given Yarn source code, adds line tags to the ends of all lines that need one and do not already have one. |
| TryGetNodeTitle(string?,YarnSpinnerParser.NodeContext,string?,string?,string?,string?) | Gets the title for a node as defined in the source code, along with its unique title (which may be different to the source title.) |