internal override void RemoveChild(Node child) { if (_token_ == child) { _token_ = null; return; } if (_type_ == child) { _type_ = null; return; } if (_args_.Contains(child)) { _args_.Remove(child); return; } }
public void SetToken(TNew 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 CaseTNew(TNew node) { DefaultCase(node); }
public ANewExp( TNew _token_, PType _type_, IList _args_ ) { SetToken(_token_); SetType(_type_); this._args_ = new TypedList(new Args_Cast(this)); this._args_.Clear(); this._args_.AddAll(_args_); }
public override void CaseTNew(TNew node) { index = 46; }