public GlobalDefinitions(Parser yyp, GlobalVariableDeclaration gvd) : base(((LSLSyntax )yyp)) { kids.Add(gvd); }
public GlobalDefinitions(Parser yyp, GlobalDefinitions gd, GlobalVariableDeclaration gvd) : base(((LSLSyntax )yyp)) { while (0 < gd.kids.Count) kids.Add(gd.kids.Pop()); kids.Add(gvd); }
/// <summary> /// Generates the code for a GlobalVariableDeclaration node. /// </summary> /// <param name="gv">The GlobalVariableDeclaration node.</param> /// <returns>String containing C# code for GlobalVariableDeclaration gv.</returns> private string GenerateGlobalVariableDeclaration(GlobalVariableDeclaration gv) { string retstr = String.Empty; foreach (SYMBOL s in gv.kids) { retstr += Indent(); retstr += GenerateNode(s); retstr += GenerateLine(";"); } return retstr; }