public InvokeStm(AAsyncInvokeStm node)
 {
     Node = node;
     if (node.GetName() is AAmbiguousNameLvalue)
     {
         AAmbiguousNameLvalue ambigious = (AAmbiguousNameLvalue)node.GetName();
         AAName name = (AAName)ambigious.GetAmbiguous();
         Name = (TIdentifier)name.GetIdentifier()[name.GetIdentifier().Count - 1];
         name.GetIdentifier().RemoveAt(name.GetIdentifier().Count - 1);
         if (name.GetIdentifier().Count == 0)
             Base = null;
         else
             Base = name;
     }
     else
     {
         AStructLvalue lvalue = (AStructLvalue)node.GetName();
         Name = lvalue.GetName();
         Base = lvalue.GetReceiver();
     }
 }
Example #2
0
 internal Args_Cast(AAsyncInvokeStm obj)
 {
     this.obj = obj;
 }
 public virtual void OutAAsyncInvokeStm(AAsyncInvokeStm node)
 {
     DefaultOut(node);
 }
 public virtual void InAAsyncInvokeStm(AAsyncInvokeStm node)
 {
     DefaultIn(node);
 }
 public virtual void CaseAAsyncInvokeStm(AAsyncInvokeStm node)
 {
     DefaultCase(node);
 }
 public override void CaseAAsyncInvokeStm(AAsyncInvokeStm node)
 {
     InAAsyncInvokeStm(node);
     {
         Object[] temp = new Object[node.GetArgs().Count];
         node.GetArgs().CopyTo(temp, 0);
         for (int i = temp.Length - 1; i >= 0; i--)
         {
             ((PExp)temp[i]).Apply(this);
         }
     }
     if (node.GetName() != null)
     {
         node.GetName().Apply(this);
     }
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     OutAAsyncInvokeStm(node);
 }
 public override void OutAAsyncInvokeStm(AAsyncInvokeStm node)
 {
     MakeInvoke(new InvokeStm(node));
     base.OutAAsyncInvokeStm(node);
 }
Example #8
0
 ArrayList New286()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList8 = (ArrayList) Pop();
     ArrayList nodeArrayList7 = (ArrayList) Pop();
     ArrayList nodeArrayList6 = (ArrayList) Pop();
     ArrayList nodeArrayList5 = (ArrayList) Pop();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TypedList listNode5 = new TypedList();
     TAsyncInvoke tasyncinvokeNode2 = (TAsyncInvoke)nodeArrayList1[0];
     PLvalue plvalueNode3 = (PLvalue)nodeArrayList3[0];
     TypedList listNode4 = (TypedList)nodeArrayList6[0];
     if ( listNode4 != null )
     {
     listNode5.AddAll(listNode4);
     }
     AAsyncInvokeStm pstmNode1 = new AAsyncInvokeStm (
       tasyncinvokeNode2,
       plvalueNode3,
       listNode5
     );
     nodeList.Add(pstmNode1);
     return nodeList;
 }