UNPKG

476 BJavaScriptView Raw
1var util = require('util');
2
3var 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
15NewExpression.prototype.normalize = function (place) {
16 this.callee.normalize(place);
17};
18
19NewExpression.prototype.transform = function (place) {
20 return place;
21};