Esempio n. 1
0
        protected virtual void VisitCaseExpression(BoundCaseExpression node)
        {
            foreach (var caseLabel in node.CaseLabels)
            {
                VisitExpression(caseLabel.Condition);
                VisitExpression(caseLabel.ThenExpression);
            }

            if (node.ElseExpression != null)
            {
                VisitExpression(node.ElseExpression);
            }
        }
Esempio n. 2
0
 protected virtual BoundExpression RewriteCaseExpression(BoundCaseExpression node)
 {
     return(node.Update(RewriteCaseLabels(node.CaseLabels),
                        RewriteExpression(node.ElseExpression)));
 }