internal override void RemoveChild(Node child) { if (_token_ == child) { _token_ = null; return; } if (_condition_ == child) { _condition_ = null; return; } if (_body_ == child) { _body_ = null; return; } }
public AIfThenStm( TLParen _token_, PExp _condition_, PStm _body_ ) { SetToken(_token_); SetCondition(_condition_); SetBody(_body_); }
public void SetToken(TLParen node) { if (_token_ != null) { _token_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _token_ = node; }
internal override void RemoveChild(Node child) { if (_token_ == child) { _token_ = null; return; } if (_init_ == child) { _init_ = null; return; } if (_cond_ == child) { _cond_ = null; return; } if (_update_ == child) { _update_ = null; return; } if (_body_ == child) { _body_ = null; return; } }
public AIfThenElseStm( TLParen _token_, PExp _condition_, PStm _then_body_, PStm _else_body_ ) { SetToken(_token_); SetCondition(_condition_); SetThenBody(_then_body_); SetElseBody(_else_body_); }
public AForStm( TLParen _token_, PStm _init_, PExp _cond_, PStm _update_, PStm _body_ ) { SetToken(_token_); SetInit(_init_); SetCond(_cond_); SetUpdate(_update_); SetBody(_body_); }
internal override void RemoveChild(Node child) { if (_token_ == child) { _token_ = null; return; } if (_type_ == child) { _type_ = null; return; } if (_exp_ == child) { _exp_ = null; return; } }
public ACastExp( TLParen _token_, PType _type_, PExp _exp_ ) { SetToken(_token_); SetType(_type_); SetExp(_exp_); }
public virtual void CaseTLParen(TLParen node) { DefaultCase(node); }
public override void CaseTLParen(TLParen node) { index = 53; }