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