protected virtual void _visit( JsSwitchSection node ) { throw new NotImplementedException( "JsSwitchSection" ); }
/***************************************************************************************************************************/ /**************************************** Switch Statement Utilities *******************************************************/ /***************************************************************************************************************************/ public static JsSwitchSection getJsSwitchSection(string label, bool isDefault = false) { JsSwitchSection result = new JsSwitchSection(); result.Labels = new List<JsSwitchLabel>(); result.Labels.Add(getJsSwitchLabel(label, isDefault)); return result; }
protected override void _visit( JsSwitchSection node ) { if (node != null) { foreach ( JsSwitchLabel label in node.Labels) { visit( label ); } foreach ( JsStatement statement in node.Statements ) { visit( statement ); } } }
void _Visit(JsSwitchSection node) { VisitEach(node.Labels); VisitEach(node.Statements); }