示例#1
0
        public static Expression Parse(ExpressionWalker ew, Expression left = null)
        {
            var fc = new CallExpression();

            fc.FunctionName = left ?? IdentityExpression.Parse(ew);
            fc.Arguments    = ArgumentsExpression.Parse(ew, ExpressionToken.LeftParen, ExpressionToken.RightParen, true);

            return(InteractableExpression.TryExpand(fc, ew));
        }
示例#2
0
        public static Expression Parse(ExpressionWalker ew, Expression left = null)
        {
            var ret = new IndexerCallExpression(left ?? IdentityExpression.Parse(ew), ArgumentsExpression.Parse(ew, ExpressionToken.LeftBracet, ExpressionToken.RightBracet, false));

            return(InteractableExpression.TryExpand(ret, ew));
        }