Exemple #1
0
 internal override void RemoveChild(Node child)
 {
     if (_id_ == child)
     {
         _id_ = null;
         return;
     }
     if (_lparen_ == child)
     {
         _lparen_ = null;
         return;
     }
     if (_arguments_ == child)
     {
         _arguments_ = null;
         return;
     }
     if (_rparen_ == child)
     {
         _rparen_ = null;
         return;
     }
     if (_eol_ == child)
     {
         _eol_ = null;
         return;
     }
 }
Exemple #2
0
 public AMultipleArguments(
     PArgument _argument_,
     TComma _comma_,
     PArguments _arguments_
     )
 {
     SetArgument(_argument_);
     SetComma(_comma_);
     SetArguments(_arguments_);
 }
Exemple #3
0
 public AFunctioncall(
     TId _id_,
     TLparen _lparen_,
     PArguments _arguments_,
     TRparen _rparen_,
     TEol _eol_
     )
 {
     SetId(_id_);
     SetLparen(_lparen_);
     SetArguments(_arguments_);
     SetRparen(_rparen_);
     SetEol(_eol_);
 }
Exemple #4
0
 internal override void RemoveChild(Node child)
 {
     if (_argument_ == child)
     {
         _argument_ = null;
         return;
     }
     if (_comma_ == child)
     {
         _comma_ = null;
         return;
     }
     if (_arguments_ == child)
     {
         _arguments_ = null;
         return;
     }
 }
Exemple #5
0
        ArrayList New9()
        {
            ArrayList          nodeList        = new ArrayList();
            ArrayList          nodeArrayList3  = (ArrayList)Pop();
            ArrayList          nodeArrayList2  = (ArrayList)Pop();
            ArrayList          nodeArrayList1  = (ArrayList)Pop();
            PArgument          pargumentNode2  = (PArgument)nodeArrayList1[0];
            TComma             tcommaNode3     = (TComma)nodeArrayList2[0];
            PArguments         pargumentsNode4 = (PArguments)nodeArrayList3[0];
            AMultipleArguments pargumentsNode1 = new AMultipleArguments(
                pargumentNode2,
                tcommaNode3,
                pargumentsNode4
                );

            nodeList.Add(pargumentsNode1);
            return(nodeList);
        }
Exemple #6
0
        public void SetArguments(PArguments node)
        {
            if (_arguments_ != null)
            {
                _arguments_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _arguments_ = node;
        }
Exemple #7
0
        ArrayList New8()
        {
            ArrayList     nodeList           = new ArrayList();
            ArrayList     nodeArrayList5     = (ArrayList)Pop();
            ArrayList     nodeArrayList4     = (ArrayList)Pop();
            ArrayList     nodeArrayList3     = (ArrayList)Pop();
            ArrayList     nodeArrayList2     = (ArrayList)Pop();
            ArrayList     nodeArrayList1     = (ArrayList)Pop();
            TId           tidNode2           = (TId)nodeArrayList1[0];
            TLparen       tlparenNode3       = (TLparen)nodeArrayList2[0];
            PArguments    pargumentsNode4    = (PArguments)nodeArrayList3[0];
            TRparen       trparenNode5       = (TRparen)nodeArrayList4[0];
            TEol          teolNode6          = (TEol)nodeArrayList5[0];
            AFunctioncall pfunctioncallNode1 = new AFunctioncall(
                tidNode2,
                tlparenNode3,
                pargumentsNode4,
                trparenNode5,
                teolNode6
                );

            nodeList.Add(pfunctioncallNode1);
            return(nodeList);
        }