public override void VisitChildren(AstVisitor visitor) { base.VisitChildren(visitor); if (HasCodeBlock) { CodeBlock.Accept(visitor); } }
public StackPanel AddVisibleIfTrue(QSExpression condition, CodeBlock code) { StackPanel panel = new StackPanel(); panel.Children.Add((UIElement)code.Accept(this)); this._conditionList.Add(new Tuple <QSExpression, UIElement>(condition, panel)); return(panel); }