Method in Utility
Parses a string of Yarn source code, and produces a FileParseResult and (if there were any problems) a collection of diagnostics.
public static (FileParseResult, IEnumerable<Diagnostic>) ParseSource(string source)string source
The source code to parse.
A tuple containing a that stores the parse tree and tokens, and a collection of objects that describe problems in the source code.