Ejemplo n.º 1
0
 internal InitializerParam_Cast(AInitializerDecl obj)
 {
     this.obj = obj;
 }
            public override void CaseAInitializerDecl(AInitializerDecl node)
            {
                Name = "";
                ReturnType = "void";
                End = Start = TextPoint.FromCompilerCoords(node.GetToken().Line, node.GetToken().Pos);

                base.CaseAInitializerDecl(node);
            }
        public MethodDescription(AInitializerDecl initializer)
        {
            Parser parser = new Parser(initializer);

            Start = parser.Start;
            End = parser.End;
            ReturnType = parser.ReturnType;
            Name = parser.Name;
            Formals = parser.Formals;
            Locals = parser.Locals;
            if (initializer.Parent() != null)
                initializer.Parent().RemoveChild(initializer);
            //Decl = initializer;
            IsStatic = false;
            Position = TextPoint.FromCompilerCoords(initializer.GetToken());
        }
Ejemplo n.º 4
0
 public virtual void OutAInitializerDecl(AInitializerDecl node)
 {
     DefaultOut(node);
 }
 public Parser(AInitializerDecl start)
 {
     start.Apply(this);
 }
Ejemplo n.º 6
0
 public virtual void CaseAInitializerDecl(AInitializerDecl node)
 {
     DefaultCase(node);
 }
Ejemplo n.º 7
0
 public virtual void InAInitializerDecl(AInitializerDecl node)
 {
     DefaultIn(node);
 }
Ejemplo n.º 8
0
 public override void CaseAInitializerDecl(AInitializerDecl node)
 {
     InAInitializerDecl(node);
     if (node.GetBody() != null)
     {
         node.GetBody().Apply(this);
     }
     {
         Object[] temp = new Object[node.GetInitializerParam().Count];
         node.GetInitializerParam().CopyTo(temp, 0);
         for (int i = temp.Length - 1; i >= 0; i--)
         {
             ((PInitializerParam)temp[i]).Apply(this);
         }
     }
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     OutAInitializerDecl(node);
 }
Ejemplo n.º 9
0
 ArrayList New87()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TypedList listNode4 = new TypedList();
     TInitializer tinitializerNode2 = (TInitializer)nodeArrayList1[0];
     TypedList listNode3 = (TypedList)nodeArrayList2[0];
     if ( listNode3 != null )
     {
     listNode4.AddAll(listNode3);
     }
     PBlock pblockNode5 = (PBlock)nodeArrayList3[0];
     AInitializerDecl pdeclNode1 = new AInitializerDecl (
       tinitializerNode2,
       listNode4,
       pblockNode5
     );
     nodeList.Add(pdeclNode1);
     return nodeList;
 }
 public override void OutAInitializerDecl(AInitializerDecl node)
 {
     MethodDescription method = new MethodDescription(node);
     Methods.Add(method);
 }