public void AddVariableDecl(VariableDeclNode VariableDecl) { if (VariableDecl != null) { this.variableDeclList.Add(VariableDecl); } }
public override void Visit(VariableDeclNode node) { node.identifier.Accept(this); node.type.Accept(this); }
public void AddVariableDecl(VariableDeclNode VariableDecl) { if(VariableDecl != null) this.variableDeclList.Add(VariableDecl); }
public virtual void Visit(VariableDeclNode node) { node.type.Accept(this); node.identifier.Accept(this); }
public override void Visit(VariableDeclNode node) { Console.WriteLine(this.indentation + "Variable <Identifier: " + node.identifier.name + ">"); indentation = indentation + " "; Console.WriteLine(this.indentation + "Type: " + node.type.toString()); indentation = indentation.Substring(0, indentation.Length - 3); }