1 | var ExpressionStatement = module.exports = function(expression) {
|
2 | this.type = 'ExpressionStatement';
|
3 | this.expression = expression;
|
4 | };
|
5 |
|
6 | ExpressionStatement.prototype.normalize = function (place) {
|
7 | this.expression.normalize(place);
|
8 | place.push(this);
|
9 | };
|
10 |
|
11 | ExpressionStatement.prototype.transform = function (place) {
|
12 | var newPlace = this.expression.transform(place);
|
13 | if (this.expression.async) {
|
14 | this.async = true;
|
15 | }
|
16 | place.push(this);
|
17 | return newPlace;
|
18 | };
|