コード例 #1
0
 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;
 }
コード例 #2
0
 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;
     }
 }