UNPKG

53.8 kBJavaScriptView Raw
1var __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})();
11var Node = /** @class */ (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}());
40export { Node };
41var Identifier = /** @class */ (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));
53export { Identifier };
54var Bool = /** @class */ (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));
72export { Bool };
73var JavaScript = /** @class */ (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));
85export { JavaScript };
86var Number = /** @class */ (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));
98export { Number };
99var Float = /** @class */ (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));
106export { Float };
107var Int = /** @class */ (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));
114export { Int };
115var AccessOp = /** @class */ (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));
124export { AccessOp };
125var MemberAccessOp = /** @class */ (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));
137export { MemberAccessOp };
138var ProtoMemberAccessOp = /** @class */ (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));
148export { ProtoMemberAccessOp };
149var SoakedMemberAccessOp = /** @class */ (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));
161export { SoakedMemberAccessOp };
162var SoakedProtoMemberAccessOp = /** @class */ (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));
172export { SoakedProtoMemberAccessOp };
173var DynamicMemberAccessOp = /** @class */ (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));
185export { DynamicMemberAccessOp };
186var SoakedDynamicMemberAccessOp = /** @class */ (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));
198export { SoakedDynamicMemberAccessOp };
199var Quasi = /** @class */ (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));
211export { Quasi };
212var String = /** @class */ (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));
225export { String };
226var TaggedTemplateLiteral = /** @class */ (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));
239export { TaggedTemplateLiteral };
240var ObjectInitialiser = /** @class */ (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));
252export { ObjectInitialiser };
253var ObjectInitialiserMember = /** @class */ (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));
268export { ObjectInitialiserMember };
269var Conditional = /** @class */ (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));
284export { Conditional };
285var Program = /** @class */ (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));
298export { Program };
299var Block = /** @class */ (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));
315export { Block };
316var Loop = /** @class */ (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));
328export { Loop };
329var While = /** @class */ (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));
344export { While };
345var For = /** @class */ (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));
358export { For };
359var ForOf = /** @class */ (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));
371export { ForOf };
372var ForIn = /** @class */ (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));
384export { ForIn };
385var ForFrom = /** @class */ (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 /* keyAssignee */, valAssignee, target, filter, body) || this;
389 }
390 ForFrom.prototype.getChildNames = function () {
391 return ['keyAssignee', 'valAssignee', 'target', 'filter', 'body'];
392 };
393 return ForFrom;
394}(For));
395export { ForFrom };
396var Switch = /** @class */ (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));
410export { Switch };
411var SwitchCase = /** @class */ (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));
424export { SwitchCase };
425var RegexFlags = /** @class */ (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}());
469export { RegexFlags };
470var Heregex = /** @class */ (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));
484export { Heregex };
485var Null = /** @class */ (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));
495export { Null };
496var Undefined = /** @class */ (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));
506export { Undefined };
507var Regex = /** @class */ (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));
520export { Regex };
521var Return = /** @class */ (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));
533export { Return };
534var YieldReturn = /** @class */ (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));
546export { YieldReturn };
547var This = /** @class */ (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));
557export { This };
558var Throw = /** @class */ (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));
570export { Throw };
571var ArrayInitialiser = /** @class */ (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));
583export { ArrayInitialiser };
584var DefaultParam = /** @class */ (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));
597export { DefaultParam };
598var Rest = /** @class */ (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));
610export { Rest };
611var Expansion = /** @class */ (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));
621export { Expansion };
622var Break = /** @class */ (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));
632export { Break };
633var Continue = /** @class */ (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));
643export { Continue };
644var Spread = /** @class */ (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));
656export { Spread };
657var Range = /** @class */ (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));
671export { Range };
672var BinaryOp = /** @class */ (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));
685export { BinaryOp };
686var UnaryOp = /** @class */ (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));
698export { UnaryOp };
699var ChainedComparisonOp = /** @class */ (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));
712export { ChainedComparisonOp };
713var OperatorInfo = /** @class */ (function () {
714 function OperatorInfo(operator, token) {
715 this.operator = operator;
716 this.token = token;
717 }
718 return OperatorInfo;
719}());
720export { OperatorInfo };
721var EQOp = /** @class */ (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));
728export { EQOp };
729var NEQOp = /** @class */ (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));
736export { NEQOp };
737var LTOp = /** @class */ (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));
744export { LTOp };
745var LTEOp = /** @class */ (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));
752export { LTEOp };
753var GTOp = /** @class */ (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));
760export { GTOp };
761var GTEOp = /** @class */ (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));
768export { GTEOp };
769var LogicalNotOp = /** @class */ (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));
776export { LogicalNotOp };
777var LogicalAndOp = /** @class */ (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));
784export { LogicalAndOp };
785var LogicalOrOp = /** @class */ (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));
792export { LogicalOrOp };
793var SubtractOp = /** @class */ (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));
800export { SubtractOp };
801var PlusOp = /** @class */ (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));
808export { PlusOp };
809var UnaryPlusOp = /** @class */ (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));
816export { UnaryPlusOp };
817var MultiplyOp = /** @class */ (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));
824export { MultiplyOp };
825var DivideOp = /** @class */ (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));
832export { DivideOp };
833var FloorDivideOp = /** @class */ (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));
840export { FloorDivideOp };
841var ExistsOp = /** @class */ (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));
848export { ExistsOp };
849var UnaryExistsOp = /** @class */ (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));
856export { UnaryExistsOp };
857var UnaryNegateOp = /** @class */ (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));
864export { UnaryNegateOp };
865var BitNotOp = /** @class */ (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));
872export { BitNotOp };
873var BitAndOp = /** @class */ (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));
880export { BitAndOp };
881var BitOrOp = /** @class */ (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));
888export { BitOrOp };
889var BitXorOp = /** @class */ (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));
896export { BitXorOp };
897var LeftShiftOp = /** @class */ (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));
904export { LeftShiftOp };
905var SignedRightShiftOp = /** @class */ (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));
912export { SignedRightShiftOp };
913var UnsignedRightShiftOp = /** @class */ (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));
920export { UnsignedRightShiftOp };
921var PreDecrementOp = /** @class */ (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));
928export { PreDecrementOp };
929var PreIncrementOp = /** @class */ (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));
936export { PreIncrementOp };
937var PostDecrementOp = /** @class */ (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));
944export { PostDecrementOp };
945var PostIncrementOp = /** @class */ (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));
952export { PostIncrementOp };
953var ExpOp = /** @class */ (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));
960export { ExpOp };
961var RemOp = /** @class */ (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));
968export { RemOp };
969var ModuloOp = /** @class */ (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));
976export { ModuloOp };
977var InOp = /** @class */ (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));
986export { InOp };
987var BaseAssignOp = /** @class */ (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));
1000export { BaseAssignOp };
1001var AssignOp = /** @class */ (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));
1011export { AssignOp };
1012var CompoundAssignOp = /** @class */ (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));
1021export { CompoundAssignOp };
1022var ExtendsOp = /** @class */ (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));
1029export { ExtendsOp };
1030var SeqOp = /** @class */ (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));
1037export { SeqOp };
1038var TypeofOp = /** @class */ (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));
1045export { TypeofOp };
1046var InstanceofOp = /** @class */ (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));
1055export { InstanceofOp };
1056var OfOp = /** @class */ (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));
1065export { OfOp };
1066var DeleteOp = /** @class */ (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));
1073export { DeleteOp };
1074var Yield = /** @class */ (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));
1086export { Yield };
1087var YieldFrom = /** @class */ (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));
1099export { YieldFrom };
1100var Slice = /** @class */ (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));
1115export { Slice };
1116var SoakedSlice = /** @class */ (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));
1131export { SoakedSlice };
1132var BaseFunction = /** @class */ (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));
1145export { BaseFunction };
1146var Function = /** @class */ (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));
1156export { Function };
1157var BoundFunction = /** @class */ (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));
1167export { BoundFunction };
1168var GeneratorFunction = /** @class */ (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));
1178export { GeneratorFunction };
1179var BoundGeneratorFunction = /** @class */ (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));
1189export { BoundGeneratorFunction };
1190var Try = /** @class */ (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));
1205export { Try };
1206var Constructor = /** @class */ (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));
1213export { Constructor };
1214var ClassProtoAssignOp = /** @class */ (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));
1221export { ClassProtoAssignOp };
1222var Class = /** @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));
1239export { Class };
1240var FunctionApplication = /** @class */ (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));
1253export { FunctionApplication };
1254var SoakedFunctionApplication = /** @class */ (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));
1267export { SoakedFunctionApplication };
1268var Super = /** @class */ (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));
1278export { Super };
1279var BareSuperFunctionApplication = /** @class */ (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));
1289export { BareSuperFunctionApplication };
1290var NewOp = /** @class */ (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));
1303export { NewOp };
1304var SoakedNewOp = /** @class */ (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));
1317export { SoakedNewOp };
1318var DoOp = /** @class */ (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));
1330export { DoOp };
1331var ImportDeclaration = /** @class */ (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));
1346export { ImportDeclaration };
1347var ExportNamedDeclaration = /** @class */ (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));
1361export { ExportNamedDeclaration };
1362var ExportBindingsDeclaration = /** @class */ (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));
1375export { ExportBindingsDeclaration };
1376var ExportDefaultDeclaration = /** @class */ (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));
1388export { ExportDefaultDeclaration };
1389var ExportAllDeclaration = /** @class */ (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));
1401export { ExportAllDeclaration };
1402var ModuleSpecifier = /** @class */ (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));
1415export { ModuleSpecifier };