/// <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 System.Object visit(ASTReference node, System.Object data) {
	    /*
	    *  see if there is an override value for this
	    *  reference
	    */
	    System.String override_Renamed = (System.String) argmap[node.literal().Substring(1)];

	    /*
	    *  if so, set in the node
	    */
	    if (override_Renamed != null) {
		node.Literal = override_Renamed;
	    }

	    /*
	    *  feed the children...
	    */
	    data = node.childrenAccept(this, data);

	    return data;
	}
예제 #2
0
	public virtual System.Object visit(ASTReference node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}