internal override void RemoveChild(Node child) { if (_visibility_modifier_ == child) { _visibility_modifier_ = null; return; } if (_trigger_ == child) { _trigger_ = null; return; } if (_static_ == child) { _static_ = null; return; } if (_native_ == child) { _native_ = null; return; } if (_inline_ == child) { _inline_ = null; return; } if (_delegate_ == child) { _delegate_ = null; return; } if (_return_type_ == child) { _return_type_ = null; return; } if (_name_ == child) { _name_ = null; return; } if (_formals_.Contains(child)) { _formals_.Remove(child); return; } if (_block_ == child) { _block_ = null; return; } }
public void SetTrigger(TTrigger node) { if (_trigger_ != null) { _trigger_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _trigger_ = node; }
public virtual void CaseTTrigger(TTrigger node) { DefaultCase(node); }
public AMethodDecl( PVisibilityModifier _visibility_modifier_, TTrigger _trigger_, TStatic _static_, TNative _native_, TInline _inline_, TDelegate _delegate_, PType _return_type_, TIdentifier _name_, IList _formals_, PBlock _block_ ) { SetVisibilityModifier(_visibility_modifier_); SetTrigger(_trigger_); SetStatic(_static_); SetNative(_native_); SetInline(_inline_); SetDelegate(_delegate_); SetReturnType(_return_type_); SetName(_name_); this._formals_ = new TypedList(new Formals_Cast(this)); this._formals_.Clear(); this._formals_.AddAll(_formals_); SetBlock(_block_); }
public override void CaseTTrigger(TTrigger node) { index = 16; }