Beispiel #1
0
 protected internal override void VisitLdObj(LdObj inst)
 {
     base.VisitLdObj(inst);
     EarlyExpressionTransforms.AddressOfLdLocToLdLoca(inst, context);
     if (EarlyExpressionTransforms.LdObjToLdLoc(inst, context))
     {
         return;
     }
     if (TransformDecimalFieldToConstant(inst, out LdcDecimal decimalConstant))
     {
         context.Step("TransformDecimalFieldToConstant", inst);
         inst.ReplaceWith(decimalConstant);
         return;
     }
 }
Beispiel #2
0
 protected internal override void VisitLdObj(LdObj inst)
 {
     base.VisitLdObj(inst);
     EarlyExpressionTransforms.LdObjToLdLoc(inst, context);
 }