示例#1
0
 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))));
 }
示例#2
0
 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)));
 }