protected override IClientModel VisitConditionalNode(ConditionalNode node) { var result = this.VisitExpressionNode(node.Expression); _clientContext.BeginIf(result); this.VisitBlockNode(node.TrueBlock); if (node.FalseBlock != null) { _clientContext.ElseIf(); this.VisitBlockNode(node.FalseBlock); } _clientContext.EndIf(); return(null); }
public void EndIf() { _adaptee.EndIf(); }