1 | var ForInStatement = module.exports = function(left, right, body, each) {
|
2 | this.type = 'ForInStatement';
|
3 | this.left = left;
|
4 | this.right = right;
|
5 | this.body = body;
|
6 | this.each = each;
|
7 | this.async = false;
|
8 | };
|
9 |
|
10 | ForInStatement.prototype.normalize = function (place) {
|
11 | this.left.normalize(place);
|
12 | if (this.left.type === 'VariableDeclaration') {
|
13 | this.left.forIn = true;
|
14 | }
|
15 | this.right.normalize(place);
|
16 | this.body.normalize(place);
|
17 | place.push(this);
|
18 | };
|
19 |
|
20 | ForInStatement.prototype.transform = function (place) {
|
21 |
|
22 | place.push(this);
|
23 | return place;
|
24 | };
|