protected internal virtual Expression VisitSwitch(SwitchCSharpStatement node) => node.Update( Visit(node.SwitchValue), VisitLabelTarget(node.BreakLabel), VisitAndConvert(node.Variables, nameof(VisitSwitch)), Visit(node.Cases, VisitSwitchCase) );
protected internal override Expression VisitSwitch(SwitchCSharpStatement node) { var args = new List <object>(); args.Add(new XElement(nameof(node.SwitchValue), Visit(node.SwitchValue))); if (node.Variables.Count > 0) { args.Add(Visit(nameof(node.Variables), node.Variables)); } args.Add(Visit(nameof(node.Cases), node.Cases, Visit)); args.Add(new XElement(nameof(node.BreakLabel), _parent.GetDebugView(node.BreakLabel))); return(Push(node, args)); }
protected internal override Expression VisitSwitch(SwitchCSharpStatement node) { // NB: Nested switch statements end the reach of "goto case" and "goto default" statements. return(node); }
public SwitchCSharpStatementProxy(SwitchCSharpStatement node) { _node = node; }
protected internal virtual Expression VisitSwitch(SwitchCSharpStatement node) { return node.Update(Visit(node.SwitchValue), VisitLabelTarget(node.BreakLabel), VisitAndConvert(node.Variables, nameof(VisitSwitch)), Visit(node.Cases, VisitSwitchCase)); }
protected internal override Expression VisitSwitch(SwitchCSharpStatement node) { // NB: Nested switch statements end the reach of "goto case" and "goto default" statements. return node; }