Compiler
public static class CompilerInherits from System.Object
#Methods
#Compile(CompilationJob)
public static CompilationResult Compile(CompilationJob compilationJob)Parameters
compilationJobYarn.Compiler.CompilationJobThe compilation job to perform.
Returns CompilationResult: The results of the compilation.
See also
#FlattenParseTree(IParseTree)
IParseTree objects by
recursively visiting their children, and converting them into a
flat System.Collections.Generic.IEnumerable`1.public static IEnumerable<IParseTree> FlattenParseTree(IParseTree node)Parameters
nodeIParseTreeThe root node to begin work from.
Returns IEnumerable: An System.Collections.Generic.IEnumerable`1 that contains a
flattened version of the hierarchy rooted at node.
#GetDocumentComments(CommonTokenStream, ParserRuleContext, bool)
context, or are on the same line as
context.public static string? GetDocumentComments(CommonTokenStream tokens, ParserRuleContext context, bool allowCommentsAfter = true)Parameters
tokensCommonTokenStreamThe token stream to search.contextParserRuleContextThe parser rule context to get documentation comments for.allowCommentsAfterboolIf true, this method will search for documentation comments that come aftercontext's last token and are on the same line.
Returns String: The text of the documentation comments, or null if no documentation comments were
present.
///), and
are used to describe variable declarations. If documentation
comments precede a declaration (that is, they're not on the same
line as the declaration), then they may span multiple lines, as long
as each line begins with a triple-slash.#GetLineIDForNodeName(string)
public static string GetLineIDForNodeName(string name)Parameters
namestringThe name of the node
Returns String: line id for the raw text node
Generated from Yarn Spinner for Unity 3.3.