1 | var ReturnStatement = module.exports = function(argument) {
|
2 | this.type = 'ReturnStatement';
|
3 | this.argument = argument;
|
4 | this.async = false;
|
5 | };
|
6 |
|
7 | ReturnStatement.prototype.normalize = function (place) {
|
8 | if (this.argument !== null) {
|
9 | this.argument.normalize(place);
|
10 | }
|
11 | place.push(this);
|
12 | return place;
|
13 | };
|
14 |
|
15 | ReturnStatement.prototype.transform = function (place) {
|
16 | place.push(this);
|
17 | if (this.argument !== null) {
|
18 | place = this.argument.transform(place);
|
19 | }
|
20 | return place;
|
21 | };
|