public EventBeanUpdateItemForgeWExpressions(
     CodegenExpression rhsExpression,
     EventBeanUpdateItemArrayExpressions optionalArrayExpressions)
 {
     RhsExpression = rhsExpression;
     OptionalArrayExpressions = optionalArrayExpressions;
 }
Esempio n. 2
0
        public EventBeanUpdateItemForgeWExpressions ToExpression(
            Type type,
            CodegenMethodScope parent,
            ExprForgeCodegenSymbol symbols,
            CodegenClassScope classScope)
        {
            var rhs = Expression.EvaluateCodegen(type, parent, symbols, classScope);
            EventBeanUpdateItemArrayExpressions arrayExpressions = null;
            if (OptionalArray != null) {
                arrayExpressions = OptionalArray.GetArrayExpressions(parent, symbols, classScope);
            }

            return new EventBeanUpdateItemForgeWExpressions(rhs, arrayExpressions);
        }