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
 internal override void RemoveChild(Node child)
 {
     if (_id_ == child)
     {
         _id_ = null;
         return;
     }
 }
Exemple #3
0
 public ADeclarestmt(
     TId _typename_,
     TId _varname_,
     TEol _eol_
     )
 {
     SetTypename(_typename_);
     SetVarname(_varname_);
     SetEol(_eol_);
 }
Exemple #4
0
 public AAssignstmt(
     TId _id_,
     TAssign _assign_,
     PExpr _expr_,
     TEol _eol_
     )
 {
     SetId(_id_);
     SetAssign(_assign_);
     SetExpr(_expr_);
     SetEol(_eol_);
 }
Exemple #5
0
 public AFunctioncall(
     TId _id_,
     TLparen _lparen_,
     PArguments _arguments_,
     TRparen _rparen_,
     TEol _eol_
     )
 {
     SetId(_id_);
     SetLparen(_lparen_);
     SetArguments(_arguments_);
     SetRparen(_rparen_);
     SetEol(_eol_);
 }
Exemple #6
0
 internal override void RemoveChild(Node child)
 {
     if (_typename_ == child)
     {
         _typename_ = null;
         return;
     }
     if (_varname_ == child)
     {
         _varname_ = null;
         return;
     }
     if (_eol_ == child)
     {
         _eol_ = null;
         return;
     }
 }
Exemple #7
0
        public void SetId(TId node)
        {
            if (_id_ != null)
            {
                _id_.Parent(null);
            }

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

                node.Parent(this);
            }

            _id_ = node;
        }
Exemple #8
0
        public void SetVarname(TId node)
        {
            if (_varname_ != null)
            {
                _varname_.Parent(null);
            }

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

                node.Parent(this);
            }

            _varname_ = node;
        }
Exemple #9
0
 internal override void RemoveChild(Node child)
 {
     if (_id_ == child)
     {
         _id_ = null;
         return;
     }
     if (_assign_ == child)
     {
         _assign_ = null;
         return;
     }
     if (_expr_ == child)
     {
         _expr_ = null;
         return;
     }
     if (_eol_ == child)
     {
         _eol_ = null;
         return;
     }
 }
Exemple #10
0
 public AVariableOperand(
     TId _id_
     )
 {
     SetId(_id_);
 }