public virtual Object Visit(ASTIdentifier node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Exemple #2
0
		/// <summary> This method corresponds to variable
		/// references in Velocity templates.
		/// The following are examples of variable
		/// references that may be found in a
		/// template:
		/// *
		/// $foo
		/// $bar
		/// *
		/// </summary>
		public void Identifier()
		{
			/*@bgen(jjtree) Identifier */
			ASTIdentifier jjtn000 = new ASTIdentifier(this, ParserTreeConstants.IDENTIFIER);
			nodeTree.OpenNodeScope(jjtn000);
			try
			{
				ConsumeToken(ParserConstants.IDENTIFIER);
			}
			finally
			{
				nodeTree.CloseNodeScope(jjtn000, true);
			}
		}
		/// <summary>Display an ASTIdentifier node
		/// </summary>
		public override Object Visit(ASTIdentifier node, Object data)
		{
			return ShowNode(node, data);
		}