public void SetType(PSwitchCaseType node) { if (_type_ != null) { _type_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _type_ = node; }
internal override void RemoveChild(Node child) { if (_type_ == child) { _type_ = null; return; } if (_block_ == child) { _block_ = null; return; } }
public ASwitchCaseStm( PSwitchCaseType _type_, PBlock _block_ ) { SetType(_type_); SetBlock(_block_); }