public ICodeNode VisitMethodInvocationExpression(MethodInvocationExpression node)
 {
     V_0 = node.get_MethodExpression();
     if (V_0 == null)
     {
         return(null);
     }
     V_1 = V_0.get_Method() as MethodDefinition;
     if (V_1 == null)
     {
         V_2 = V_0.get_Method();
         if (V_2 != null && !String.IsNullOrEmpty(V_2.get_Name()) && V_2.get_Name().StartsWith("set_") || V_2.get_Name().StartsWith("get_") || V_2.get_Name().StartsWith("put_"))
         {
             V_1 = V_2.Resolve();
         }
     }
     if (V_1 == null || !V_1.get_IsGetter() && !V_1.get_IsSetter())
     {
         return(null);
     }
     V_3 = new PropertyReferenceExpression(node, null);
     if (V_3.get_Property() == null)
     {
         return(node);
     }
     V_4 = V_3;
     if (V_1.get_IsSetter())
     {
         V_5 = node.get_Arguments().get_Count() - 1;
         V_4 = new BinaryExpression(26, V_3, node.get_Arguments().get_Item(V_5), this.typeSystem, null, false);
     }
     return(V_4);
 }
 public override void VisitPropertyReferenceExpression(PropertyReferenceExpression node)
 {
     this.VisitPropertyReferenceExpression(node);
     if (node.get_IsIndexer())
     {
         this.CheckArguments(node.get_Property().get_Parameters(), node.get_Arguments());
     }
     return;
 }
Exemple #3
0
 public override ICodeNode VisitPropertyReferenceExpression(PropertyReferenceExpression node)
 {
     if (String.op_Equality(node.get_Property().get_Name(), "Current"))
     {
         V_0 = node.get_Target() as VariableReferenceExpression;
         if (V_0 != null && (object)V_0.get_Variable() == (object)this.enumerator)
         {
             return(new VariableReferenceExpression(this.foreachVariable, null));
         }
     }
     return(this.VisitPropertyReferenceExpression(node));
 }
Exemple #4
0
 public override void VisitPropertyReferenceExpression(PropertyReferenceExpression node)
 {
     if (String.op_Inequality(node.get_Property().get_Name(), "Current"))
     {
         V_0 = node.get_Target() as VariableReferenceExpression;
         if (V_0 != null && (object)V_0.get_Variable() == (object)this.enumerator)
         {
             this.set_IsEnumeratorUsed(true);
         }
     }
     this.VisitPropertyReferenceExpression(node);
     return;
 }
Exemple #5
0
 public override void VisitPropertyReferenceExpression(PropertyReferenceExpression node)
 {
     this.get_TypesDependingOn().UnionWith(Utilities.GetTypeReferenceTypesDepedningOn(node.get_Property().get_DeclaringType()));
     this.VisitPropertyReferenceExpression(node);
     return;
 }
 public override void VisitPropertyReferenceExpression(PropertyReferenceExpression node)
 {
     this.TrySetPendingName(node.get_Property().get_Name(), true);
     this.VisitPropertyReferenceExpression(node);
     return;
 }