public ScriptSwitchStatement(AstNodeArgs args) : base(args) { _cases = new List<ScriptSwitchCaseStatement>(); foreach (ScriptSwitchCaseStatement caseStatement in ChildNodes[0].ChildNodes) { _cases.Add(caseStatement); } if (ChildNodes.Count == 2) _defaultCase = ChildNodes[1] as ScriptSwitchDefaultStatement; }
public ScriptSwitchStatement(AstNodeArgs args) : base(args) { _cases = new List <ScriptSwitchCaseStatement>(); foreach (ScriptSwitchCaseStatement caseStatement in ChildNodes[0].ChildNodes) { _cases.Add(caseStatement); } if (ChildNodes.Count == 2) { _defaultCase = ChildNodes[1] as ScriptSwitchDefaultStatement; } }