internal override void RemoveChild(Node child) { if (_visibility_modifier_ == child) { _visibility_modifier_ = null; return; } if (_static_ == child) { _static_ = null; return; } if (_return_type_ == child) { _return_type_ = null; return; } if (_token_ == child) { _token_ = null; return; } if (_operator_ == child) { _operator_ = null; return; } if (_formals_.Contains(child)) { _formals_.Remove(child); return; } if (_block_ == child) { _block_ = null; return; } }
public void SetToken(TOperator 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 CaseTOperator(TOperator node) { DefaultCase(node); }
public AOperatorDecl( PVisibilityModifier _visibility_modifier_, TStatic _static_, PType _return_type_, TOperator _token_, PBinop _operator_, IList _formals_, PBlock _block_ ) { SetVisibilityModifier(_visibility_modifier_); SetStatic(_static_); SetReturnType(_return_type_); SetToken(_token_); SetOperator(_operator_); this._formals_ = new TypedList(new Formals_Cast(this)); this._formals_.Clear(); this._formals_.AddAll(_formals_); SetBlock(_block_); }
public override void CaseTOperator(TOperator node) { index = 38; }