Пример #1
0
 public override void VisitChildren(AstVisitor visitor)
 {
     base.VisitChildren(visitor);
     if (HasCodeBlock)
     {
         CodeBlock.Accept(visitor);
     }
 }
Пример #2
0
        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);
        }