Пример #1
0
 public FunctionNode(ParameterListNode parameterList, ExprNode body, GenericHandleNode handle, bool isLambda, TokenLocation location) : base(location)
 {
     ParameterList = parameterList;
     Body          = body;
     Handle        = handle;
     IsLambda      = isLambda;
 }
 public virtual Value evaluate(Context cx, ParameterListNode node)
 {
     output("<ParameterListNode position=\"" + node.pos() + "\">");
     indent_Renamed_Field++;
     for (int i = 0, size = node.items.size(); i < size; i++)
     {
         // ParameterNode param = node.items.get(i);
         ParameterNode param = (ParameterNode)node.items.get_Renamed(i);
         if (param != null)
         {
             param.evaluate(cx, this);
         }
     }
     indent_Renamed_Field--;
     output("</ParameterListNode>");
     return(null);
 }
		public virtual Value evaluate(Context cx, ParameterListNode node)
		{
			output("<ParameterListNode position=\"" + node.pos() + "\">");
			indent_Renamed_Field++;
			for (int i = 0, size = node.items.size(); i < size; i++)
			{
				// ParameterNode param = node.items.get(i);
				ParameterNode param = (ParameterNode) node.items.get_Renamed(i);
				if (param != null)
				{
					param.evaluate(cx, this);
				}
			}
			indent_Renamed_Field--;
			output("</ParameterListNode>");
			return null;
		}