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; } }
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; }
public virtual void CaseTNamespace(TNamespace node) { DefaultCase(node); }
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_); }
public override void CaseTNamespace(TNamespace node) { index = 20; }