1 | var __extends = (this && this.__extends) || (function () {
|
2 | var extendStatics = Object.setPrototypeOf ||
|
3 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
4 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
5 | return function (d, b) {
|
6 | extendStatics(d, b);
|
7 | function __() { this.constructor = d; }
|
8 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
9 | };
|
10 | })();
|
11 | var Node = (function () {
|
12 | function Node(type, line, column, start, end, raw) {
|
13 | this.type = type;
|
14 | this.line = line;
|
15 | this.column = column;
|
16 | this.start = start;
|
17 | this.end = end;
|
18 | this.raw = raw;
|
19 | this.parentNode = null;
|
20 | }
|
21 | Node.prototype.getChildren = function () {
|
22 | var children = [];
|
23 | for (var _i = 0, _a = this.getChildFields(); _i < _a.length; _i++) {
|
24 | var childField = _a[_i];
|
25 | if (Array.isArray(childField)) {
|
26 | children.push.apply(children, childField.filter(function (node) { return node !== null; }));
|
27 | }
|
28 | else if (childField) {
|
29 | children.push(childField);
|
30 | }
|
31 | }
|
32 | return children;
|
33 | };
|
34 | Node.prototype.getChildFields = function () {
|
35 | var _this = this;
|
36 | return this.getChildNames().map(function (name) { return _this[name]; });
|
37 | };
|
38 | return Node;
|
39 | }());
|
40 | export { Node };
|
41 | var Identifier = (function (_super) {
|
42 | __extends(Identifier, _super);
|
43 | function Identifier(line, column, start, end, raw, data) {
|
44 | var _this = _super.call(this, 'Identifier', line, column, start, end, raw) || this;
|
45 | _this.data = data;
|
46 | return _this;
|
47 | }
|
48 | Identifier.prototype.getChildNames = function () {
|
49 | return [];
|
50 | };
|
51 | return Identifier;
|
52 | }(Node));
|
53 | export { Identifier };
|
54 | var Bool = (function (_super) {
|
55 | __extends(Bool, _super);
|
56 | function Bool(line, column, start, end, raw, data) {
|
57 | var _this = _super.call(this, 'Bool', line, column, start, end, raw) || this;
|
58 | _this.data = data;
|
59 | return _this;
|
60 | }
|
61 | Bool["true"] = function () {
|
62 | return new Bool(0, 0, 0, 0, '', true);
|
63 | };
|
64 | Bool["false"] = function () {
|
65 | return new Bool(0, 0, 0, 0, '', false);
|
66 | };
|
67 | Bool.prototype.getChildNames = function () {
|
68 | return [];
|
69 | };
|
70 | return Bool;
|
71 | }(Node));
|
72 | export { Bool };
|
73 | var JavaScript = (function (_super) {
|
74 | __extends(JavaScript, _super);
|
75 | function JavaScript(line, column, start, end, raw, data) {
|
76 | var _this = _super.call(this, 'JavaScript', line, column, start, end, raw) || this;
|
77 | _this.data = data;
|
78 | return _this;
|
79 | }
|
80 | JavaScript.prototype.getChildNames = function () {
|
81 | return [];
|
82 | };
|
83 | return JavaScript;
|
84 | }(Node));
|
85 | export { JavaScript };
|
86 | var Number = (function (_super) {
|
87 | __extends(Number, _super);
|
88 | function Number(type, line, column, start, end, raw, data) {
|
89 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
90 | _this.data = data;
|
91 | return _this;
|
92 | }
|
93 | Number.prototype.getChildNames = function () {
|
94 | return [];
|
95 | };
|
96 | return Number;
|
97 | }(Node));
|
98 | export { Number };
|
99 | var Float = (function (_super) {
|
100 | __extends(Float, _super);
|
101 | function Float(line, column, start, end, raw, data) {
|
102 | return _super.call(this, 'Float', line, column, start, end, raw, data) || this;
|
103 | }
|
104 | return Float;
|
105 | }(Number));
|
106 | export { Float };
|
107 | var Int = (function (_super) {
|
108 | __extends(Int, _super);
|
109 | function Int(line, column, start, end, raw, data) {
|
110 | return _super.call(this, 'Int', line, column, start, end, raw, data) || this;
|
111 | }
|
112 | return Int;
|
113 | }(Number));
|
114 | export { Int };
|
115 | var AccessOp = (function (_super) {
|
116 | __extends(AccessOp, _super);
|
117 | function AccessOp(type, line, column, start, end, raw, expression) {
|
118 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
119 | _this.expression = expression;
|
120 | return _this;
|
121 | }
|
122 | return AccessOp;
|
123 | }(Node));
|
124 | export { AccessOp };
|
125 | var MemberAccessOp = (function (_super) {
|
126 | __extends(MemberAccessOp, _super);
|
127 | function MemberAccessOp(line, column, start, end, raw, expression, member) {
|
128 | var _this = _super.call(this, 'MemberAccessOp', line, column, start, end, raw, expression) || this;
|
129 | _this.member = member;
|
130 | return _this;
|
131 | }
|
132 | MemberAccessOp.prototype.getChildNames = function () {
|
133 | return ['expression', 'member'];
|
134 | };
|
135 | return MemberAccessOp;
|
136 | }(AccessOp));
|
137 | export { MemberAccessOp };
|
138 | var ProtoMemberAccessOp = (function (_super) {
|
139 | __extends(ProtoMemberAccessOp, _super);
|
140 | function ProtoMemberAccessOp(line, column, start, end, raw, expression) {
|
141 | return _super.call(this, 'ProtoMemberAccessOp', line, column, start, end, raw, expression) || this;
|
142 | }
|
143 | ProtoMemberAccessOp.prototype.getChildNames = function () {
|
144 | return ['expression'];
|
145 | };
|
146 | return ProtoMemberAccessOp;
|
147 | }(AccessOp));
|
148 | export { ProtoMemberAccessOp };
|
149 | var SoakedMemberAccessOp = (function (_super) {
|
150 | __extends(SoakedMemberAccessOp, _super);
|
151 | function SoakedMemberAccessOp(line, column, start, end, raw, expression, member) {
|
152 | var _this = _super.call(this, 'SoakedMemberAccessOp', line, column, start, end, raw, expression) || this;
|
153 | _this.member = member;
|
154 | return _this;
|
155 | }
|
156 | SoakedMemberAccessOp.prototype.getChildNames = function () {
|
157 | return ['expression', 'member'];
|
158 | };
|
159 | return SoakedMemberAccessOp;
|
160 | }(AccessOp));
|
161 | export { SoakedMemberAccessOp };
|
162 | var SoakedProtoMemberAccessOp = (function (_super) {
|
163 | __extends(SoakedProtoMemberAccessOp, _super);
|
164 | function SoakedProtoMemberAccessOp(line, column, start, end, raw, expression) {
|
165 | return _super.call(this, 'SoakedProtoMemberAccessOp', line, column, start, end, raw, expression) || this;
|
166 | }
|
167 | SoakedProtoMemberAccessOp.prototype.getChildNames = function () {
|
168 | return ['expression'];
|
169 | };
|
170 | return SoakedProtoMemberAccessOp;
|
171 | }(AccessOp));
|
172 | export { SoakedProtoMemberAccessOp };
|
173 | var DynamicMemberAccessOp = (function (_super) {
|
174 | __extends(DynamicMemberAccessOp, _super);
|
175 | function DynamicMemberAccessOp(line, column, start, end, raw, expression, indexingExpr) {
|
176 | var _this = _super.call(this, 'DynamicMemberAccessOp', line, column, start, end, raw, expression) || this;
|
177 | _this.indexingExpr = indexingExpr;
|
178 | return _this;
|
179 | }
|
180 | DynamicMemberAccessOp.prototype.getChildNames = function () {
|
181 | return ['expression', 'indexingExpr'];
|
182 | };
|
183 | return DynamicMemberAccessOp;
|
184 | }(AccessOp));
|
185 | export { DynamicMemberAccessOp };
|
186 | var SoakedDynamicMemberAccessOp = (function (_super) {
|
187 | __extends(SoakedDynamicMemberAccessOp, _super);
|
188 | function SoakedDynamicMemberAccessOp(line, column, start, end, raw, expression, indexingExpr) {
|
189 | var _this = _super.call(this, 'SoakedDynamicMemberAccessOp', line, column, start, end, raw, expression) || this;
|
190 | _this.indexingExpr = indexingExpr;
|
191 | return _this;
|
192 | }
|
193 | SoakedDynamicMemberAccessOp.prototype.getChildNames = function () {
|
194 | return ['expression', 'indexingExpr'];
|
195 | };
|
196 | return SoakedDynamicMemberAccessOp;
|
197 | }(AccessOp));
|
198 | export { SoakedDynamicMemberAccessOp };
|
199 | var Quasi = (function (_super) {
|
200 | __extends(Quasi, _super);
|
201 | function Quasi(line, column, start, end, raw, data) {
|
202 | var _this = _super.call(this, 'Quasi', line, column, start, end, raw) || this;
|
203 | _this.data = data;
|
204 | return _this;
|
205 | }
|
206 | Quasi.prototype.getChildNames = function () {
|
207 | return [];
|
208 | };
|
209 | return Quasi;
|
210 | }(Node));
|
211 | export { Quasi };
|
212 | var String = (function (_super) {
|
213 | __extends(String, _super);
|
214 | function String(line, column, start, end, raw, quasis, expressions) {
|
215 | var _this = _super.call(this, 'String', line, column, start, end, raw) || this;
|
216 | _this.quasis = quasis;
|
217 | _this.expressions = expressions;
|
218 | return _this;
|
219 | }
|
220 | String.prototype.getChildNames = function () {
|
221 | return ['quasis', 'expressions'];
|
222 | };
|
223 | return String;
|
224 | }(Node));
|
225 | export { String };
|
226 | var TaggedTemplateLiteral = (function (_super) {
|
227 | __extends(TaggedTemplateLiteral, _super);
|
228 | function TaggedTemplateLiteral(line, column, start, end, raw, tag, template) {
|
229 | var _this = _super.call(this, 'TaggedTemplateLiteral', line, column, start, end, raw) || this;
|
230 | _this.tag = tag;
|
231 | _this.template = template;
|
232 | return _this;
|
233 | }
|
234 | TaggedTemplateLiteral.prototype.getChildNames = function () {
|
235 | return ['tag', 'template'];
|
236 | };
|
237 | return TaggedTemplateLiteral;
|
238 | }(Node));
|
239 | export { TaggedTemplateLiteral };
|
240 | var ObjectInitialiser = (function (_super) {
|
241 | __extends(ObjectInitialiser, _super);
|
242 | function ObjectInitialiser(line, column, start, end, raw, members) {
|
243 | var _this = _super.call(this, 'ObjectInitialiser', line, column, start, end, raw) || this;
|
244 | _this.members = members;
|
245 | return _this;
|
246 | }
|
247 | ObjectInitialiser.prototype.getChildNames = function () {
|
248 | return ['members'];
|
249 | };
|
250 | return ObjectInitialiser;
|
251 | }(Node));
|
252 | export { ObjectInitialiser };
|
253 | var ObjectInitialiserMember = (function (_super) {
|
254 | __extends(ObjectInitialiserMember, _super);
|
255 | function ObjectInitialiserMember(line, column, start, end, raw, key,
|
256 | // If null, this is a shorthand initializer and the key and value are the same.
|
257 | expression) {
|
258 | var _this = _super.call(this, 'ObjectInitialiserMember', line, column, start, end, raw) || this;
|
259 | _this.key = key;
|
260 | _this.expression = expression;
|
261 | return _this;
|
262 | }
|
263 | ObjectInitialiserMember.prototype.getChildNames = function () {
|
264 | return ['key', 'expression'];
|
265 | };
|
266 | return ObjectInitialiserMember;
|
267 | }(Node));
|
268 | export { ObjectInitialiserMember };
|
269 | var Conditional = (function (_super) {
|
270 | __extends(Conditional, _super);
|
271 | function Conditional(line, column, start, end, raw, condition, consequent, alternate, isUnless) {
|
272 | var _this = _super.call(this, 'Conditional', line, column, start, end, raw) || this;
|
273 | _this.condition = condition;
|
274 | _this.consequent = consequent;
|
275 | _this.alternate = alternate;
|
276 | _this.isUnless = isUnless;
|
277 | return _this;
|
278 | }
|
279 | Conditional.prototype.getChildNames = function () {
|
280 | return ['condition', 'consequent', 'alternate'];
|
281 | };
|
282 | return Conditional;
|
283 | }(Node));
|
284 | export { Conditional };
|
285 | var Program = (function (_super) {
|
286 | __extends(Program, _super);
|
287 | function Program(line, column, start, end, raw, body, context) {
|
288 | var _this = _super.call(this, 'Program', line, column, start, end, raw) || this;
|
289 | _this.body = body;
|
290 | _this.context = context;
|
291 | return _this;
|
292 | }
|
293 | Program.prototype.getChildNames = function () {
|
294 | return ['body'];
|
295 | };
|
296 | return Program;
|
297 | }(Node));
|
298 | export { Program };
|
299 | var Block = (function (_super) {
|
300 | __extends(Block, _super);
|
301 | function Block(line, column, start, end, raw, statements, inline) {
|
302 | var _this = _super.call(this, 'Block', line, column, start, end, raw) || this;
|
303 | _this.statements = statements;
|
304 | _this.inline = inline;
|
305 | return _this;
|
306 | }
|
307 | Block.prototype.getChildNames = function () {
|
308 | return ['statements'];
|
309 | };
|
310 | Block.prototype.withInline = function (inline) {
|
311 | return new Block(this.line, this.column, this.start, this.end, this.raw, this.statements, inline);
|
312 | };
|
313 | return Block;
|
314 | }(Node));
|
315 | export { Block };
|
316 | var Loop = (function (_super) {
|
317 | __extends(Loop, _super);
|
318 | function Loop(line, column, start, end, raw, body) {
|
319 | var _this = _super.call(this, 'Loop', line, column, start, end, raw) || this;
|
320 | _this.body = body;
|
321 | return _this;
|
322 | }
|
323 | Loop.prototype.getChildNames = function () {
|
324 | return ['body'];
|
325 | };
|
326 | return Loop;
|
327 | }(Node));
|
328 | export { Loop };
|
329 | var While = (function (_super) {
|
330 | __extends(While, _super);
|
331 | function While(line, column, start, end, raw, condition, guard, body, isUntil) {
|
332 | var _this = _super.call(this, 'While', line, column, start, end, raw) || this;
|
333 | _this.condition = condition;
|
334 | _this.guard = guard;
|
335 | _this.body = body;
|
336 | _this.isUntil = isUntil;
|
337 | return _this;
|
338 | }
|
339 | While.prototype.getChildNames = function () {
|
340 | return ['condition', 'guard', 'body'];
|
341 | };
|
342 | return While;
|
343 | }(Node));
|
344 | export { While };
|
345 | var For = (function (_super) {
|
346 | __extends(For, _super);
|
347 | function For(type, line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body) {
|
348 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
349 | _this.keyAssignee = keyAssignee;
|
350 | _this.valAssignee = valAssignee;
|
351 | _this.target = target;
|
352 | _this.filter = filter;
|
353 | _this.body = body;
|
354 | return _this;
|
355 | }
|
356 | return For;
|
357 | }(Node));
|
358 | export { For };
|
359 | var ForOf = (function (_super) {
|
360 | __extends(ForOf, _super);
|
361 | function ForOf(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, isOwn) {
|
362 | var _this = _super.call(this, 'ForOf', line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body) || this;
|
363 | _this.isOwn = isOwn;
|
364 | return _this;
|
365 | }
|
366 | ForOf.prototype.getChildNames = function () {
|
367 | return ['keyAssignee', 'valAssignee', 'target', 'filter', 'body'];
|
368 | };
|
369 | return ForOf;
|
370 | }(For));
|
371 | export { ForOf };
|
372 | var ForIn = (function (_super) {
|
373 | __extends(ForIn, _super);
|
374 | function ForIn(line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body, step) {
|
375 | var _this = _super.call(this, 'ForIn', line, column, start, end, raw, keyAssignee, valAssignee, target, filter, body) || this;
|
376 | _this.step = step;
|
377 | return _this;
|
378 | }
|
379 | ForIn.prototype.getChildNames = function () {
|
380 | return ['keyAssignee', 'valAssignee', 'target', 'step', 'filter', 'body'];
|
381 | };
|
382 | return ForIn;
|
383 | }(For));
|
384 | export { ForIn };
|
385 | var ForFrom = (function (_super) {
|
386 | __extends(ForFrom, _super);
|
387 | function ForFrom(line, column, start, end, raw, valAssignee, target, filter, body) {
|
388 | return _super.call(this, 'ForFrom', line, column, start, end, raw, null , valAssignee, target, filter, body) || this;
|
389 | }
|
390 | ForFrom.prototype.getChildNames = function () {
|
391 | return ['keyAssignee', 'valAssignee', 'target', 'filter', 'body'];
|
392 | };
|
393 | return ForFrom;
|
394 | }(For));
|
395 | export { ForFrom };
|
396 | var Switch = (function (_super) {
|
397 | __extends(Switch, _super);
|
398 | function Switch(line, column, start, end, raw, expression, cases, alternate) {
|
399 | var _this = _super.call(this, 'Switch', line, column, start, end, raw) || this;
|
400 | _this.expression = expression;
|
401 | _this.cases = cases;
|
402 | _this.alternate = alternate;
|
403 | return _this;
|
404 | }
|
405 | Switch.prototype.getChildNames = function () {
|
406 | return ['expression', 'cases', 'alternate'];
|
407 | };
|
408 | return Switch;
|
409 | }(Node));
|
410 | export { Switch };
|
411 | var SwitchCase = (function (_super) {
|
412 | __extends(SwitchCase, _super);
|
413 | function SwitchCase(line, column, start, end, raw, conditions, consequent) {
|
414 | var _this = _super.call(this, 'SwitchCase', line, column, start, end, raw) || this;
|
415 | _this.conditions = conditions;
|
416 | _this.consequent = consequent;
|
417 | return _this;
|
418 | }
|
419 | SwitchCase.prototype.getChildNames = function () {
|
420 | return ['conditions', 'consequent'];
|
421 | };
|
422 | return SwitchCase;
|
423 | }(Node));
|
424 | export { SwitchCase };
|
425 | var RegexFlags = (function () {
|
426 | function RegexFlags(global, ignoreCase, multiline, unicode, sticky) {
|
427 | this.global = global;
|
428 | this.ignoreCase = ignoreCase;
|
429 | this.multiline = multiline;
|
430 | this.unicode = unicode;
|
431 | this.sticky = sticky;
|
432 | this.g = global;
|
433 | this.i = ignoreCase;
|
434 | this.m = multiline;
|
435 | this.u = unicode;
|
436 | this.y = sticky;
|
437 | }
|
438 | RegexFlags.parse = function (flags) {
|
439 | var global = false;
|
440 | var ignoreCase = false;
|
441 | var multiline = false;
|
442 | var unicode = false;
|
443 | var sticky = false;
|
444 | for (var i = 0; i < flags.length; i++) {
|
445 | switch (flags.charCodeAt(i)) {
|
446 | case 103:
|
447 | global = true;
|
448 | break;
|
449 | case 105:
|
450 | ignoreCase = true;
|
451 | break;
|
452 | case 109:
|
453 | multiline = true;
|
454 | break;
|
455 | case 117:
|
456 | unicode = true;
|
457 | break;
|
458 | case 121:
|
459 | sticky = true;
|
460 | break;
|
461 | default:
|
462 | throw new Error("invalid regular expression flags: " + flags);
|
463 | }
|
464 | }
|
465 | return new RegexFlags(global, ignoreCase, multiline, unicode, sticky);
|
466 | };
|
467 | return RegexFlags;
|
468 | }());
|
469 | export { RegexFlags };
|
470 | var Heregex = (function (_super) {
|
471 | __extends(Heregex, _super);
|
472 | function Heregex(line, column, start, end, raw, quasis, expressions, flags) {
|
473 | var _this = _super.call(this, 'Heregex', line, column, start, end, raw) || this;
|
474 | _this.quasis = quasis;
|
475 | _this.expressions = expressions;
|
476 | _this.flags = flags;
|
477 | return _this;
|
478 | }
|
479 | Heregex.prototype.getChildNames = function () {
|
480 | return ['quasis', 'expressions'];
|
481 | };
|
482 | return Heregex;
|
483 | }(Node));
|
484 | export { Heregex };
|
485 | var Null = (function (_super) {
|
486 | __extends(Null, _super);
|
487 | function Null(line, column, start, end, raw) {
|
488 | return _super.call(this, 'Null', line, column, start, end, raw) || this;
|
489 | }
|
490 | Null.prototype.getChildNames = function () {
|
491 | return [];
|
492 | };
|
493 | return Null;
|
494 | }(Node));
|
495 | export { Null };
|
496 | var Undefined = (function (_super) {
|
497 | __extends(Undefined, _super);
|
498 | function Undefined(line, column, start, end, raw) {
|
499 | return _super.call(this, 'Undefined', line, column, start, end, raw) || this;
|
500 | }
|
501 | Undefined.prototype.getChildNames = function () {
|
502 | return [];
|
503 | };
|
504 | return Undefined;
|
505 | }(Node));
|
506 | export { Undefined };
|
507 | var Regex = (function (_super) {
|
508 | __extends(Regex, _super);
|
509 | function Regex(line, column, start, end, raw, pattern, flags) {
|
510 | var _this = _super.call(this, 'Regex', line, column, start, end, raw) || this;
|
511 | _this.pattern = pattern;
|
512 | _this.flags = flags;
|
513 | return _this;
|
514 | }
|
515 | Regex.prototype.getChildNames = function () {
|
516 | return [];
|
517 | };
|
518 | return Regex;
|
519 | }(Node));
|
520 | export { Regex };
|
521 | var Return = (function (_super) {
|
522 | __extends(Return, _super);
|
523 | function Return(line, column, start, end, raw, expression) {
|
524 | var _this = _super.call(this, 'Return', line, column, start, end, raw) || this;
|
525 | _this.expression = expression;
|
526 | return _this;
|
527 | }
|
528 | Return.prototype.getChildNames = function () {
|
529 | return ['expression'];
|
530 | };
|
531 | return Return;
|
532 | }(Node));
|
533 | export { Return };
|
534 | var YieldReturn = (function (_super) {
|
535 | __extends(YieldReturn, _super);
|
536 | function YieldReturn(line, column, start, end, raw, expression) {
|
537 | var _this = _super.call(this, 'YieldReturn', line, column, start, end, raw) || this;
|
538 | _this.expression = expression;
|
539 | return _this;
|
540 | }
|
541 | YieldReturn.prototype.getChildNames = function () {
|
542 | return ['expression'];
|
543 | };
|
544 | return YieldReturn;
|
545 | }(Node));
|
546 | export { YieldReturn };
|
547 | var This = (function (_super) {
|
548 | __extends(This, _super);
|
549 | function This(line, column, start, end, raw) {
|
550 | return _super.call(this, 'This', line, column, start, end, raw) || this;
|
551 | }
|
552 | This.prototype.getChildNames = function () {
|
553 | return [];
|
554 | };
|
555 | return This;
|
556 | }(Node));
|
557 | export { This };
|
558 | var Throw = (function (_super) {
|
559 | __extends(Throw, _super);
|
560 | function Throw(line, column, start, end, raw, expression) {
|
561 | var _this = _super.call(this, 'Throw', line, column, start, end, raw) || this;
|
562 | _this.expression = expression;
|
563 | return _this;
|
564 | }
|
565 | Throw.prototype.getChildNames = function () {
|
566 | return ['expression'];
|
567 | };
|
568 | return Throw;
|
569 | }(Node));
|
570 | export { Throw };
|
571 | var ArrayInitialiser = (function (_super) {
|
572 | __extends(ArrayInitialiser, _super);
|
573 | function ArrayInitialiser(line, column, start, end, raw, members) {
|
574 | var _this = _super.call(this, 'ArrayInitialiser', line, column, start, end, raw) || this;
|
575 | _this.members = members;
|
576 | return _this;
|
577 | }
|
578 | ArrayInitialiser.prototype.getChildNames = function () {
|
579 | return ['members'];
|
580 | };
|
581 | return ArrayInitialiser;
|
582 | }(Node));
|
583 | export { ArrayInitialiser };
|
584 | var DefaultParam = (function (_super) {
|
585 | __extends(DefaultParam, _super);
|
586 | function DefaultParam(line, column, start, end, raw, param, defaultValue) {
|
587 | var _this = _super.call(this, 'DefaultParam', line, column, start, end, raw) || this;
|
588 | _this.param = param;
|
589 | _this["default"] = defaultValue;
|
590 | return _this;
|
591 | }
|
592 | DefaultParam.prototype.getChildNames = function () {
|
593 | return ['param', 'default'];
|
594 | };
|
595 | return DefaultParam;
|
596 | }(Node));
|
597 | export { DefaultParam };
|
598 | var Rest = (function (_super) {
|
599 | __extends(Rest, _super);
|
600 | function Rest(line, column, start, end, raw, expression) {
|
601 | var _this = _super.call(this, 'Rest', line, column, start, end, raw) || this;
|
602 | _this.expression = expression;
|
603 | return _this;
|
604 | }
|
605 | Rest.prototype.getChildNames = function () {
|
606 | return ['expression'];
|
607 | };
|
608 | return Rest;
|
609 | }(Node));
|
610 | export { Rest };
|
611 | var Expansion = (function (_super) {
|
612 | __extends(Expansion, _super);
|
613 | function Expansion(line, column, start, end, raw) {
|
614 | return _super.call(this, 'Expansion', line, column, start, end, raw) || this;
|
615 | }
|
616 | Expansion.prototype.getChildNames = function () {
|
617 | return [];
|
618 | };
|
619 | return Expansion;
|
620 | }(Node));
|
621 | export { Expansion };
|
622 | var Break = (function (_super) {
|
623 | __extends(Break, _super);
|
624 | function Break(line, column, start, end, raw) {
|
625 | return _super.call(this, 'Break', line, column, start, end, raw) || this;
|
626 | }
|
627 | Break.prototype.getChildNames = function () {
|
628 | return [];
|
629 | };
|
630 | return Break;
|
631 | }(Node));
|
632 | export { Break };
|
633 | var Continue = (function (_super) {
|
634 | __extends(Continue, _super);
|
635 | function Continue(line, column, start, end, raw) {
|
636 | return _super.call(this, 'Continue', line, column, start, end, raw) || this;
|
637 | }
|
638 | Continue.prototype.getChildNames = function () {
|
639 | return [];
|
640 | };
|
641 | return Continue;
|
642 | }(Node));
|
643 | export { Continue };
|
644 | var Spread = (function (_super) {
|
645 | __extends(Spread, _super);
|
646 | function Spread(line, column, start, end, raw, expression) {
|
647 | var _this = _super.call(this, 'Spread', line, column, start, end, raw) || this;
|
648 | _this.expression = expression;
|
649 | return _this;
|
650 | }
|
651 | Spread.prototype.getChildNames = function () {
|
652 | return ['expression'];
|
653 | };
|
654 | return Spread;
|
655 | }(Node));
|
656 | export { Spread };
|
657 | var Range = (function (_super) {
|
658 | __extends(Range, _super);
|
659 | function Range(line, column, start, end, raw, left, right, isInclusive) {
|
660 | var _this = _super.call(this, 'Range', line, column, start, end, raw) || this;
|
661 | _this.left = left;
|
662 | _this.right = right;
|
663 | _this.isInclusive = isInclusive;
|
664 | return _this;
|
665 | }
|
666 | Range.prototype.getChildNames = function () {
|
667 | return ['left', 'right'];
|
668 | };
|
669 | return Range;
|
670 | }(Node));
|
671 | export { Range };
|
672 | var BinaryOp = (function (_super) {
|
673 | __extends(BinaryOp, _super);
|
674 | function BinaryOp(type, line, column, start, end, raw, left, right) {
|
675 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
676 | _this.left = left;
|
677 | _this.right = right;
|
678 | return _this;
|
679 | }
|
680 | BinaryOp.prototype.getChildNames = function () {
|
681 | return ['left', 'right'];
|
682 | };
|
683 | return BinaryOp;
|
684 | }(Node));
|
685 | export { BinaryOp };
|
686 | var UnaryOp = (function (_super) {
|
687 | __extends(UnaryOp, _super);
|
688 | function UnaryOp(type, line, column, start, end, raw, expression) {
|
689 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
690 | _this.expression = expression;
|
691 | return _this;
|
692 | }
|
693 | UnaryOp.prototype.getChildNames = function () {
|
694 | return ['expression'];
|
695 | };
|
696 | return UnaryOp;
|
697 | }(Node));
|
698 | export { UnaryOp };
|
699 | var ChainedComparisonOp = (function (_super) {
|
700 | __extends(ChainedComparisonOp, _super);
|
701 | function ChainedComparisonOp(line, column, start, end, raw, operands, operators) {
|
702 | var _this = _super.call(this, 'ChainedComparisonOp', line, column, start, end, raw) || this;
|
703 | _this.operands = operands;
|
704 | _this.operators = operators;
|
705 | return _this;
|
706 | }
|
707 | ChainedComparisonOp.prototype.getChildNames = function () {
|
708 | return ['operands'];
|
709 | };
|
710 | return ChainedComparisonOp;
|
711 | }(Node));
|
712 | export { ChainedComparisonOp };
|
713 | var OperatorInfo = (function () {
|
714 | function OperatorInfo(operator, token) {
|
715 | this.operator = operator;
|
716 | this.token = token;
|
717 | }
|
718 | return OperatorInfo;
|
719 | }());
|
720 | export { OperatorInfo };
|
721 | var EQOp = (function (_super) {
|
722 | __extends(EQOp, _super);
|
723 | function EQOp(line, column, start, end, raw, left, right) {
|
724 | return _super.call(this, 'EQOp', line, column, start, end, raw, left, right) || this;
|
725 | }
|
726 | return EQOp;
|
727 | }(BinaryOp));
|
728 | export { EQOp };
|
729 | var NEQOp = (function (_super) {
|
730 | __extends(NEQOp, _super);
|
731 | function NEQOp(line, column, start, end, raw, left, right) {
|
732 | return _super.call(this, 'NEQOp', line, column, start, end, raw, left, right) || this;
|
733 | }
|
734 | return NEQOp;
|
735 | }(BinaryOp));
|
736 | export { NEQOp };
|
737 | var LTOp = (function (_super) {
|
738 | __extends(LTOp, _super);
|
739 | function LTOp(line, column, start, end, raw, left, right) {
|
740 | return _super.call(this, 'LTOp', line, column, start, end, raw, left, right) || this;
|
741 | }
|
742 | return LTOp;
|
743 | }(BinaryOp));
|
744 | export { LTOp };
|
745 | var LTEOp = (function (_super) {
|
746 | __extends(LTEOp, _super);
|
747 | function LTEOp(line, column, start, end, raw, left, right) {
|
748 | return _super.call(this, 'LTEOp', line, column, start, end, raw, left, right) || this;
|
749 | }
|
750 | return LTEOp;
|
751 | }(BinaryOp));
|
752 | export { LTEOp };
|
753 | var GTOp = (function (_super) {
|
754 | __extends(GTOp, _super);
|
755 | function GTOp(line, column, start, end, raw, left, right) {
|
756 | return _super.call(this, 'GTOp', line, column, start, end, raw, left, right) || this;
|
757 | }
|
758 | return GTOp;
|
759 | }(BinaryOp));
|
760 | export { GTOp };
|
761 | var GTEOp = (function (_super) {
|
762 | __extends(GTEOp, _super);
|
763 | function GTEOp(line, column, start, end, raw, left, right) {
|
764 | return _super.call(this, 'GTEOp', line, column, start, end, raw, left, right) || this;
|
765 | }
|
766 | return GTEOp;
|
767 | }(BinaryOp));
|
768 | export { GTEOp };
|
769 | var LogicalNotOp = (function (_super) {
|
770 | __extends(LogicalNotOp, _super);
|
771 | function LogicalNotOp(line, column, start, end, raw, expression) {
|
772 | return _super.call(this, 'LogicalNotOp', line, column, start, end, raw, expression) || this;
|
773 | }
|
774 | return LogicalNotOp;
|
775 | }(UnaryOp));
|
776 | export { LogicalNotOp };
|
777 | var LogicalAndOp = (function (_super) {
|
778 | __extends(LogicalAndOp, _super);
|
779 | function LogicalAndOp(line, column, start, end, raw, left, right) {
|
780 | return _super.call(this, 'LogicalAndOp', line, column, start, end, raw, left, right) || this;
|
781 | }
|
782 | return LogicalAndOp;
|
783 | }(BinaryOp));
|
784 | export { LogicalAndOp };
|
785 | var LogicalOrOp = (function (_super) {
|
786 | __extends(LogicalOrOp, _super);
|
787 | function LogicalOrOp(line, column, start, end, raw, left, right) {
|
788 | return _super.call(this, 'LogicalOrOp', line, column, start, end, raw, left, right) || this;
|
789 | }
|
790 | return LogicalOrOp;
|
791 | }(BinaryOp));
|
792 | export { LogicalOrOp };
|
793 | var SubtractOp = (function (_super) {
|
794 | __extends(SubtractOp, _super);
|
795 | function SubtractOp(line, column, start, end, raw, left, right) {
|
796 | return _super.call(this, 'SubtractOp', line, column, start, end, raw, left, right) || this;
|
797 | }
|
798 | return SubtractOp;
|
799 | }(BinaryOp));
|
800 | export { SubtractOp };
|
801 | var PlusOp = (function (_super) {
|
802 | __extends(PlusOp, _super);
|
803 | function PlusOp(line, column, start, end, raw, left, right) {
|
804 | return _super.call(this, 'PlusOp', line, column, start, end, raw, left, right) || this;
|
805 | }
|
806 | return PlusOp;
|
807 | }(BinaryOp));
|
808 | export { PlusOp };
|
809 | var UnaryPlusOp = (function (_super) {
|
810 | __extends(UnaryPlusOp, _super);
|
811 | function UnaryPlusOp(line, column, start, end, raw, expression) {
|
812 | return _super.call(this, 'UnaryPlusOp', line, column, start, end, raw, expression) || this;
|
813 | }
|
814 | return UnaryPlusOp;
|
815 | }(UnaryOp));
|
816 | export { UnaryPlusOp };
|
817 | var MultiplyOp = (function (_super) {
|
818 | __extends(MultiplyOp, _super);
|
819 | function MultiplyOp(line, column, start, end, raw, left, right) {
|
820 | return _super.call(this, 'MultiplyOp', line, column, start, end, raw, left, right) || this;
|
821 | }
|
822 | return MultiplyOp;
|
823 | }(BinaryOp));
|
824 | export { MultiplyOp };
|
825 | var DivideOp = (function (_super) {
|
826 | __extends(DivideOp, _super);
|
827 | function DivideOp(line, column, start, end, raw, left, right) {
|
828 | return _super.call(this, 'DivideOp', line, column, start, end, raw, left, right) || this;
|
829 | }
|
830 | return DivideOp;
|
831 | }(BinaryOp));
|
832 | export { DivideOp };
|
833 | var FloorDivideOp = (function (_super) {
|
834 | __extends(FloorDivideOp, _super);
|
835 | function FloorDivideOp(line, column, start, end, raw, left, right) {
|
836 | return _super.call(this, 'FloorDivideOp', line, column, start, end, raw, left, right) || this;
|
837 | }
|
838 | return FloorDivideOp;
|
839 | }(BinaryOp));
|
840 | export { FloorDivideOp };
|
841 | var ExistsOp = (function (_super) {
|
842 | __extends(ExistsOp, _super);
|
843 | function ExistsOp(line, column, start, end, raw, left, right) {
|
844 | return _super.call(this, 'ExistsOp', line, column, start, end, raw, left, right) || this;
|
845 | }
|
846 | return ExistsOp;
|
847 | }(BinaryOp));
|
848 | export { ExistsOp };
|
849 | var UnaryExistsOp = (function (_super) {
|
850 | __extends(UnaryExistsOp, _super);
|
851 | function UnaryExistsOp(line, column, start, end, raw, expression) {
|
852 | return _super.call(this, 'UnaryExistsOp', line, column, start, end, raw, expression) || this;
|
853 | }
|
854 | return UnaryExistsOp;
|
855 | }(UnaryOp));
|
856 | export { UnaryExistsOp };
|
857 | var UnaryNegateOp = (function (_super) {
|
858 | __extends(UnaryNegateOp, _super);
|
859 | function UnaryNegateOp(line, column, start, end, raw, expression) {
|
860 | return _super.call(this, 'UnaryNegateOp', line, column, start, end, raw, expression) || this;
|
861 | }
|
862 | return UnaryNegateOp;
|
863 | }(UnaryOp));
|
864 | export { UnaryNegateOp };
|
865 | var BitNotOp = (function (_super) {
|
866 | __extends(BitNotOp, _super);
|
867 | function BitNotOp(line, column, start, end, raw, expression) {
|
868 | return _super.call(this, 'BitNotOp', line, column, start, end, raw, expression) || this;
|
869 | }
|
870 | return BitNotOp;
|
871 | }(UnaryOp));
|
872 | export { BitNotOp };
|
873 | var BitAndOp = (function (_super) {
|
874 | __extends(BitAndOp, _super);
|
875 | function BitAndOp(line, column, start, end, raw, left, right) {
|
876 | return _super.call(this, 'BitAndOp', line, column, start, end, raw, left, right) || this;
|
877 | }
|
878 | return BitAndOp;
|
879 | }(BinaryOp));
|
880 | export { BitAndOp };
|
881 | var BitOrOp = (function (_super) {
|
882 | __extends(BitOrOp, _super);
|
883 | function BitOrOp(line, column, start, end, raw, left, right) {
|
884 | return _super.call(this, 'BitOrOp', line, column, start, end, raw, left, right) || this;
|
885 | }
|
886 | return BitOrOp;
|
887 | }(BinaryOp));
|
888 | export { BitOrOp };
|
889 | var BitXorOp = (function (_super) {
|
890 | __extends(BitXorOp, _super);
|
891 | function BitXorOp(line, column, start, end, raw, left, right) {
|
892 | return _super.call(this, 'BitXorOp', line, column, start, end, raw, left, right) || this;
|
893 | }
|
894 | return BitXorOp;
|
895 | }(BinaryOp));
|
896 | export { BitXorOp };
|
897 | var LeftShiftOp = (function (_super) {
|
898 | __extends(LeftShiftOp, _super);
|
899 | function LeftShiftOp(line, column, start, end, raw, left, right) {
|
900 | return _super.call(this, 'LeftShiftOp', line, column, start, end, raw, left, right) || this;
|
901 | }
|
902 | return LeftShiftOp;
|
903 | }(BinaryOp));
|
904 | export { LeftShiftOp };
|
905 | var SignedRightShiftOp = (function (_super) {
|
906 | __extends(SignedRightShiftOp, _super);
|
907 | function SignedRightShiftOp(line, column, start, end, raw, left, right) {
|
908 | return _super.call(this, 'SignedRightShiftOp', line, column, start, end, raw, left, right) || this;
|
909 | }
|
910 | return SignedRightShiftOp;
|
911 | }(BinaryOp));
|
912 | export { SignedRightShiftOp };
|
913 | var UnsignedRightShiftOp = (function (_super) {
|
914 | __extends(UnsignedRightShiftOp, _super);
|
915 | function UnsignedRightShiftOp(line, column, start, end, raw, left, right) {
|
916 | return _super.call(this, 'UnsignedRightShiftOp', line, column, start, end, raw, left, right) || this;
|
917 | }
|
918 | return UnsignedRightShiftOp;
|
919 | }(BinaryOp));
|
920 | export { UnsignedRightShiftOp };
|
921 | var PreDecrementOp = (function (_super) {
|
922 | __extends(PreDecrementOp, _super);
|
923 | function PreDecrementOp(line, column, start, end, raw, expression) {
|
924 | return _super.call(this, 'PreDecrementOp', line, column, start, end, raw, expression) || this;
|
925 | }
|
926 | return PreDecrementOp;
|
927 | }(UnaryOp));
|
928 | export { PreDecrementOp };
|
929 | var PreIncrementOp = (function (_super) {
|
930 | __extends(PreIncrementOp, _super);
|
931 | function PreIncrementOp(line, column, start, end, raw, expression) {
|
932 | return _super.call(this, 'PreIncrementOp', line, column, start, end, raw, expression) || this;
|
933 | }
|
934 | return PreIncrementOp;
|
935 | }(UnaryOp));
|
936 | export { PreIncrementOp };
|
937 | var PostDecrementOp = (function (_super) {
|
938 | __extends(PostDecrementOp, _super);
|
939 | function PostDecrementOp(line, column, start, end, raw, expression) {
|
940 | return _super.call(this, 'PostDecrementOp', line, column, start, end, raw, expression) || this;
|
941 | }
|
942 | return PostDecrementOp;
|
943 | }(UnaryOp));
|
944 | export { PostDecrementOp };
|
945 | var PostIncrementOp = (function (_super) {
|
946 | __extends(PostIncrementOp, _super);
|
947 | function PostIncrementOp(line, column, start, end, raw, expression) {
|
948 | return _super.call(this, 'PostIncrementOp', line, column, start, end, raw, expression) || this;
|
949 | }
|
950 | return PostIncrementOp;
|
951 | }(UnaryOp));
|
952 | export { PostIncrementOp };
|
953 | var ExpOp = (function (_super) {
|
954 | __extends(ExpOp, _super);
|
955 | function ExpOp(line, column, start, end, raw, left, right) {
|
956 | return _super.call(this, 'ExpOp', line, column, start, end, raw, left, right) || this;
|
957 | }
|
958 | return ExpOp;
|
959 | }(BinaryOp));
|
960 | export { ExpOp };
|
961 | var RemOp = (function (_super) {
|
962 | __extends(RemOp, _super);
|
963 | function RemOp(line, column, start, end, raw, left, right) {
|
964 | return _super.call(this, 'RemOp', line, column, start, end, raw, left, right) || this;
|
965 | }
|
966 | return RemOp;
|
967 | }(BinaryOp));
|
968 | export { RemOp };
|
969 | var ModuloOp = (function (_super) {
|
970 | __extends(ModuloOp, _super);
|
971 | function ModuloOp(line, column, start, end, raw, left, right) {
|
972 | return _super.call(this, 'ModuloOp', line, column, start, end, raw, left, right) || this;
|
973 | }
|
974 | return ModuloOp;
|
975 | }(BinaryOp));
|
976 | export { ModuloOp };
|
977 | var InOp = (function (_super) {
|
978 | __extends(InOp, _super);
|
979 | function InOp(line, column, start, end, raw, left, right, isNot) {
|
980 | var _this = _super.call(this, 'InOp', line, column, start, end, raw, left, right) || this;
|
981 | _this.isNot = isNot;
|
982 | return _this;
|
983 | }
|
984 | return InOp;
|
985 | }(BinaryOp));
|
986 | export { InOp };
|
987 | var BaseAssignOp = (function (_super) {
|
988 | __extends(BaseAssignOp, _super);
|
989 | function BaseAssignOp(type, line, column, start, end, raw, assignee, expression) {
|
990 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
991 | _this.assignee = assignee;
|
992 | _this.expression = expression;
|
993 | return _this;
|
994 | }
|
995 | BaseAssignOp.prototype.getChildNames = function () {
|
996 | return ['assignee', 'expression'];
|
997 | };
|
998 | return BaseAssignOp;
|
999 | }(Node));
|
1000 | export { BaseAssignOp };
|
1001 | var AssignOp = (function (_super) {
|
1002 | __extends(AssignOp, _super);
|
1003 | function AssignOp(line, column, start, end, raw, assignee, expression) {
|
1004 | return _super.call(this, 'AssignOp', line, column, start, end, raw, assignee, expression) || this;
|
1005 | }
|
1006 | AssignOp.prototype.withExpression = function (expression) {
|
1007 | return new AssignOp(this.line, this.column, this.start, this.end, this.raw, this.assignee, expression);
|
1008 | };
|
1009 | return AssignOp;
|
1010 | }(BaseAssignOp));
|
1011 | export { AssignOp };
|
1012 | var CompoundAssignOp = (function (_super) {
|
1013 | __extends(CompoundAssignOp, _super);
|
1014 | function CompoundAssignOp(line, column, start, end, raw, assignee, expression, op) {
|
1015 | var _this = _super.call(this, 'CompoundAssignOp', line, column, start, end, raw, assignee, expression) || this;
|
1016 | _this.op = op;
|
1017 | return _this;
|
1018 | }
|
1019 | return CompoundAssignOp;
|
1020 | }(BaseAssignOp));
|
1021 | export { CompoundAssignOp };
|
1022 | var ExtendsOp = (function (_super) {
|
1023 | __extends(ExtendsOp, _super);
|
1024 | function ExtendsOp(line, column, start, end, raw, left, right) {
|
1025 | return _super.call(this, 'ExtendsOp', line, column, start, end, raw, left, right) || this;
|
1026 | }
|
1027 | return ExtendsOp;
|
1028 | }(BinaryOp));
|
1029 | export { ExtendsOp };
|
1030 | var SeqOp = (function (_super) {
|
1031 | __extends(SeqOp, _super);
|
1032 | function SeqOp(line, column, start, end, raw, left, right) {
|
1033 | return _super.call(this, 'SeqOp', line, column, start, end, raw, left, right) || this;
|
1034 | }
|
1035 | return SeqOp;
|
1036 | }(BinaryOp));
|
1037 | export { SeqOp };
|
1038 | var TypeofOp = (function (_super) {
|
1039 | __extends(TypeofOp, _super);
|
1040 | function TypeofOp(line, column, start, end, raw, expression) {
|
1041 | return _super.call(this, 'TypeofOp', line, column, start, end, raw, expression) || this;
|
1042 | }
|
1043 | return TypeofOp;
|
1044 | }(UnaryOp));
|
1045 | export { TypeofOp };
|
1046 | var InstanceofOp = (function (_super) {
|
1047 | __extends(InstanceofOp, _super);
|
1048 | function InstanceofOp(line, column, start, end, raw, left, right, isNot) {
|
1049 | var _this = _super.call(this, 'InstanceofOp', line, column, start, end, raw, left, right) || this;
|
1050 | _this.isNot = isNot;
|
1051 | return _this;
|
1052 | }
|
1053 | return InstanceofOp;
|
1054 | }(BinaryOp));
|
1055 | export { InstanceofOp };
|
1056 | var OfOp = (function (_super) {
|
1057 | __extends(OfOp, _super);
|
1058 | function OfOp(line, column, start, end, raw, left, right, isNot) {
|
1059 | var _this = _super.call(this, 'OfOp', line, column, start, end, raw, left, right) || this;
|
1060 | _this.isNot = isNot;
|
1061 | return _this;
|
1062 | }
|
1063 | return OfOp;
|
1064 | }(BinaryOp));
|
1065 | export { OfOp };
|
1066 | var DeleteOp = (function (_super) {
|
1067 | __extends(DeleteOp, _super);
|
1068 | function DeleteOp(line, column, start, end, raw, expression) {
|
1069 | return _super.call(this, 'DeleteOp', line, column, start, end, raw, expression) || this;
|
1070 | }
|
1071 | return DeleteOp;
|
1072 | }(UnaryOp));
|
1073 | export { DeleteOp };
|
1074 | var Yield = (function (_super) {
|
1075 | __extends(Yield, _super);
|
1076 | function Yield(line, column, start, end, raw, expression) {
|
1077 | var _this = _super.call(this, 'Yield', line, column, start, end, raw) || this;
|
1078 | _this.expression = expression;
|
1079 | return _this;
|
1080 | }
|
1081 | Yield.prototype.getChildNames = function () {
|
1082 | return ['expression'];
|
1083 | };
|
1084 | return Yield;
|
1085 | }(Node));
|
1086 | export { Yield };
|
1087 | var YieldFrom = (function (_super) {
|
1088 | __extends(YieldFrom, _super);
|
1089 | function YieldFrom(line, column, start, end, raw, expression) {
|
1090 | var _this = _super.call(this, 'YieldFrom', line, column, start, end, raw) || this;
|
1091 | _this.expression = expression;
|
1092 | return _this;
|
1093 | }
|
1094 | YieldFrom.prototype.getChildNames = function () {
|
1095 | return ['expression'];
|
1096 | };
|
1097 | return YieldFrom;
|
1098 | }(Node));
|
1099 | export { YieldFrom };
|
1100 | var Slice = (function (_super) {
|
1101 | __extends(Slice, _super);
|
1102 | function Slice(line, column, start, end, raw, expression, left, right, isInclusive) {
|
1103 | var _this = _super.call(this, 'Slice', line, column, start, end, raw) || this;
|
1104 | _this.expression = expression;
|
1105 | _this.left = left;
|
1106 | _this.right = right;
|
1107 | _this.isInclusive = isInclusive;
|
1108 | return _this;
|
1109 | }
|
1110 | Slice.prototype.getChildNames = function () {
|
1111 | return ['expression', 'left', 'right'];
|
1112 | };
|
1113 | return Slice;
|
1114 | }(Node));
|
1115 | export { Slice };
|
1116 | var SoakedSlice = (function (_super) {
|
1117 | __extends(SoakedSlice, _super);
|
1118 | function SoakedSlice(line, column, start, end, raw, expression, left, right, isInclusive) {
|
1119 | var _this = _super.call(this, 'SoakedSlice', line, column, start, end, raw) || this;
|
1120 | _this.expression = expression;
|
1121 | _this.left = left;
|
1122 | _this.right = right;
|
1123 | _this.isInclusive = isInclusive;
|
1124 | return _this;
|
1125 | }
|
1126 | SoakedSlice.prototype.getChildNames = function () {
|
1127 | return ['expression', 'left', 'right'];
|
1128 | };
|
1129 | return SoakedSlice;
|
1130 | }(Node));
|
1131 | export { SoakedSlice };
|
1132 | var BaseFunction = (function (_super) {
|
1133 | __extends(BaseFunction, _super);
|
1134 | function BaseFunction(type, line, column, start, end, raw, parameters, body) {
|
1135 | var _this = _super.call(this, type, line, column, start, end, raw) || this;
|
1136 | _this.parameters = parameters;
|
1137 | _this.body = body;
|
1138 | return _this;
|
1139 | }
|
1140 | BaseFunction.prototype.getChildNames = function () {
|
1141 | return ['parameters', 'body'];
|
1142 | };
|
1143 | return BaseFunction;
|
1144 | }(Node));
|
1145 | export { BaseFunction };
|
1146 | var Function = (function (_super) {
|
1147 | __extends(Function, _super);
|
1148 | function Function(line, column, start, end, raw, parameters, body) {
|
1149 | return _super.call(this, 'Function', line, column, start, end, raw, parameters, body) || this;
|
1150 | }
|
1151 | Function.prototype.withParameters = function (parameters) {
|
1152 | return new Function(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
1153 | };
|
1154 | return Function;
|
1155 | }(BaseFunction));
|
1156 | export { Function };
|
1157 | var BoundFunction = (function (_super) {
|
1158 | __extends(BoundFunction, _super);
|
1159 | function BoundFunction(line, column, start, end, raw, parameters, body) {
|
1160 | return _super.call(this, 'BoundFunction', line, column, start, end, raw, parameters, body) || this;
|
1161 | }
|
1162 | BoundFunction.prototype.withParameters = function (parameters) {
|
1163 | return new BoundFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
1164 | };
|
1165 | return BoundFunction;
|
1166 | }(BaseFunction));
|
1167 | export { BoundFunction };
|
1168 | var GeneratorFunction = (function (_super) {
|
1169 | __extends(GeneratorFunction, _super);
|
1170 | function GeneratorFunction(line, column, start, end, raw, parameters, body) {
|
1171 | return _super.call(this, 'GeneratorFunction', line, column, start, end, raw, parameters, body) || this;
|
1172 | }
|
1173 | GeneratorFunction.prototype.withParameters = function (parameters) {
|
1174 | return new GeneratorFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
1175 | };
|
1176 | return GeneratorFunction;
|
1177 | }(BaseFunction));
|
1178 | export { GeneratorFunction };
|
1179 | var BoundGeneratorFunction = (function (_super) {
|
1180 | __extends(BoundGeneratorFunction, _super);
|
1181 | function BoundGeneratorFunction(line, column, start, end, raw, parameters, body) {
|
1182 | return _super.call(this, 'BoundGeneratorFunction', line, column, start, end, raw, parameters, body) || this;
|
1183 | }
|
1184 | BoundGeneratorFunction.prototype.withParameters = function (parameters) {
|
1185 | return new BoundGeneratorFunction(this.line, this.column, this.start, this.end, this.raw, parameters, this.body);
|
1186 | };
|
1187 | return BoundGeneratorFunction;
|
1188 | }(BaseFunction));
|
1189 | export { BoundGeneratorFunction };
|
1190 | var Try = (function (_super) {
|
1191 | __extends(Try, _super);
|
1192 | function Try(line, column, start, end, raw, body, catchAssignee, catchBody, finallyBody) {
|
1193 | var _this = _super.call(this, 'Try', line, column, start, end, raw) || this;
|
1194 | _this.body = body;
|
1195 | _this.catchAssignee = catchAssignee;
|
1196 | _this.catchBody = catchBody;
|
1197 | _this.finallyBody = finallyBody;
|
1198 | return _this;
|
1199 | }
|
1200 | Try.prototype.getChildNames = function () {
|
1201 | return ['body', 'catchAssignee', 'catchBody', 'finallyBody'];
|
1202 | };
|
1203 | return Try;
|
1204 | }(Node));
|
1205 | export { Try };
|
1206 | var Constructor = (function (_super) {
|
1207 | __extends(Constructor, _super);
|
1208 | function Constructor(line, column, start, end, raw, assignee, expression) {
|
1209 | return _super.call(this, 'Constructor', line, column, start, end, raw, assignee, expression) || this;
|
1210 | }
|
1211 | return Constructor;
|
1212 | }(BaseAssignOp));
|
1213 | export { Constructor };
|
1214 | var ClassProtoAssignOp = (function (_super) {
|
1215 | __extends(ClassProtoAssignOp, _super);
|
1216 | function ClassProtoAssignOp(line, column, start, end, raw, assignee, expression) {
|
1217 | return _super.call(this, 'ClassProtoAssignOp', line, column, start, end, raw, assignee, expression) || this;
|
1218 | }
|
1219 | return ClassProtoAssignOp;
|
1220 | }(BaseAssignOp));
|
1221 | export { ClassProtoAssignOp };
|
1222 | var Class = (function (_super) {
|
1223 | __extends(Class, _super);
|
1224 | function Class(line, column, start, end, raw, nameAssignee, name, body, boundMembers, parent, ctor) {
|
1225 | var _this = _super.call(this, 'Class', line, column, start, end, raw) || this;
|
1226 | _this.nameAssignee = nameAssignee;
|
1227 | _this.name = name;
|
1228 | _this.body = body;
|
1229 | _this.boundMembers = boundMembers;
|
1230 | _this.parent = parent;
|
1231 | _this.ctor = ctor;
|
1232 | return _this;
|
1233 | }
|
1234 | Class.prototype.getChildNames = function () {
|
1235 | return ['nameAssignee', 'parent', 'body'];
|
1236 | };
|
1237 | return Class;
|
1238 | }(Node));
|
1239 | export { Class };
|
1240 | var FunctionApplication = (function (_super) {
|
1241 | __extends(FunctionApplication, _super);
|
1242 | function FunctionApplication(line, column, start, end, raw, fn, args) {
|
1243 | var _this = _super.call(this, 'FunctionApplication', line, column, start, end, raw) || this;
|
1244 | _this["function"] = fn;
|
1245 | _this.arguments = args;
|
1246 | return _this;
|
1247 | }
|
1248 | FunctionApplication.prototype.getChildNames = function () {
|
1249 | return ['function', 'arguments'];
|
1250 | };
|
1251 | return FunctionApplication;
|
1252 | }(Node));
|
1253 | export { FunctionApplication };
|
1254 | var SoakedFunctionApplication = (function (_super) {
|
1255 | __extends(SoakedFunctionApplication, _super);
|
1256 | function SoakedFunctionApplication(line, column, start, end, raw, fn, args) {
|
1257 | var _this = _super.call(this, 'SoakedFunctionApplication', line, column, start, end, raw) || this;
|
1258 | _this["function"] = fn;
|
1259 | _this.arguments = args;
|
1260 | return _this;
|
1261 | }
|
1262 | SoakedFunctionApplication.prototype.getChildNames = function () {
|
1263 | return ['function', 'arguments'];
|
1264 | };
|
1265 | return SoakedFunctionApplication;
|
1266 | }(Node));
|
1267 | export { SoakedFunctionApplication };
|
1268 | var Super = (function (_super) {
|
1269 | __extends(Super, _super);
|
1270 | function Super(line, column, start, end, raw) {
|
1271 | return _super.call(this, 'Super', line, column, start, end, raw) || this;
|
1272 | }
|
1273 | Super.prototype.getChildNames = function () {
|
1274 | return [];
|
1275 | };
|
1276 | return Super;
|
1277 | }(Node));
|
1278 | export { Super };
|
1279 | var BareSuperFunctionApplication = (function (_super) {
|
1280 | __extends(BareSuperFunctionApplication, _super);
|
1281 | function BareSuperFunctionApplication(line, column, start, end, raw) {
|
1282 | return _super.call(this, 'BareSuperFunctionApplication', line, column, start, end, raw) || this;
|
1283 | }
|
1284 | BareSuperFunctionApplication.prototype.getChildNames = function () {
|
1285 | return [];
|
1286 | };
|
1287 | return BareSuperFunctionApplication;
|
1288 | }(Node));
|
1289 | export { BareSuperFunctionApplication };
|
1290 | var NewOp = (function (_super) {
|
1291 | __extends(NewOp, _super);
|
1292 | function NewOp(line, column, start, end, raw, ctor, args) {
|
1293 | var _this = _super.call(this, 'NewOp', line, column, start, end, raw) || this;
|
1294 | _this.ctor = ctor;
|
1295 | _this.arguments = args;
|
1296 | return _this;
|
1297 | }
|
1298 | NewOp.prototype.getChildNames = function () {
|
1299 | return ['ctor', 'arguments'];
|
1300 | };
|
1301 | return NewOp;
|
1302 | }(Node));
|
1303 | export { NewOp };
|
1304 | var SoakedNewOp = (function (_super) {
|
1305 | __extends(SoakedNewOp, _super);
|
1306 | function SoakedNewOp(line, column, start, end, raw, ctor, args) {
|
1307 | var _this = _super.call(this, 'SoakedNewOp', line, column, start, end, raw) || this;
|
1308 | _this.ctor = ctor;
|
1309 | _this.arguments = args;
|
1310 | return _this;
|
1311 | }
|
1312 | SoakedNewOp.prototype.getChildNames = function () {
|
1313 | return ['ctor', 'arguments'];
|
1314 | };
|
1315 | return SoakedNewOp;
|
1316 | }(Node));
|
1317 | export { SoakedNewOp };
|
1318 | var DoOp = (function (_super) {
|
1319 | __extends(DoOp, _super);
|
1320 | function DoOp(line, column, start, end, raw, expression) {
|
1321 | var _this = _super.call(this, 'DoOp', line, column, start, end, raw) || this;
|
1322 | _this.expression = expression;
|
1323 | return _this;
|
1324 | }
|
1325 | DoOp.prototype.getChildNames = function () {
|
1326 | return ['expression'];
|
1327 | };
|
1328 | return DoOp;
|
1329 | }(Node));
|
1330 | export { DoOp };
|
1331 | var ImportDeclaration = (function (_super) {
|
1332 | __extends(ImportDeclaration, _super);
|
1333 | function ImportDeclaration(line, column, start, end, raw, defaultBinding, namespaceImport, namedImports, source) {
|
1334 | var _this = _super.call(this, 'ImportDeclaration', line, column, start, end, raw) || this;
|
1335 | _this.defaultBinding = defaultBinding;
|
1336 | _this.namespaceImport = namespaceImport;
|
1337 | _this.namedImports = namedImports;
|
1338 | _this.source = source;
|
1339 | return _this;
|
1340 | }
|
1341 | ImportDeclaration.prototype.getChildNames = function () {
|
1342 | return ['defaultBinding', 'namespaceImport', 'namedImports', 'source'];
|
1343 | };
|
1344 | return ImportDeclaration;
|
1345 | }(Node));
|
1346 | export { ImportDeclaration };
|
1347 | var ExportNamedDeclaration = (function (_super) {
|
1348 | __extends(ExportNamedDeclaration, _super);
|
1349 | function ExportNamedDeclaration(line, column, start, end, raw,
|
1350 | // This may be an assignment to an identifier, or it could be another binding expression like a class.
|
1351 | expression) {
|
1352 | var _this = _super.call(this, 'ExportNamedDeclaration', line, column, start, end, raw) || this;
|
1353 | _this.expression = expression;
|
1354 | return _this;
|
1355 | }
|
1356 | ExportNamedDeclaration.prototype.getChildNames = function () {
|
1357 | return ['expression'];
|
1358 | };
|
1359 | return ExportNamedDeclaration;
|
1360 | }(Node));
|
1361 | export { ExportNamedDeclaration };
|
1362 | var ExportBindingsDeclaration = (function (_super) {
|
1363 | __extends(ExportBindingsDeclaration, _super);
|
1364 | function ExportBindingsDeclaration(line, column, start, end, raw, namedExports, source) {
|
1365 | var _this = _super.call(this, 'ExportBindingsDeclaration', line, column, start, end, raw) || this;
|
1366 | _this.namedExports = namedExports;
|
1367 | _this.source = source;
|
1368 | return _this;
|
1369 | }
|
1370 | ExportBindingsDeclaration.prototype.getChildNames = function () {
|
1371 | return ['namedExports', 'source'];
|
1372 | };
|
1373 | return ExportBindingsDeclaration;
|
1374 | }(Node));
|
1375 | export { ExportBindingsDeclaration };
|
1376 | var ExportDefaultDeclaration = (function (_super) {
|
1377 | __extends(ExportDefaultDeclaration, _super);
|
1378 | function ExportDefaultDeclaration(line, column, start, end, raw, expression) {
|
1379 | var _this = _super.call(this, 'ExportDefaultDeclaration', line, column, start, end, raw) || this;
|
1380 | _this.expression = expression;
|
1381 | return _this;
|
1382 | }
|
1383 | ExportDefaultDeclaration.prototype.getChildNames = function () {
|
1384 | return ['expression'];
|
1385 | };
|
1386 | return ExportDefaultDeclaration;
|
1387 | }(Node));
|
1388 | export { ExportDefaultDeclaration };
|
1389 | var ExportAllDeclaration = (function (_super) {
|
1390 | __extends(ExportAllDeclaration, _super);
|
1391 | function ExportAllDeclaration(line, column, start, end, raw, source) {
|
1392 | var _this = _super.call(this, 'ExportAllDeclaration', line, column, start, end, raw) || this;
|
1393 | _this.source = source;
|
1394 | return _this;
|
1395 | }
|
1396 | ExportAllDeclaration.prototype.getChildNames = function () {
|
1397 | return ['source'];
|
1398 | };
|
1399 | return ExportAllDeclaration;
|
1400 | }(Node));
|
1401 | export { ExportAllDeclaration };
|
1402 | var ModuleSpecifier = (function (_super) {
|
1403 | __extends(ModuleSpecifier, _super);
|
1404 | function ModuleSpecifier(line, column, start, end, raw, original, alias) {
|
1405 | var _this = _super.call(this, 'ModuleSpecifier', line, column, start, end, raw) || this;
|
1406 | _this.original = original;
|
1407 | _this.alias = alias;
|
1408 | return _this;
|
1409 | }
|
1410 | ModuleSpecifier.prototype.getChildNames = function () {
|
1411 | return ['original', 'alias'];
|
1412 | };
|
1413 | return ModuleSpecifier;
|
1414 | }(Node));
|
1415 | export { ModuleSpecifier };
|