UNPKG

497 BJavaScriptView Raw
1var AssignmentExpression = module.exports = function(operator, left, right) {
2 this.type = 'AssignmentExpression',
3 this.operator = operator;
4 this.left = left;
5 this.right = right;
6 this.async = false;
7};
8
9AssignmentExpression.prototype.normalize = function () {
10 this.left.normalize();
11 this.right.normalize();
12};
13
14AssignmentExpression.prototype.transform = function (place) {
15 place = this.right.transform(place);
16 if (this.right.async) {
17 this.async = true;
18 }
19 return place;
20};