public static JsSwitchSection Section(params JsSwitchLabel[] caseLabels) { var switchSection = new JsSwitchSection(); foreach (var caseLabel in caseLabels) { switchSection.Labels.Add(caseLabel); } return(switchSection); }
public static JsSwitchSection Statements(this JsSwitchSection section, params JsStatement[] statements) { section.Statements.AddRange(statements); return(section); }
public static JsSwitchSection Statement(this JsSwitchSection section, JsStatement statement) { section.Statements.Add(statement); return(section); }