Generates a Yarn script that contains a node that declares variables.
public static string GenerateYarnFileWithDeclarations(
string title = "Program",
IEnumerable<string> tags = null,
IDictionary<string, string> headers = null)
This method is intended to be called by tools that let the user manage variable declarations. Such tools can read the existing variable declarations in from a script (by compiling the script with the CompilationType value set to DeclarationsOnly ), allow the user to make changes, and then write the changes to disk by calling this method and saving the results.
A string containing a Yarn script that declares the specified variables.