Esempio n. 1
0
        public static JsSwitchSection Section(params JsSwitchLabel[] caseLabels)
        {
            var switchSection = new JsSwitchSection();

            foreach (var caseLabel in caseLabels)
            {
                switchSection.Labels.Add(caseLabel);
            }
            return(switchSection);
        }
Esempio n. 2
0
 public static JsSwitchSection Statements(this JsSwitchSection section, params JsStatement[] statements)
 {
     section.Statements.AddRange(statements);
     return(section);
 }
Esempio n. 3
0
 public static JsSwitchSection Statement(this JsSwitchSection section, JsStatement statement)
 {
     section.Statements.Add(statement);
     return(section);
 }