Inheritance: GenericJsBasicNode, IJSBasicNode
示例#1
0
 public ForStmtNode(AstNodeArgs args)
     : base(args)
 {
     _assignment = (AssignStmtNode)args.ChildNodes[1];
     _upperBound = (ExpressionNode)args.ChildNodes[3];
     if (args.ChildNodes.Count == 6)
     {
         _step = int.Parse(((Token)args.ChildNodes[5]).Text, CultureInfo.InvariantCulture);
     }
     else
     {
         _step = 1;
     }
 }
示例#2
0
 public ForStmtNode(AstNodeArgs args)
     : base(args)
 {
     _assignment = (AssignStmtNode)args.ChildNodes[1];
     _upperBound = (ExpressionNode)args.ChildNodes[3];
     if (args.ChildNodes.Count == 6)
     {
         _step = int.Parse(((Token)args.ChildNodes[5]).Text, CultureInfo.InvariantCulture);
     }
     else
     {
         _step = 1;
     }
 }