private void ApplyTable( bool enter, CodegenExpressionRef value, CodegenMethod method, CodegenClassScope classScope) { var coercer = AggregationForgeFactorySum.GetCoercerNonBigInt(sumType); var opcode = enter ? "+" : "-"; method.Block.AssignRef(sum, Op(sum, opcode, coercer.CoerceCodegen(value, typeof(object)))); }
private void ApplyAgg( bool enter, CodegenExpressionRef value, Type valueType, CodegenMethod method) { var coercer = AggregationForgeFactorySum.GetCoercerNonBigInt(valueType); var opcode = enter ? "+" : "-"; method.Block.AssignRef(sum, Op(sum, opcode, coercer.CoerceCodegen(value, valueType))); }