{"size": 674, "ext": "js", "max_stars_repo_path": "src/childNodeFinder/ForLoopCNF.js", "max_stars_repo_name": "paysdoc/JS-mutation-testing", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/childNodeFinder/ForLoopCNF.js", "max_issues_repo_name": "paysdoc/JS-mutation-testing", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/childNodeFinder/ForLoopCNF.js", "max_forks_repo_name": "paysdoc/JS-mutation-testing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.96, "max_line_length": 158, "alphanum_fraction": 0.6364985163}
/**
 * Finds the child nodes of a given node
 * @author Martin Koster
 * Created on 26/05/15.
 */
(function(module) {
    'use strict';

    var ChildNodeFinder = require('./ChildNodeFinder');

    var ForLoopChildNodeFinder = function(astNode) {
        ChildNodeFinder.call(this, astNode);
    };

    ForLoopChildNodeFinder.prototype.find = function() {
        return ([
            // only return the 'body' and 'init' nodes as mutating either 'test' or 'update' nodes introduce too great a risk of resulting in an infinite loop
            this._astNode.init,
            this._astNode.body
        ]);
    };

    module.exports = ForLoopChildNodeFinder;
})(module);
