예제 #1
0
	// Parse an argument list.
	private JNode ArgumentList()
			{
				JNode args, arg;
				if(token == JSToken.RightParen)
				{
						return null;
				}
				args = AssignmentExpression(false);
				while(token == JSToken.Comma)
				{
					NextToken();
					arg = AssignmentExpression(false);
					args = new JArgList(Context.BuildRange
											(args.context, arg.context),
										args, arg);
				}
				return args;
			}
예제 #2
0
	// Parse an argument list.
	private JNode Arguments()
			{
				if(token == JSToken.RightParen)
				{
					return null;
				}
				JNode expr = AssignmentExpression(false);
				JNode expr2;
				while(token == JSToken.Comma)
				{
					NextToken();
					expr2 = AssignmentExpression(false);
					expr = new JArgList(Context.BuildRange
										  (expr.context, expr2.context),
										expr, expr2);
				}
				return expr;
			}