@quenk/wml 2.11.3 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/parse/ast.js CHANGED
@@ -3,8 +3,8 @@
3
3
  * Types corresponding to the WML AST.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.UnqualifiedConstructor = exports.ContextVariable = exports.ContextProperty = exports.BooleanLiteral = exports.NumberLiteral = exports.StringLiteral = exports.Property = exports.Record = exports.List = exports.FunctionExpression = exports.ReadExpression = exports.MemberExpression = exports.CallExpression = exports.ConstructExpression = exports.FunApplication = exports.ViewConstruction = exports.TypeAssertion = exports.UnaryExpression = exports.BinaryExpression = exports.IfThenExpression = exports.Characters = exports.ElseIfClause = exports.ElseClause = exports.IfStatement = exports.ForFromStatement = exports.ForOfStatement = exports.ForInStatement = exports.Interpolation = exports.Attribute = exports.Widget = exports.Node = exports.UntypedParameter = exports.TypedParameter = exports.TupleType = exports.ListType = exports.RecordType = exports.FunctionType = exports.ConstructorType = exports.TypeParameter = exports.FunStatement = exports.ViewStatement = exports.LetStatement = exports.MemberDeclaration = exports.ContextStatement = exports.AliasStatement = exports.CompositeMember = exports.AggregateMember = exports.AliasedMember = exports.ImportStatement = exports.Module = void 0;
7
- exports.QualifiedIdentifier = exports.UnqualifiedIdentifier = exports.QualifiedConstructor = void 0;
6
+ exports.ContextVariable = exports.ContextProperty = exports.BooleanLiteral = exports.NumberLiteral = exports.StringLiteral = exports.Property = exports.Record = exports.List = exports.FunctionExpression = exports.ReadExpression = exports.MemberExpression = exports.CallExpression = exports.ConstructExpression = exports.FunApplication = exports.ViewConstruction = exports.TypeAssertion = exports.UnaryExpression = exports.BinaryExpression = exports.IfThenExpression = exports.Characters = exports.ElseIfClause = exports.ElseClause = exports.IfStatement = exports.ForFromStatement = exports.ForOfStatement = exports.ForInStatement = exports.Interpolation = exports.Attribute = exports.Widget = exports.Node = exports.UntypedParameter = exports.TypedParameter = exports.TupleType = exports.ListType = exports.RecordType = exports.FunctionType = exports.ConstructorType = exports.TypeParameter = exports.FunStatement = exports.ViewStatement = exports.ContextFromStatement = exports.LetStatement = exports.MemberDeclaration = exports.ContextStatement = exports.AliasStatement = exports.CompositeMember = exports.AggregateMember = exports.AliasedMember = exports.ImportStatement = exports.Module = void 0;
7
+ exports.QualifiedIdentifier = exports.UnqualifiedIdentifier = exports.QualifiedConstructor = exports.UnqualifiedConstructor = void 0;
8
8
  ;
9
9
  /**
10
10
  * Module is what a wml file compiles to.
@@ -13,8 +13,8 @@ exports.QualifiedIdentifier = exports.UnqualifiedIdentifier = exports.QualifiedC
13
13
  * All declarations in wml are exported. There is no such thing
14
14
  * as private here.
15
15
  */
16
- var Module = /** @class */ (function () {
17
- function Module(imports, exports, location) {
16
+ class Module {
17
+ constructor(imports, exports, location) {
18
18
  this.imports = imports;
19
19
  this.exports = exports;
20
20
  this.location = location;
@@ -23,126 +23,129 @@ var Module = /** @class */ (function () {
23
23
  /**
24
24
  * clone this node.
25
25
  */
26
- Module.prototype.clone = function () {
26
+ clone() {
27
27
  return new Module(this.imports.slice(), this.exports.slice(), this.location);
28
- };
29
- return Module;
30
- }());
28
+ }
29
+ }
31
30
  exports.Module = Module;
32
31
  /**
33
32
  * ImportStatement
34
33
  */
35
- var ImportStatement = /** @class */ (function () {
36
- function ImportStatement(member, module, location) {
34
+ class ImportStatement {
35
+ constructor(member, module, location) {
37
36
  this.member = member;
38
37
  this.module = module;
39
38
  this.location = location;
40
39
  this.type = 'import-statement';
41
40
  }
42
- return ImportStatement;
43
- }());
41
+ }
44
42
  exports.ImportStatement = ImportStatement;
45
43
  /**
46
44
  * AliasedMember
47
45
  * @property {Identifier} alias - The identifier introduced to scope.
48
46
  * @property {Identifier} member - The identifier that is aliased.
49
47
  */
50
- var AliasedMember = /** @class */ (function () {
51
- function AliasedMember(member, alias, location) {
48
+ class AliasedMember {
49
+ constructor(member, alias, location) {
52
50
  this.member = member;
53
51
  this.alias = alias;
54
52
  this.location = location;
55
53
  this.type = 'aliased-member';
56
54
  }
57
- return AliasedMember;
58
- }());
55
+ }
59
56
  exports.AliasedMember = AliasedMember;
60
57
  /**
61
58
  * AggregateMember
62
59
  */
63
- var AggregateMember = /** @class */ (function () {
64
- function AggregateMember(id, location) {
60
+ class AggregateMember {
61
+ constructor(id, location) {
65
62
  this.id = id;
66
63
  this.location = location;
67
64
  this.type = 'qualified-member';
68
65
  }
69
- return AggregateMember;
70
- }());
66
+ }
71
67
  exports.AggregateMember = AggregateMember;
72
68
  /**
73
69
  * CompositeMember
74
70
  * @property {...Identifier|Aliased_Member} members
75
71
  */
76
- var CompositeMember = /** @class */ (function () {
77
- function CompositeMember(members, location) {
72
+ class CompositeMember {
73
+ constructor(members, location) {
78
74
  this.members = members;
79
75
  this.location = location;
80
76
  this.type = 'composite-member';
81
77
  }
82
- return CompositeMember;
83
- }());
78
+ }
84
79
  exports.CompositeMember = CompositeMember;
85
80
  /**
86
81
  * AliasStatement
87
82
  */
88
- var AliasStatement = /** @class */ (function () {
89
- function AliasStatement(id, typeParameters, members, location) {
83
+ class AliasStatement {
84
+ constructor(id, typeParameters, members, location) {
90
85
  this.id = id;
91
86
  this.typeParameters = typeParameters;
92
87
  this.members = members;
93
88
  this.location = location;
94
89
  this.type = 'alias-statement';
95
90
  }
96
- return AliasStatement;
97
- }());
91
+ }
98
92
  exports.AliasStatement = AliasStatement;
99
93
  /**
100
94
  * ContextStatement
101
95
  */
102
- var ContextStatement = /** @class */ (function () {
103
- function ContextStatement(id, typeParameters, members, location) {
96
+ class ContextStatement {
97
+ constructor(id, typeParameters, members, location) {
104
98
  this.id = id;
105
99
  this.typeParameters = typeParameters;
106
100
  this.members = members;
107
101
  this.location = location;
108
102
  this.type = 'context-statement';
109
103
  }
110
- return ContextStatement;
111
- }());
104
+ }
112
105
  exports.ContextStatement = ContextStatement;
113
106
  /**
114
107
  * MemberDeclaration
115
108
  */
116
- var MemberDeclaration = /** @class */ (function () {
117
- function MemberDeclaration(path, kind, optional, location) {
109
+ class MemberDeclaration {
110
+ constructor(path, kind, optional, location) {
118
111
  this.path = path;
119
112
  this.kind = kind;
120
113
  this.optional = optional;
121
114
  this.location = location;
122
115
  this.type = 'member-declaration';
123
116
  }
124
- return MemberDeclaration;
125
- }());
117
+ }
126
118
  exports.MemberDeclaration = MemberDeclaration;
127
119
  /**
128
120
  * LetStatement
129
121
  */
130
- var LetStatement = /** @class */ (function () {
131
- function LetStatement(id, cons, expression, location) {
122
+ class LetStatement {
123
+ constructor(id, cons, expression, location) {
132
124
  this.id = id;
133
125
  this.cons = cons;
134
126
  this.expression = expression;
135
127
  this.location = location;
136
128
  this.type = 'let-statement';
137
129
  }
138
- return LetStatement;
139
- }());
130
+ }
140
131
  exports.LetStatement = LetStatement;
132
+ /**
133
+ * ContextFromStatement
134
+ */
135
+ class ContextFromStatement {
136
+ constructor(cons, module, location) {
137
+ this.cons = cons;
138
+ this.module = module;
139
+ this.location = location;
140
+ this.type = 'context-from-statement';
141
+ }
142
+ }
143
+ exports.ContextFromStatement = ContextFromStatement;
141
144
  /**
142
145
  * ViewStatement
143
146
  */
144
- var ViewStatement = /** @class */ (function () {
145
- function ViewStatement(id, typeParameters, context, directives, root, location) {
147
+ class ViewStatement {
148
+ constructor(id, typeParameters, context, directives, root, location) {
146
149
  this.id = id;
147
150
  this.typeParameters = typeParameters;
148
151
  this.context = context;
@@ -151,11 +154,10 @@ var ViewStatement = /** @class */ (function () {
151
154
  this.location = location;
152
155
  this.type = 'view-statement';
153
156
  }
154
- return ViewStatement;
155
- }());
157
+ }
156
158
  exports.ViewStatement = ViewStatement;
157
- var FunStatement = /** @class */ (function () {
158
- function FunStatement(id, typeParameters, parameters, body, location) {
159
+ class FunStatement {
160
+ constructor(id, typeParameters, parameters, body, location) {
159
161
  this.id = id;
160
162
  this.typeParameters = typeParameters;
161
163
  this.parameters = parameters;
@@ -163,151 +165,138 @@ var FunStatement = /** @class */ (function () {
163
165
  this.location = location;
164
166
  this.type = 'fun-statement';
165
167
  }
166
- return FunStatement;
167
- }());
168
+ }
168
169
  exports.FunStatement = FunStatement;
169
170
  /**
170
171
  * TypeParameter
171
172
  */
172
- var TypeParameter = /** @class */ (function () {
173
- function TypeParameter(id, constraint, location) {
173
+ class TypeParameter {
174
+ constructor(id, constraint, location) {
174
175
  this.id = id;
175
176
  this.constraint = constraint;
176
177
  this.location = location;
177
178
  this.type = 'type-parameter';
178
179
  }
179
- return TypeParameter;
180
- }());
180
+ }
181
181
  exports.TypeParameter = TypeParameter;
182
182
  /**
183
183
  * ConstructorType
184
184
  */
185
- var ConstructorType = /** @class */ (function () {
186
- function ConstructorType(id, typeParameters, location) {
185
+ class ConstructorType {
186
+ constructor(id, typeParameters, location) {
187
187
  this.id = id;
188
188
  this.typeParameters = typeParameters;
189
189
  this.location = location;
190
190
  this.type = 'constructor-type';
191
191
  }
192
- return ConstructorType;
193
- }());
192
+ }
194
193
  exports.ConstructorType = ConstructorType;
195
194
  /**
196
195
  * FunctionType
197
196
  */
198
- var FunctionType = /** @class */ (function () {
199
- function FunctionType(parameters, returnType, location) {
197
+ class FunctionType {
198
+ constructor(parameters, returnType, location) {
200
199
  this.parameters = parameters;
201
200
  this.returnType = returnType;
202
201
  this.location = location;
203
202
  this.type = 'function-type';
204
203
  }
205
- return FunctionType;
206
- }());
204
+ }
207
205
  exports.FunctionType = FunctionType;
208
206
  /**
209
207
  * RecordType
210
208
  */
211
- var RecordType = /** @class */ (function () {
212
- function RecordType(members, location) {
209
+ class RecordType {
210
+ constructor(members, location) {
213
211
  this.members = members;
214
212
  this.location = location;
215
213
  this.type = 'record-type';
216
214
  }
217
- return RecordType;
218
- }());
215
+ }
219
216
  exports.RecordType = RecordType;
220
217
  /**
221
218
  * ListType
222
219
  */
223
- var ListType = /** @class */ (function () {
224
- function ListType(elementType, location) {
220
+ class ListType {
221
+ constructor(elementType, location) {
225
222
  this.elementType = elementType;
226
223
  this.location = location;
227
224
  this.type = 'list-type';
228
225
  }
229
- return ListType;
230
- }());
226
+ }
231
227
  exports.ListType = ListType;
232
228
  /**
233
229
  * TupleType
234
230
  */
235
- var TupleType = /** @class */ (function () {
236
- function TupleType(members, location) {
231
+ class TupleType {
232
+ constructor(members, location) {
237
233
  this.members = members;
238
234
  this.location = location;
239
235
  this.type = 'tuple-type';
240
236
  }
241
- return TupleType;
242
- }());
237
+ }
243
238
  exports.TupleType = TupleType;
244
239
  /**
245
240
  * TypeParameter
246
241
  */
247
- var TypedParameter = /** @class */ (function () {
248
- function TypedParameter(id, hint, location) {
242
+ class TypedParameter {
243
+ constructor(id, hint, location) {
249
244
  this.id = id;
250
245
  this.hint = hint;
251
246
  this.location = location;
252
247
  this.type = 'typed-parameter';
253
248
  }
254
- return TypedParameter;
255
- }());
249
+ }
256
250
  exports.TypedParameter = TypedParameter;
257
- var UntypedParameter = /** @class */ (function () {
258
- function UntypedParameter(id, location) {
251
+ class UntypedParameter {
252
+ constructor(id, location) {
259
253
  this.id = id;
260
254
  this.location = location;
261
255
  this.type = 'untyped-parameter';
262
256
  }
263
- return UntypedParameter;
264
- }());
257
+ }
265
258
  exports.UntypedParameter = UntypedParameter;
266
- var Node = /** @class */ (function () {
267
- function Node(open, attributes, children, close) {
259
+ class Node {
260
+ constructor(open, attributes, children, close) {
268
261
  this.open = open;
269
262
  this.attributes = attributes;
270
263
  this.children = children;
271
264
  this.close = close;
272
265
  this.type = 'node';
273
266
  }
274
- return Node;
275
- }());
267
+ }
276
268
  exports.Node = Node;
277
- var Widget = /** @class */ (function () {
278
- function Widget(open, attributes, children, close) {
269
+ class Widget {
270
+ constructor(open, attributes, children, close) {
279
271
  this.open = open;
280
272
  this.attributes = attributes;
281
273
  this.children = children;
282
274
  this.close = close;
283
275
  this.type = 'widget';
284
276
  }
285
- return Widget;
286
- }());
277
+ }
287
278
  exports.Widget = Widget;
288
- var Attribute = /** @class */ (function () {
289
- function Attribute(namespace, name, value, location) {
279
+ class Attribute {
280
+ constructor(namespace, name, value, location) {
290
281
  this.namespace = namespace;
291
282
  this.name = name;
292
283
  this.value = value;
293
284
  this.location = location;
294
285
  this.type = 'attribute';
295
286
  }
296
- return Attribute;
297
- }());
287
+ }
298
288
  exports.Attribute = Attribute;
299
- var Interpolation = /** @class */ (function () {
300
- function Interpolation(expression, filters, location) {
289
+ class Interpolation {
290
+ constructor(expression, filters, location) {
301
291
  this.expression = expression;
302
292
  this.filters = filters;
303
293
  this.location = location;
304
294
  this.type = 'interpolation';
305
295
  }
306
- return Interpolation;
307
- }());
296
+ }
308
297
  exports.Interpolation = Interpolation;
309
- var ForInStatement = /** @class */ (function () {
310
- function ForInStatement(variables, expression, body, otherwise, location) {
298
+ class ForInStatement {
299
+ constructor(variables, expression, body, otherwise, location) {
311
300
  this.variables = variables;
312
301
  this.expression = expression;
313
302
  this.body = body;
@@ -315,11 +304,10 @@ var ForInStatement = /** @class */ (function () {
315
304
  this.location = location;
316
305
  this.type = 'for-in-statement';
317
306
  }
318
- return ForInStatement;
319
- }());
307
+ }
320
308
  exports.ForInStatement = ForInStatement;
321
- var ForOfStatement = /** @class */ (function () {
322
- function ForOfStatement(variables, expression, body, otherwise, location) {
309
+ class ForOfStatement {
310
+ constructor(variables, expression, body, otherwise, location) {
323
311
  this.variables = variables;
324
312
  this.expression = expression;
325
313
  this.body = body;
@@ -327,11 +315,10 @@ var ForOfStatement = /** @class */ (function () {
327
315
  this.location = location;
328
316
  this.type = 'for-of-statement';
329
317
  }
330
- return ForOfStatement;
331
- }());
318
+ }
332
319
  exports.ForOfStatement = ForOfStatement;
333
- var ForFromStatement = /** @class */ (function () {
334
- function ForFromStatement(variable, start, end, body, otherwise, location) {
320
+ class ForFromStatement {
321
+ constructor(variable, start, end, body, otherwise, location) {
335
322
  this.variable = variable;
336
323
  this.start = start;
337
324
  this.end = end;
@@ -340,144 +327,130 @@ var ForFromStatement = /** @class */ (function () {
340
327
  this.location = location;
341
328
  this.type = 'for-from-statement';
342
329
  }
343
- return ForFromStatement;
344
- }());
330
+ }
345
331
  exports.ForFromStatement = ForFromStatement;
346
- var IfStatement = /** @class */ (function () {
347
- function IfStatement(condition, then, elseClause, location) {
332
+ class IfStatement {
333
+ constructor(condition, then, elseClause, location) {
348
334
  this.condition = condition;
349
335
  this.then = then;
350
336
  this.elseClause = elseClause;
351
337
  this.location = location;
352
338
  this.type = 'if-statement';
353
339
  }
354
- return IfStatement;
355
- }());
340
+ }
356
341
  exports.IfStatement = IfStatement;
357
- var ElseClause = /** @class */ (function () {
358
- function ElseClause(children, location) {
342
+ class ElseClause {
343
+ constructor(children, location) {
359
344
  this.children = children;
360
345
  this.location = location;
361
346
  this.type = 'else-clause';
362
347
  }
363
- return ElseClause;
364
- }());
348
+ }
365
349
  exports.ElseClause = ElseClause;
366
- var ElseIfClause = /** @class */ (function () {
367
- function ElseIfClause(condition, then, elseClause, location) {
350
+ class ElseIfClause {
351
+ constructor(condition, then, elseClause, location) {
368
352
  this.condition = condition;
369
353
  this.then = then;
370
354
  this.elseClause = elseClause;
371
355
  this.location = location;
372
356
  this.type = 'else-if-clause';
373
357
  }
374
- return ElseIfClause;
375
- }());
358
+ }
376
359
  exports.ElseIfClause = ElseIfClause;
377
- var Characters = /** @class */ (function () {
378
- function Characters(value, location) {
360
+ class Characters {
361
+ constructor(value, location) {
379
362
  this.value = value;
380
363
  this.location = location;
381
364
  this.type = 'characters';
382
365
  }
383
- return Characters;
384
- }());
366
+ }
385
367
  exports.Characters = Characters;
386
- var IfThenExpression = /** @class */ (function () {
387
- function IfThenExpression(condition, iftrue, iffalse, location) {
368
+ class IfThenExpression {
369
+ constructor(condition, iftrue, iffalse, location) {
388
370
  this.condition = condition;
389
371
  this.iftrue = iftrue;
390
372
  this.iffalse = iffalse;
391
373
  this.location = location;
392
374
  this.type = 'if-then-expression';
393
375
  }
394
- return IfThenExpression;
395
- }());
376
+ }
396
377
  exports.IfThenExpression = IfThenExpression;
397
- var BinaryExpression = /** @class */ (function () {
398
- function BinaryExpression(left, operator, right, location) {
378
+ class BinaryExpression {
379
+ constructor(left, operator, right, location) {
399
380
  this.left = left;
400
381
  this.operator = operator;
401
382
  this.right = right;
402
383
  this.location = location;
403
384
  this.type = 'binary-expression';
404
385
  }
405
- return BinaryExpression;
406
- }());
386
+ }
407
387
  exports.BinaryExpression = BinaryExpression;
408
- var UnaryExpression = /** @class */ (function () {
409
- function UnaryExpression(operator, expression) {
388
+ class UnaryExpression {
389
+ constructor(operator, expression) {
410
390
  this.operator = operator;
411
391
  this.expression = expression;
412
392
  this.type = 'unary-expression';
413
393
  }
414
- return UnaryExpression;
415
- }());
394
+ }
416
395
  exports.UnaryExpression = UnaryExpression;
417
- var TypeAssertion = /** @class */ (function () {
418
- function TypeAssertion(target, expression) {
396
+ class TypeAssertion {
397
+ constructor(target, expression) {
419
398
  this.target = target;
420
399
  this.expression = expression;
421
400
  this.type = 'type-assertion';
422
401
  }
423
- return TypeAssertion;
424
- }());
402
+ }
425
403
  exports.TypeAssertion = TypeAssertion;
426
- var ViewConstruction = /** @class */ (function () {
427
- function ViewConstruction(expression, location) {
404
+ class ViewConstruction {
405
+ constructor(expression, location) {
428
406
  this.expression = expression;
429
407
  this.location = location;
430
408
  this.type = 'view-construction';
431
409
  }
432
- return ViewConstruction;
433
- }());
410
+ }
434
411
  exports.ViewConstruction = ViewConstruction;
435
- var FunApplication = /** @class */ (function () {
436
- function FunApplication(target, typeArgs, args, location) {
412
+ class FunApplication {
413
+ constructor(target, typeArgs, args, location) {
437
414
  this.target = target;
438
415
  this.typeArgs = typeArgs;
439
416
  this.args = args;
440
417
  this.location = location;
441
418
  this.type = 'fun-application';
442
419
  }
443
- return FunApplication;
444
- }());
420
+ }
445
421
  exports.FunApplication = FunApplication;
446
- var ConstructExpression = /** @class */ (function () {
447
- function ConstructExpression(cons, args, location) {
422
+ class ConstructExpression {
423
+ constructor(cons, args, location) {
448
424
  this.cons = cons;
449
425
  this.args = args;
450
426
  this.location = location;
451
427
  this.type = 'construct-expression';
452
428
  }
453
- return ConstructExpression;
454
- }());
429
+ }
455
430
  exports.ConstructExpression = ConstructExpression;
456
- var CallExpression = /** @class */ (function () {
457
- function CallExpression(target, typeArgs, args, location) {
431
+ class CallExpression {
432
+ constructor(target, typeArgs, args, location) {
458
433
  this.target = target;
459
434
  this.typeArgs = typeArgs;
460
435
  this.args = args;
461
436
  this.location = location;
462
437
  this.type = 'call-expression';
463
438
  }
464
- return CallExpression;
465
- }());
439
+ }
466
440
  exports.CallExpression = CallExpression;
467
441
  /**
468
442
  * MemberExpression
469
443
  */
470
- var MemberExpression = /** @class */ (function () {
471
- function MemberExpression(target, member, location) {
472
- this.target = target;
473
- this.member = member;
444
+ class MemberExpression {
445
+ constructor(head, tail, location) {
446
+ this.head = head;
447
+ this.tail = tail;
474
448
  this.location = location;
475
449
  }
476
- return MemberExpression;
477
- }());
450
+ }
478
451
  exports.MemberExpression = MemberExpression;
479
- var ReadExpression = /** @class */ (function () {
480
- function ReadExpression(target, path, hint, defaults, location) {
452
+ class ReadExpression {
453
+ constructor(target, path, hint, defaults, location) {
481
454
  this.target = target;
482
455
  this.path = path;
483
456
  this.hint = hint;
@@ -485,130 +458,116 @@ var ReadExpression = /** @class */ (function () {
485
458
  this.location = location;
486
459
  this.type = 'read-expression';
487
460
  }
488
- return ReadExpression;
489
- }());
461
+ }
490
462
  exports.ReadExpression = ReadExpression;
491
- var FunctionExpression = /** @class */ (function () {
492
- function FunctionExpression(parameters, body, location) {
463
+ class FunctionExpression {
464
+ constructor(parameters, body, location) {
493
465
  this.parameters = parameters;
494
466
  this.body = body;
495
467
  this.location = location;
496
468
  this.type = 'function-expression';
497
469
  }
498
- return FunctionExpression;
499
- }());
470
+ }
500
471
  exports.FunctionExpression = FunctionExpression;
501
- var List = /** @class */ (function () {
502
- function List(members, location) {
472
+ class List {
473
+ constructor(members, location) {
503
474
  this.members = members;
504
475
  this.location = location;
505
476
  this.type = 'list';
506
477
  }
507
- return List;
508
- }());
478
+ }
509
479
  exports.List = List;
510
- var Record = /** @class */ (function () {
511
- function Record(properties, location) {
480
+ class Record {
481
+ constructor(properties, location) {
512
482
  this.properties = properties;
513
483
  this.location = location;
514
484
  this.type = 'record';
515
485
  }
516
- return Record;
517
- }());
486
+ }
518
487
  exports.Record = Record;
519
- var Property = /** @class */ (function () {
520
- function Property(key, value, location) {
488
+ class Property {
489
+ constructor(key, value, location) {
521
490
  this.key = key;
522
491
  this.value = value;
523
492
  this.location = location;
524
493
  this.type = 'property';
525
494
  }
526
- return Property;
527
- }());
495
+ }
528
496
  exports.Property = Property;
529
- var StringLiteral = /** @class */ (function () {
530
- function StringLiteral(value, location) {
497
+ class StringLiteral {
498
+ constructor(value, location) {
531
499
  this.value = value;
532
500
  this.location = location;
533
501
  this.type = 'string';
534
502
  }
535
- return StringLiteral;
536
- }());
503
+ }
537
504
  exports.StringLiteral = StringLiteral;
538
- var NumberLiteral = /** @class */ (function () {
539
- function NumberLiteral(value, location) {
505
+ class NumberLiteral {
506
+ constructor(value, location) {
540
507
  this.value = value;
541
508
  this.location = location;
542
509
  this.type = 'number-literal';
543
510
  }
544
- return NumberLiteral;
545
- }());
511
+ }
546
512
  exports.NumberLiteral = NumberLiteral;
547
- var BooleanLiteral = /** @class */ (function () {
548
- function BooleanLiteral(value, location) {
513
+ class BooleanLiteral {
514
+ constructor(value, location) {
549
515
  this.value = value;
550
516
  this.location = location;
551
517
  this.type = 'boolean-literal';
552
518
  }
553
- return BooleanLiteral;
554
- }());
519
+ }
555
520
  exports.BooleanLiteral = BooleanLiteral;
556
- var ContextProperty = /** @class */ (function () {
557
- function ContextProperty(member, location) {
521
+ class ContextProperty {
522
+ constructor(member, location) {
558
523
  this.member = member;
559
524
  this.location = location;
560
525
  this.type = 'context-property';
561
526
  }
562
- return ContextProperty;
563
- }());
527
+ }
564
528
  exports.ContextProperty = ContextProperty;
565
- var ContextVariable = /** @class */ (function () {
566
- function ContextVariable(location) {
529
+ class ContextVariable {
530
+ constructor(location) {
567
531
  this.location = location;
568
532
  this.type = 'context-variable';
569
533
  }
570
- return ContextVariable;
571
- }());
534
+ }
572
535
  exports.ContextVariable = ContextVariable;
573
- var UnqualifiedConstructor = /** @class */ (function () {
574
- function UnqualifiedConstructor(value, location) {
536
+ class UnqualifiedConstructor {
537
+ constructor(value, location) {
575
538
  this.value = value;
576
539
  this.location = location;
577
540
  this.type = 'unqualified-constructor';
578
541
  }
579
- return UnqualifiedConstructor;
580
- }());
542
+ }
581
543
  exports.UnqualifiedConstructor = UnqualifiedConstructor;
582
- var QualifiedConstructor = /** @class */ (function () {
583
- function QualifiedConstructor(qualifier, member, location) {
544
+ class QualifiedConstructor {
545
+ constructor(qualifier, member, location) {
584
546
  this.qualifier = qualifier;
585
547
  this.member = member;
586
548
  this.location = location;
587
549
  this.type = 'qualified-constructor';
588
550
  }
589
- return QualifiedConstructor;
590
- }());
551
+ }
591
552
  exports.QualifiedConstructor = QualifiedConstructor;
592
- var UnqualifiedIdentifier = /** @class */ (function () {
593
- function UnqualifiedIdentifier(value, location) {
553
+ class UnqualifiedIdentifier {
554
+ constructor(value, location) {
594
555
  this.value = value;
595
556
  this.location = location;
596
557
  this.type = 'unqualified-identifier';
597
558
  }
598
- return UnqualifiedIdentifier;
599
- }());
559
+ }
600
560
  exports.UnqualifiedIdentifier = UnqualifiedIdentifier;
601
561
  /**
602
562
  * QualifiedIdentifier
603
563
  */
604
- var QualifiedIdentifier = /** @class */ (function () {
605
- function QualifiedIdentifier(qualifier, member, location) {
564
+ class QualifiedIdentifier {
565
+ constructor(qualifier, member, location) {
606
566
  this.qualifier = qualifier;
607
567
  this.member = member;
608
568
  this.location = location;
609
569
  this.type = 'qualified-identifier';
610
570
  }
611
- return QualifiedIdentifier;
612
- }());
571
+ }
613
572
  exports.QualifiedIdentifier = QualifiedIdentifier;
614
573
  //# sourceMappingURL=ast.js.map