Example #1
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_initializer_param_.Contains(child))
     {
         _initializer_param_.Remove(child);
         return;
     }
     if (_body_ == child)
     {
         _body_ = null;
         return;
     }
 }
Example #2
0
        public void SetToken(TInitializer node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _token_ = node;
        }
 public virtual void CaseTInitializer(TInitializer node)
 {
     DefaultCase(node);
 }
Example #4
0
 public AInitializerDecl(
         TInitializer _token_,
         IList _initializer_param_,
         PBlock _body_
 )
 {
     SetToken(_token_);
     this._initializer_param_ = new TypedList(new InitializerParam_Cast(this));
     this._initializer_param_.Clear();
     this._initializer_param_.AddAll(_initializer_param_);
     SetBody(_body_);
 }
Example #5
0
 public override void CaseTInitializer(TInitializer node)
 {
     index = 40;
 }