public override object Visit(ASTReference node, object data) { string text = (string)this.argmap[node.Literal.Substring(1)]; if (text != null) { node.SetLiteral(text); } data = node.ChildrenAccept(this, data); return(data); }
/// <summary> /// Visitor method - if the literal is right, will /// set the literal in the ASTReference node /// </summary> /// <param name="node">ASTReference to work on</param> /// <param name="data">Object to pass down from caller</param> public override Object Visit(ASTReference node, Object data) { // see if there is an override value for this // reference String overrideVal = (String)argumentMap[node.Literal.Substring(1)]; // if so, set in the node if (overrideVal != null) { node.SetLiteral(overrideVal); } // feed the children... data = node.ChildrenAccept(this, data); return(data); }
public virtual Object Visit(ASTReference node, Object data) { data = node.ChildrenAccept(this, data); return(data); }