1 | var util = require('util');
|
2 |
|
3 | var NewExpression = module.exports = function(callee, args) {
|
4 | this.type = 'NewExpression';
|
5 | this.callee = callee;
|
6 | this.arguments = args;
|
7 | if (!this.arguments) {
|
8 | this.arguments = [];
|
9 | }
|
10 | if (!util.isArray(this.arguments)) {
|
11 | this.arguments = [this.arguments];
|
12 | }
|
13 | };
|
14 |
|
15 | NewExpression.prototype.normalize = function (place) {
|
16 | this.callee.normalize(place);
|
17 | };
|
18 |
|
19 | NewExpression.prototype.transform = function (place) {
|
20 | return place;
|
21 | };
|