/// <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;
        }
예제 #2
0
		public virtual Object Visit(ASTReference node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}