UNPKG

472 BJavaScriptView Raw
1var ExpressionStatement = module.exports = function(expression) {
2 this.type = 'ExpressionStatement';
3 this.expression = expression;
4};
5
6ExpressionStatement.prototype.normalize = function (place) {
7 this.expression.normalize(place);
8 place.push(this);
9};
10
11ExpressionStatement.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};