Exemple #1
0
        protected internal override void VisitCall(Call inst)
        {
            var expr = EarlyExpressionTransforms.HandleCall(inst, context);

            if (expr != null)
            {
                // The resulting expression may trigger further rules, so continue visiting the replacement:
                expr.AcceptVisitor(this);
            }
            else
            {
                base.VisitCall(inst);
                TransformAssignment.HandleCallCompoundAssign(inst, context);
            }
        }
Exemple #2
0
 protected internal override void VisitCallVirt(CallVirt inst)
 {
     base.VisitCallVirt(inst);
     TransformAssignment.HandleCallCompoundAssign(inst, context);
 }