예제 #1
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_name_.Contains(child))
     {
         _name_.Remove(child);
         return;
     }
     if (_decl_.Contains(child))
     {
         _decl_.Remove(child);
         return;
     }
     if (_end_token_ == child)
     {
         _end_token_ = null;
         return;
     }
 }
예제 #2
0
        public void SetToken(TNamespace node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _token_ = node;
        }
예제 #3
0
 public virtual void CaseTNamespace(TNamespace node)
 {
     DefaultCase(node);
 }
예제 #4
0
 public ATempNamespaceDecl(
         TNamespace _token_,
         IList _name_,
         IList _decl_,
         TRBrace _end_token_
 )
 {
     SetToken(_token_);
     this._name_ = new TypedList(new Name_Cast(this));
     this._name_.Clear();
     this._name_.AddAll(_name_);
     this._decl_ = new TypedList(new Decl_Cast(this));
     this._decl_.Clear();
     this._decl_.AddAll(_decl_);
     SetEndToken(_end_token_);
 }
예제 #5
0
 public override void CaseTNamespace(TNamespace node)
 {
     index = 20;
 }