public ScriptIfStatement(AstNodeArgs args)
     : base(args)
 {
     condition = (ScriptCondition)ChildNodes[1];
     statement = (ScriptStatement)ChildNodes[2];
     //Else exists
     if (ChildNodes.Count == 4 && ChildNodes[3].ChildNodes.Count == 2 && ChildNodes[3].ChildNodes[1] is ScriptStatement)
     {
         elseStatement = (ScriptStatement)ChildNodes[3].ChildNodes[1];
     }
 }
 public ScriptIfStatement(AstNodeArgs args)
     : base(args)
 {
     condition = (ScriptCondition) ChildNodes[1];
       statement = (ScriptStatement)ChildNodes[2];
       //Else exists
       if (ChildNodes.Count == 4 && ChildNodes[3].ChildNodes.Count == 2 && ChildNodes[3].ChildNodes[1] is ScriptStatement)
       {
     elseStatement = (ScriptStatement)ChildNodes[3].ChildNodes[1];
       }
 }
Exemple #3
0
 public ScriptWhileStatement(AstNodeArgs args)
     : base(args)
 {
     condition = args.ChildNodes[1] as ScriptCondition;
     statement = args.ChildNodes[2] as ScriptStatement;
 }
 public ScriptWhileStatement(AstNodeArgs args)
     : base(args)
 {
     condition = args.ChildNodes[1] as ScriptCondition;
       statement = args.ChildNodes[2] as ScriptStatement;
 }