/*!
* Copyright (C) 2017 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
"use strict";
var Statement = require('./statement');
var KIND = 'for';
/**
* Defines a for iterator
* @constructor For
* @extends {Statement}
* @property {Expression[]} init
* @property {Expression[]} test
* @property {Expression[]} increment
* @property {Statement} body
* @property {boolean} shortForm
* @see http://php.net/manual/en/control-structures.for.php
*/
var For = Statement.extends(function For(init, test, increment, body, shortForm, location) {
Statement.apply(this, [KIND, location]);
this.init = init;
this.test = test;
this.increment = increment;
this.shortForm = shortForm;
this.body = body;
});
module.exports = For;
|