public virtual object Visit(SwitchSection switchSection, object data) { foreach (CaseLabel label in switchSection.SwitchLabels) { if (label.Label != null) { label.Label.AcceptVisitor(this, data); } } return switchSection.AcceptChildren(this, data); }
void SwitchSection( #line 1662 "cs.ATG" out Statement stmt) { #line 1664 "cs.ATG" SwitchSection switchSection = new SwitchSection(); Expression expr; SwitchLabel( #line 1668 "cs.ATG" out expr); #line 1668 "cs.ATG" switchSection.SwitchLabels.Add(expr); while (la.kind == 54 || la.kind == 62) { SwitchLabel( #line 1668 "cs.ATG" out expr); #line 1668 "cs.ATG" switchSection.SwitchLabels.Add(expr); } #line 1669 "cs.ATG" compilationUnit.BlockStart(switchSection); Statement(); while (StartOf(20)) { Statement(); } #line 1672 "cs.ATG" compilationUnit.BlockEnd(); stmt = switchSection; }