protected virtual void VisitSwitchLabel(BoundSwitchLabel node)
 {
     if (node.Expression != null)
     {
         VisitExpression(node.Expression);
     }
 }
Exemplo n.º 2
0
 public override BoundNode VisitSwitchLabel(BoundSwitchLabel node)
 {
     this.RecordLabel(node.Label);
     return base.VisitSwitchLabel(node);
 }
Exemplo n.º 3
0
            public override BoundNode VisitSwitchLabel(BoundSwitchLabel node)
            {
                var labelClone = GetLabelClone(node.Label);

                // expressions do not contain labels or branches
                BoundExpression expressionOpt = node.ExpressionOpt;
                return node.Update(labelClone, expressionOpt, node.ConstantValueOpt);
            }