oxlint 1.77.0 → 1.78.0

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/dist/lint.js CHANGED
@@ -810,7 +810,7 @@ function resetComments() {
810
810
  }
811
811
  //#endregion
812
812
  //#region src-js/generated/deserialize.js
813
- const BufferPrototype$1 = Buffer.prototype, ObjectCreate$1 = Object.create, ObjectPrototype = Object.prototype, StringFromCodePoint = String.fromCodePoint, ObjectHasOwn$4 = Object.hasOwn;
813
+ const BufferPrototype$1 = Buffer.prototype, ObjectCreate$1 = Object.create, ObjectPrototype = Object.prototype, StringFromCodePoint = String.fromCodePoint;
814
814
  let uint8, int32, float64, sourceText$1, sourceTextLatin, sourceStartPos$1 = 0, firstNonAsciiPos = 0, parent = null;
815
815
  const { fromCharCode } = String, { utf8Slice: utf8Slice$1, latin1Slice } = BufferPrototype$1, stringDecodeArrays = Array(65).fill(null);
816
816
  for (let i = 0; i <= 64; i++) stringDecodeArrays[i] = Array(i).fill(0);
@@ -1765,9 +1765,10 @@ function deserializeStatement(pos) {
1765
1765
  case 35: return deserializeBoxTSTypeAliasDeclaration(pos + 8);
1766
1766
  case 36: return deserializeBoxTSInterfaceDeclaration(pos + 8);
1767
1767
  case 37: return deserializeBoxTSEnumDeclaration(pos + 8);
1768
- case 38: return deserializeBoxTSModuleDeclaration(pos + 8);
1769
- case 39: return deserializeBoxTSGlobalDeclaration(pos + 8);
1770
- case 40: return deserializeBoxTSImportEqualsDeclaration(pos + 8);
1768
+ case 38: return deserializeBoxTSExternalModuleDeclaration(pos + 8);
1769
+ case 39: return deserializeBoxTSNamespaceDeclaration(pos + 8);
1770
+ case 40: return deserializeBoxTSGlobalDeclaration(pos + 8);
1771
+ case 41: return deserializeBoxTSImportEqualsDeclaration(pos + 8);
1771
1772
  case 64: return deserializeBoxImportDeclaration(pos + 8);
1772
1773
  case 65: return deserializeBoxExportAllDeclaration(pos + 8);
1773
1774
  case 66: return deserializeBoxExportDefaultDeclaration(pos + 8);
@@ -1812,9 +1813,10 @@ function deserializeDeclaration(pos) {
1812
1813
  case 35: return deserializeBoxTSTypeAliasDeclaration(pos + 8);
1813
1814
  case 36: return deserializeBoxTSInterfaceDeclaration(pos + 8);
1814
1815
  case 37: return deserializeBoxTSEnumDeclaration(pos + 8);
1815
- case 38: return deserializeBoxTSModuleDeclaration(pos + 8);
1816
- case 39: return deserializeBoxTSGlobalDeclaration(pos + 8);
1817
- case 40: return deserializeBoxTSImportEqualsDeclaration(pos + 8);
1816
+ case 38: return deserializeBoxTSExternalModuleDeclaration(pos + 8);
1817
+ case 39: return deserializeBoxTSNamespaceDeclaration(pos + 8);
1818
+ case 40: return deserializeBoxTSGlobalDeclaration(pos + 8);
1819
+ case 41: return deserializeBoxTSImportEqualsDeclaration(pos + 8);
1818
1820
  default: throw Error(`Unexpected discriminant ${uint8[pos]} for Declaration`);
1819
1821
  }
1820
1822
  }
@@ -1848,7 +1850,7 @@ function deserializeVariableDeclarator(pos) {
1848
1850
  type: "VariableDeclarator",
1849
1851
  id: null,
1850
1852
  init: null,
1851
- definite: deserializeBool(pos + 13),
1853
+ definite: deserializeBool(pos + 12),
1852
1854
  start: start = deserializeI32(pos),
1853
1855
  end: end = deserializeI32(pos + 4),
1854
1856
  range: [start, end],
@@ -2513,8 +2515,8 @@ function deserializeClass(pos) {
2513
2515
  end: end = deserializeI32(pos + 4),
2514
2516
  range: [start, end],
2515
2517
  parent
2516
- };
2517
- return node.decorators = deserializeVecDecorator(pos + 16), node.id = deserializeOptionBindingIdentifier(pos + 40), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 72), node.superClass = deserializeOptionExpression(pos + 80), node.superTypeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 96), node.implements = deserializeVecTSClassImplements(pos + 104), node.body = deserializeBoxClassBody(pos + 128), parent = previousParent, node;
2518
+ }, superClass = deserializeOptionExpression(pos + 80);
2519
+ return node.decorators = deserializeVecDecorator(pos + 16), node.id = deserializeOptionBindingIdentifier(pos + 40), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 72), node.superClass = superClass, node.superTypeArguments = superClass === null ? null : deserializeOptionBoxTSTypeParameterInstantiation(pos + 80 + (pos + 16 - pos)), node.implements = deserializeVecTSClassImplements(pos + 104), node.body = deserializeBoxClassBody(pos + 128), parent = previousParent, node;
2518
2520
  }
2519
2521
  function deserializeClassType(pos) {
2520
2522
  switch (uint8[pos]) {
@@ -4135,8 +4137,41 @@ function deserializeTSInterfaceHeritage(pos) {
4135
4137
  end: end = deserializeI32(pos + 4),
4136
4138
  range: [start, end],
4137
4139
  parent
4138
- };
4139
- return node.expression = deserializeExpression(pos + 16), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), parent = previousParent, node;
4140
+ }, expression = deserializeTSTypeName(pos + 16);
4141
+ if (expression.type === "TSQualifiedName") {
4142
+ let object = expression.left, { right } = expression, start, end, previous = expression = {
4143
+ __proto__: NodeProto,
4144
+ type: "MemberExpression",
4145
+ object,
4146
+ property: right,
4147
+ optional: !1,
4148
+ computed: !1,
4149
+ start: start = expression.start,
4150
+ end: end = expression.end,
4151
+ range: [start, end],
4152
+ parent
4153
+ };
4154
+ for (right.parent = previous;;) {
4155
+ if (object.type !== "TSQualifiedName") {
4156
+ object.parent = previous;
4157
+ break;
4158
+ }
4159
+ let { left, right } = object;
4160
+ previous = previous.object = {
4161
+ __proto__: NodeProto,
4162
+ type: "MemberExpression",
4163
+ object: left,
4164
+ property: right,
4165
+ optional: !1,
4166
+ computed: !1,
4167
+ start: start = object.start,
4168
+ end: end = object.end,
4169
+ range: [start, end],
4170
+ parent: previous
4171
+ }, right.parent = previous, object = left;
4172
+ }
4173
+ }
4174
+ return node.expression = expression, node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), parent = previousParent, node;
4140
4175
  }
4141
4176
  function deserializeTSTypePredicate(pos) {
4142
4177
  let start, end, previousParent = parent, node = parent = {
@@ -4159,12 +4194,28 @@ function deserializeTSTypePredicateName(pos) {
4159
4194
  default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSTypePredicateName`);
4160
4195
  }
4161
4196
  }
4162
- function deserializeTSModuleDeclaration(pos) {
4163
- let kind = deserializeTSModuleDeclarationKind(pos + 88), start = deserializeI32(pos), end = deserializeI32(pos + 4), declare = deserializeBool(pos + 89), node, previousParent = parent, body = deserializeOptionTSModuleDeclarationBody(pos + 72);
4164
- if (body === null) node = parent = {
4197
+ function deserializeTSExternalModuleDeclaration(pos) {
4198
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4), declare = deserializeBool(pos + 72), previousParent = parent, body = deserializeOptionBoxTSModuleBlock(pos + 64), node = parent = {
4199
+ __proto__: NodeProto,
4200
+ type: "TSModuleDeclaration",
4201
+ id: null,
4202
+ ...body !== null && { body },
4203
+ kind: "module",
4204
+ declare,
4205
+ global: !1,
4206
+ start,
4207
+ end,
4208
+ range: [start, end],
4209
+ parent
4210
+ };
4211
+ return node.id = deserializeStringLiteral(pos + 16), body !== null && (body.parent = node), parent = previousParent, node;
4212
+ }
4213
+ function deserializeTSNamespaceDeclaration(pos) {
4214
+ let kind = deserializeTSNamespaceDeclarationKind(pos + 64), start = deserializeI32(pos), end = deserializeI32(pos + 4), declare = deserializeBool(pos + 65), previousParent = parent, body = deserializeTSNamespaceDeclarationBody(pos + 48), node = parent = {
4165
4215
  __proto__: NodeProto,
4166
4216
  type: "TSModuleDeclaration",
4167
4217
  id: null,
4218
+ body,
4168
4219
  kind,
4169
4220
  declare,
4170
4221
  global: !1,
@@ -4172,77 +4223,54 @@ function deserializeTSModuleDeclaration(pos) {
4172
4223
  end,
4173
4224
  range: [start, end],
4174
4225
  parent
4175
- }, node.id = deserializeTSModuleDeclarationName(pos + 16);
4226
+ }, id = deserializeBindingIdentifier(pos + 16);
4227
+ if (body.type === "TSModuleBlock") node.id = id, body.parent = node;
4176
4228
  else {
4177
- node = parent = {
4178
- __proto__: NodeProto,
4179
- type: "TSModuleDeclaration",
4180
- id: null,
4181
- body,
4182
- kind,
4183
- declare,
4184
- global: !1,
4185
- start,
4186
- end,
4187
- range: [start, end],
4188
- parent
4189
- };
4190
- let id = deserializeTSModuleDeclarationName(pos + 16);
4191
- if (body.type === "TSModuleBlock") node.id = id, body.parent = node;
4192
- else {
4193
- let innerId = body.id;
4194
- if (innerId.type === "Identifier") {
4195
- let start, end, outerId = node.id = parent = {
4196
- __proto__: NodeProto,
4197
- type: "TSQualifiedName",
4198
- left: id,
4199
- right: innerId,
4200
- start: start = id.start,
4201
- end: end = innerId.end,
4202
- range: [start, end],
4203
- parent: node
4204
- };
4205
- id.parent = innerId.parent = outerId;
4206
- } else {
4207
- node.id = innerId, innerId.parent = node;
4208
- let { start } = id;
4209
- for (; innerId.start = innerId.range[0] = start, innerId.left.type !== "Identifier";) innerId = innerId.left;
4210
- let end, right = innerId.left;
4211
- id.parent = right.parent = innerId.left = {
4212
- __proto__: NodeProto,
4213
- type: "TSQualifiedName",
4214
- left: id,
4215
- right,
4216
- start,
4217
- end: end = right.end,
4218
- range: [start, end],
4219
- parent: innerId
4220
- };
4221
- }
4222
- ObjectHasOwn$4(body, "body") ? (body = body.body, node.body = body, body.parent = node) : body = null;
4229
+ let innerId = body.id;
4230
+ if (innerId.type === "Identifier") {
4231
+ let start, end, outerId = node.id = parent = {
4232
+ __proto__: NodeProto,
4233
+ type: "TSQualifiedName",
4234
+ left: id,
4235
+ right: innerId,
4236
+ start: start = id.start,
4237
+ end: end = innerId.end,
4238
+ range: [start, end],
4239
+ parent: node
4240
+ };
4241
+ id.parent = innerId.parent = outerId;
4242
+ } else {
4243
+ node.id = innerId, innerId.parent = node;
4244
+ let { start } = id;
4245
+ for (; innerId.start = innerId.range[0] = start, innerId.left.type !== "Identifier";) innerId = innerId.left;
4246
+ let end, right = innerId.left;
4247
+ id.parent = right.parent = innerId.left = {
4248
+ __proto__: NodeProto,
4249
+ type: "TSQualifiedName",
4250
+ left: id,
4251
+ right,
4252
+ start,
4253
+ end: end = right.end,
4254
+ range: [start, end],
4255
+ parent: innerId
4256
+ };
4223
4257
  }
4258
+ body = body.body, node.body = body, body.parent = node;
4224
4259
  }
4225
4260
  return parent = previousParent, node;
4226
4261
  }
4227
- function deserializeTSModuleDeclarationKind(pos) {
4262
+ function deserializeTSNamespaceDeclarationKind(pos) {
4228
4263
  switch (uint8[pos]) {
4229
4264
  case 0: return "module";
4230
4265
  case 1: return "namespace";
4231
- default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSModuleDeclarationKind`);
4232
- }
4233
- }
4234
- function deserializeTSModuleDeclarationName(pos) {
4235
- switch (uint8[pos]) {
4236
- case 0: return deserializeBindingIdentifier(pos + 8);
4237
- case 1: return deserializeStringLiteral(pos + 8);
4238
- default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSModuleDeclarationName`);
4266
+ default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSNamespaceDeclarationKind`);
4239
4267
  }
4240
4268
  }
4241
- function deserializeTSModuleDeclarationBody(pos) {
4269
+ function deserializeTSNamespaceDeclarationBody(pos) {
4242
4270
  switch (uint8[pos]) {
4243
- case 0: return deserializeBoxTSModuleDeclaration(pos + 8);
4271
+ case 0: return deserializeBoxTSNamespaceDeclaration(pos + 8);
4244
4272
  case 1: return deserializeBoxTSModuleBlock(pos + 8);
4245
- default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSModuleDeclarationBody`);
4273
+ default: throw Error(`Unexpected discriminant ${uint8[pos]} for TSNamespaceDeclarationBody`);
4246
4274
  }
4247
4275
  }
4248
4276
  function deserializeTSGlobalDeclaration(pos) {
@@ -5027,8 +5055,11 @@ function deserializeBoxTSInterfaceDeclaration(pos) {
5027
5055
  function deserializeBoxTSEnumDeclaration(pos) {
5028
5056
  return deserializeTSEnumDeclaration(int32[pos >> 2]);
5029
5057
  }
5030
- function deserializeBoxTSModuleDeclaration(pos) {
5031
- return deserializeTSModuleDeclaration(int32[pos >> 2]);
5058
+ function deserializeBoxTSExternalModuleDeclaration(pos) {
5059
+ return deserializeTSExternalModuleDeclaration(int32[pos >> 2]);
5060
+ }
5061
+ function deserializeBoxTSNamespaceDeclaration(pos) {
5062
+ return deserializeTSNamespaceDeclaration(int32[pos >> 2]);
5032
5063
  }
5033
5064
  function deserializeBoxTSGlobalDeclaration(pos) {
5034
5065
  return deserializeTSGlobalDeclaration(int32[pos >> 2]);
@@ -5499,12 +5530,12 @@ function deserializeBoxTSConstructSignatureDeclaration(pos) {
5499
5530
  function deserializeBoxTSMethodSignature(pos) {
5500
5531
  return deserializeTSMethodSignature(int32[pos >> 2]);
5501
5532
  }
5502
- function deserializeOptionTSModuleDeclarationBody(pos) {
5503
- return uint8[pos] === 2 ? null : deserializeTSModuleDeclarationBody(pos);
5504
- }
5505
5533
  function deserializeBoxTSModuleBlock(pos) {
5506
5534
  return deserializeTSModuleBlock(int32[pos >> 2]);
5507
5535
  }
5536
+ function deserializeOptionBoxTSModuleBlock(pos) {
5537
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSModuleBlock(pos);
5538
+ }
5508
5539
  function deserializeBoxTSTypeParameter(pos) {
5509
5540
  return deserializeTSTypeParameter(int32[pos >> 2]);
5510
5541
  }
@@ -11382,8 +11413,10 @@ var require_eslint_visitor_keys = /* @__PURE__ */ __commonJSMin(((exports) => {
11382
11413
  for (let key of children) {
11383
11414
  if (exclude.has(key)) continue;
11384
11415
  let child = node[key];
11385
- if (child) if (Array.isArray(child)) for (let subChild of child) isNode(subChild) && this.visit(subChild);
11386
- else isNode(child) && this.visit(child);
11416
+ if (child) {
11417
+ if (Array.isArray(child)) for (let subChild of child) isNode(subChild) && this.visit(subChild);
11418
+ else isNode(child) && this.visit(child);
11419
+ }
11387
11420
  }
11388
11421
  }
11389
11422
  /**
@@ -14249,7 +14282,7 @@ function resetSettings() {
14249
14282
  }
14250
14283
  //#endregion
14251
14284
  //#region package.json
14252
- var version = "1.77.0";
14285
+ var version = "1.78.0";
14253
14286
  //#endregion
14254
14287
  //#region src-js/plugins/context.ts
14255
14288
  const ObjectFreeze$1 = Object.freeze, ObjectCreate = Object.create, ObjectAssign = Object.assign, ObjectPreventExtensions = Object.preventExtensions;
@@ -15349,8 +15382,10 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15349
15382
  */
15350
15383
  function resolve(compile, root, ref) {
15351
15384
  var refVal = this._refs[ref];
15352
- if (typeof refVal == "string") if (this._refs[refVal]) refVal = this._refs[refVal];
15353
- else return resolve.call(this, compile, root, refVal);
15385
+ if (typeof refVal == "string") {
15386
+ if (this._refs[refVal]) refVal = this._refs[refVal];
15387
+ else return resolve.call(this, compile, root, refVal);
15388
+ }
15354
15389
  if (refVal ||= this._schemas[ref], refVal instanceof SchemaObject) return inlineRef(refVal.schema, this._opts.inlineRefs) ? refVal.schema : refVal.validate || this._compile(refVal);
15355
15390
  var res = resolveSchema.call(this, root, ref), schema, v, baseId;
15356
15391
  return res && (schema = res.schema, root = res.root, baseId = res.baseId), schema instanceof SchemaObject ? v = schema.validate || compile.call(this, schema.schema, root, void 0, baseId) : schema !== void 0 && (v = inlineRef(schema, this._opts.inlineRefs) ? schema : compile.call(this, schema, root, void 0, baseId)), v;
@@ -15480,10 +15515,12 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15480
15515
  var refVal = self._refs[id];
15481
15516
  if (typeof refVal == "string" && (refVal = self._refs[refVal]), refVal && refVal.schema) {
15482
15517
  if (!equal(sch, refVal.schema)) throw Error("id \"" + id + "\" resolves to more than one schema");
15483
- } else if (id != normalizeId(fullPath)) if (id[0] == "#") {
15484
- if (localRefs[id] && !equal(sch, localRefs[id])) throw Error("id \"" + id + "\" resolves to more than one schema");
15485
- localRefs[id] = sch;
15486
- } else self._refs[id] = fullPath;
15518
+ } else if (id != normalizeId(fullPath)) {
15519
+ if (id[0] == "#") {
15520
+ if (localRefs[id] && !equal(sch, localRefs[id])) throw Error("id \"" + id + "\" resolves to more than one schema");
15521
+ localRefs[id] = sch;
15522
+ } else self._refs[id] = fullPath;
15523
+ }
15487
15524
  }
15488
15525
  baseIds[jsonPtr] = baseId, fullPaths[jsonPtr] = fullPath;
15489
15526
  }
@@ -16421,10 +16458,12 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16421
16458
  }
16422
16459
  if (out += "var " + $errs + " = errors;var " + $nextValid + " = true;", $ownProperties && (out += " var " + $dataProperties + " = undefined;"), $checkAdditional) {
16423
16460
  if (out += $ownProperties ? " " + $dataProperties + " = " + $dataProperties + " || Object.keys(" + $data + "); for (var " + $idx + "=0; " + $idx + "<" + $dataProperties + ".length; " + $idx + "++) { var " + $key + " = " + $dataProperties + "[" + $idx + "]; " : " for (var " + $key + " in " + $data + ") { ", $someProperties) {
16424
- if (out += " var isAdditional" + $lvl + " = !(false ", $schemaKeys.length) if ($schemaKeys.length > 8) out += " || validate.schema" + $schemaPath + ".hasOwnProperty(" + $key + ") ";
16425
- else {
16426
- var arr1 = $schemaKeys;
16427
- if (arr1) for (var $propertyKey, i1 = -1, l1 = arr1.length - 1; i1 < l1;) $propertyKey = arr1[i1 += 1], out += " || " + $key + " == " + it.util.toQuotedString($propertyKey) + " ";
16461
+ if (out += " var isAdditional" + $lvl + " = !(false ", $schemaKeys.length) {
16462
+ if ($schemaKeys.length > 8) out += " || validate.schema" + $schemaPath + ".hasOwnProperty(" + $key + ") ";
16463
+ else {
16464
+ var arr1 = $schemaKeys;
16465
+ if (arr1) for (var $propertyKey, i1 = -1, l1 = arr1.length - 1; i1 < l1;) $propertyKey = arr1[i1 += 1], out += " || " + $key + " == " + it.util.toQuotedString($propertyKey) + " ";
16466
+ }
16428
16467
  }
16429
16468
  if ($pPropertyKeys.length) {
16430
16469
  var arr2 = $pPropertyKeys;
@@ -16435,32 +16474,35 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16435
16474
  if ($removeAdditional == "all") out += " delete " + $data + "[" + $key + "]; ";
16436
16475
  else {
16437
16476
  var $currentErrorPath = it.errorPath, $additionalProperty = "' + " + $key + " + '";
16438
- if (it.opts._errorDataPathProperty && (it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers)), $noAdditional) if ($removeAdditional) out += " delete " + $data + "[" + $key + "]; ";
16439
- else {
16440
- out += " " + $nextValid + " = false; ";
16441
- var $currErrSchemaPath = $errSchemaPath;
16442
- $errSchemaPath = it.errSchemaPath + "/additionalProperties";
16443
- var $$outStack = $$outStack || [];
16444
- $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { additionalProperty: '" + $additionalProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is an invalid additional property" : out += "should NOT have additional properties", out += "' "), it.opts.verbose && (out += " , schema: false , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16445
- var __err = out;
16446
- out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16447
- /* istanbul ignore if */
16448
- it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", $errSchemaPath = $currErrSchemaPath, $breakOnError && (out += " break; ");
16449
- }
16450
- else if ($additionalIsSchema) if ($removeAdditional == "failing") {
16451
- out += " var " + $errs + " = errors; ";
16452
- var $wasComposite = it.compositeRule;
16453
- it.compositeRule = $it.compositeRule = !0, $it.schema = $aProperties, $it.schemaPath = it.schemaPath + ".additionalProperties", $it.errSchemaPath = it.errSchemaPath + "/additionalProperties", $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
16454
- var $passData = $data + "[" + $key + "]";
16455
- $it.dataPathArr[$dataNxt] = $key;
16456
- var $code = it.validate($it);
16457
- $it.baseId = $currentBaseId, it.util.varOccurences($code, $nextData) < 2 ? out += " " + it.util.varReplace($code, $nextData, $passData) + " " : out += " var " + $nextData + " = " + $passData + "; " + $code + " ", out += " if (!" + $nextValid + ") { errors = " + $errs + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + $data + "[" + $key + "]; } ", it.compositeRule = $it.compositeRule = $wasComposite;
16458
- } else {
16459
- $it.schema = $aProperties, $it.schemaPath = it.schemaPath + ".additionalProperties", $it.errSchemaPath = it.errSchemaPath + "/additionalProperties", $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
16460
- var $passData = $data + "[" + $key + "]";
16461
- $it.dataPathArr[$dataNxt] = $key;
16462
- var $code = it.validate($it);
16463
- $it.baseId = $currentBaseId, it.util.varOccurences($code, $nextData) < 2 ? out += " " + it.util.varReplace($code, $nextData, $passData) + " " : out += " var " + $nextData + " = " + $passData + "; " + $code + " ", $breakOnError && (out += " if (!" + $nextValid + ") break; ");
16477
+ if (it.opts._errorDataPathProperty && (it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers)), $noAdditional) {
16478
+ if ($removeAdditional) out += " delete " + $data + "[" + $key + "]; ";
16479
+ else {
16480
+ out += " " + $nextValid + " = false; ";
16481
+ var $currErrSchemaPath = $errSchemaPath;
16482
+ $errSchemaPath = it.errSchemaPath + "/additionalProperties";
16483
+ var $$outStack = $$outStack || [];
16484
+ $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { additionalProperty: '" + $additionalProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is an invalid additional property" : out += "should NOT have additional properties", out += "' "), it.opts.verbose && (out += " , schema: false , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16485
+ var __err = out;
16486
+ out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16487
+ /* istanbul ignore if */
16488
+ it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", $errSchemaPath = $currErrSchemaPath, $breakOnError && (out += " break; ");
16489
+ }
16490
+ } else if ($additionalIsSchema) {
16491
+ if ($removeAdditional == "failing") {
16492
+ out += " var " + $errs + " = errors; ";
16493
+ var $wasComposite = it.compositeRule;
16494
+ it.compositeRule = $it.compositeRule = !0, $it.schema = $aProperties, $it.schemaPath = it.schemaPath + ".additionalProperties", $it.errSchemaPath = it.errSchemaPath + "/additionalProperties", $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
16495
+ var $passData = $data + "[" + $key + "]";
16496
+ $it.dataPathArr[$dataNxt] = $key;
16497
+ var $code = it.validate($it);
16498
+ $it.baseId = $currentBaseId, it.util.varOccurences($code, $nextData) < 2 ? out += " " + it.util.varReplace($code, $nextData, $passData) + " " : out += " var " + $nextData + " = " + $passData + "; " + $code + " ", out += " if (!" + $nextValid + ") { errors = " + $errs + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + $data + "[" + $key + "]; } ", it.compositeRule = $it.compositeRule = $wasComposite;
16499
+ } else {
16500
+ $it.schema = $aProperties, $it.schemaPath = it.schemaPath + ".additionalProperties", $it.errSchemaPath = it.errSchemaPath + "/additionalProperties", $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
16501
+ var $passData = $data + "[" + $key + "]";
16502
+ $it.dataPathArr[$dataNxt] = $key;
16503
+ var $code = it.validate($it);
16504
+ $it.baseId = $currentBaseId, it.util.varOccurences($code, $nextData) < 2 ? out += " " + it.util.varReplace($code, $nextData, $passData) + " " : out += " var " + $nextData + " = " + $passData + "; " + $code + " ", $breakOnError && (out += " if (!" + $nextValid + ") break; ");
16505
+ }
16464
16506
  }
16465
16507
  it.errorPath = $currentErrorPath;
16466
16508
  }
@@ -16541,45 +16583,48 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16541
16583
  var out = " ", $lvl = it.level, $dataLvl = it.dataLevel, $schema = it.schema[$keyword], $schemaPath = it.schemaPath + it.util.getProperty($keyword), $errSchemaPath = it.errSchemaPath + "/" + $keyword, $breakOnError = !it.opts.allErrors, $data = "data" + ($dataLvl || ""), $valid = "valid" + $lvl, $isData = it.opts.$data && $schema && $schema.$data;
16542
16584
  $isData && (out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ", "" + $lvl);
16543
16585
  var $vSchema = "schema" + $lvl;
16544
- if (!$isData) if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
16545
- var $required = [], arr1 = $schema;
16546
- if (arr1) for (var $property, i1 = -1, l1 = arr1.length - 1; i1 < l1;) {
16547
- $property = arr1[i1 += 1];
16548
- var $propertySch = it.schema.properties[$property];
16549
- $propertySch && (it.opts.strictKeywords ? typeof $propertySch == "object" && Object.keys($propertySch).length > 0 || $propertySch === !1 : it.util.schemaHasRules($propertySch, it.RULES.all)) || ($required[$required.length] = $property);
16550
- }
16551
- } else var $required = $schema;
16586
+ if (!$isData) {
16587
+ if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
16588
+ var $required = [], arr1 = $schema;
16589
+ if (arr1) for (var $property, i1 = -1, l1 = arr1.length - 1; i1 < l1;) {
16590
+ $property = arr1[i1 += 1];
16591
+ var $propertySch = it.schema.properties[$property];
16592
+ $propertySch && (it.opts.strictKeywords ? typeof $propertySch == "object" && Object.keys($propertySch).length > 0 || $propertySch === !1 : it.util.schemaHasRules($propertySch, it.RULES.all)) || ($required[$required.length] = $property);
16593
+ }
16594
+ } else var $required = $schema;
16595
+ }
16552
16596
  if ($isData || $required.length) {
16553
16597
  var $currentErrorPath = it.errorPath, $loopRequired = $isData || $required.length >= it.opts.loopRequired, $ownProperties = it.opts.ownProperties;
16554
- if ($breakOnError) if (out += " var missing" + $lvl + "; ", $loopRequired) {
16555
- $isData || (out += " var " + $vSchema + " = validate.schema" + $schemaPath + "; ");
16556
- var $i = "i" + $lvl, $propertyPath = "schema" + $lvl + "[" + $i + "]", $missingProperty = "' + " + $propertyPath + " + '";
16557
- it.opts._errorDataPathProperty && (it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers)), out += " var " + $valid + " = true; ", $isData && (out += " if (schema" + $lvl + " === undefined) " + $valid + " = true; else if (!Array.isArray(schema" + $lvl + ")) " + $valid + " = false; else {"), out += " for (var " + $i + " = 0; " + $i + " < " + $vSchema + ".length; " + $i + "++) { " + $valid + " = " + $data + "[" + $vSchema + "[" + $i + "]] !== undefined ", $ownProperties && (out += " && Object.prototype.hasOwnProperty.call(" + $data + ", " + $vSchema + "[" + $i + "]) "), out += "; if (!" + $valid + ") break; } ", $isData && (out += " } "), out += " if (!" + $valid + ") { ";
16558
- var $$outStack = $$outStack || [];
16559
- $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16560
- var __err = out;
16561
- out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16562
- /* istanbul ignore if */
16563
- it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", out += " } else { ";
16564
- } else {
16565
- out += " if ( ";
16566
- var arr2 = $required;
16567
- if (arr2) for (var $propertyKey, $i = -1, l2 = arr2.length - 1; $i < l2;) {
16568
- $propertyKey = arr2[$i += 1], $i && (out += " || ");
16569
- var $prop = it.util.getProperty($propertyKey), $useData = $data + $prop;
16570
- out += " ( ( " + $useData + " === undefined ", $ownProperties && (out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') "), out += ") && (missing" + $lvl + " = " + it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) + ") ) ";
16598
+ if ($breakOnError) {
16599
+ if (out += " var missing" + $lvl + "; ", $loopRequired) {
16600
+ $isData || (out += " var " + $vSchema + " = validate.schema" + $schemaPath + "; ");
16601
+ var $i = "i" + $lvl, $propertyPath = "schema" + $lvl + "[" + $i + "]", $missingProperty = "' + " + $propertyPath + " + '";
16602
+ it.opts._errorDataPathProperty && (it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers)), out += " var " + $valid + " = true; ", $isData && (out += " if (schema" + $lvl + " === undefined) " + $valid + " = true; else if (!Array.isArray(schema" + $lvl + ")) " + $valid + " = false; else {"), out += " for (var " + $i + " = 0; " + $i + " < " + $vSchema + ".length; " + $i + "++) { " + $valid + " = " + $data + "[" + $vSchema + "[" + $i + "]] !== undefined ", $ownProperties && (out += " && Object.prototype.hasOwnProperty.call(" + $data + ", " + $vSchema + "[" + $i + "]) "), out += "; if (!" + $valid + ") break; } ", $isData && (out += " } "), out += " if (!" + $valid + ") { ";
16603
+ var $$outStack = $$outStack || [];
16604
+ $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16605
+ var __err = out;
16606
+ out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16607
+ /* istanbul ignore if */
16608
+ it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", out += " } else { ";
16609
+ } else {
16610
+ out += " if ( ";
16611
+ var arr2 = $required;
16612
+ if (arr2) for (var $propertyKey, $i = -1, l2 = arr2.length - 1; $i < l2;) {
16613
+ $propertyKey = arr2[$i += 1], $i && (out += " || ");
16614
+ var $prop = it.util.getProperty($propertyKey), $useData = $data + $prop;
16615
+ out += " ( ( " + $useData + " === undefined ", $ownProperties && (out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", '" + it.util.escapeQuotes($propertyKey) + "') "), out += ") && (missing" + $lvl + " = " + it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) + ") ) ";
16616
+ }
16617
+ out += ") { ";
16618
+ var $propertyPath = "missing" + $lvl, $missingProperty = "' + " + $propertyPath + " + '";
16619
+ it.opts._errorDataPathProperty && (it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, !0) : $currentErrorPath + " + " + $propertyPath);
16620
+ var $$outStack = $$outStack || [];
16621
+ $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16622
+ var __err = out;
16623
+ out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16624
+ /* istanbul ignore if */
16625
+ it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", out += " } else { ";
16571
16626
  }
16572
- out += ") { ";
16573
- var $propertyPath = "missing" + $lvl, $missingProperty = "' + " + $propertyPath + " + '";
16574
- it.opts._errorDataPathProperty && (it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, !0) : $currentErrorPath + " + " + $propertyPath);
16575
- var $$outStack = $$outStack || [];
16576
- $$outStack.push(out), out = "", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } ");
16577
- var __err = out;
16578
- out = $$outStack.pop(), !it.compositeRule && $breakOnError ?
16579
- /* istanbul ignore if */
16580
- it.async ? out += " throw new ValidationError([" + __err + "]); " : out += " validate.errors = [" + __err + "]; return false; " : out += " var err = " + __err + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", out += " } else { ";
16581
- }
16582
- else if ($loopRequired) {
16627
+ } else if ($loopRequired) {
16583
16628
  $isData || (out += " var " + $vSchema + " = validate.schema" + $schemaPath + "; ");
16584
16629
  var $i = "i" + $lvl, $propertyPath = "schema" + $lvl + "[" + $i + "]", $missingProperty = "' + " + $propertyPath + " + '";
16585
16630
  it.opts._errorDataPathProperty && (it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers)), $isData && (out += " if (" + $vSchema + " && !Array.isArray(" + $vSchema + ")) { var err = ", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } "), out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (" + $vSchema + " !== undefined) { "), out += " for (var " + $i + " = 0; " + $i + " < " + $vSchema + ".length; " + $i + "++) { if (" + $data + "[" + $vSchema + "[" + $i + "]] === undefined ", $ownProperties && (out += " || ! Object.prototype.hasOwnProperty.call(" + $data + ", " + $vSchema + "[" + $i + "]) "), out += ") { var err = ", it.createErrors === !1 ? out += " {} " : (out += " { keyword: 'required' , dataPath: (dataPath || '') + " + it.errorPath + " , schemaPath: " + it.util.toQuotedString($errSchemaPath) + " , params: { missingProperty: '" + $missingProperty + "' } ", it.opts.messages !== !1 && (out += " , message: '", it.opts._errorDataPathProperty ? out += "is a required property" : out += "should have required property \\'" + $missingProperty + "\\'", out += "' "), it.opts.verbose && (out += " , schema: validate.schema" + $schemaPath + " , parentSchema: validate.schema" + it.schemaPath + " , data: " + $data + " "), out += " } "), out += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", $isData && (out += " } ");
@@ -17409,8 +17454,10 @@ var require_uri_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
17409
17454
  }
17410
17455
  function addInitialSchemas(self) {
17411
17456
  var optsSchemas = self._opts.schemas;
17412
- if (optsSchemas) if (Array.isArray(optsSchemas)) self.addSchema(optsSchemas);
17413
- else for (var key in optsSchemas) self.addSchema(optsSchemas[key], key);
17457
+ if (optsSchemas) {
17458
+ if (Array.isArray(optsSchemas)) self.addSchema(optsSchemas);
17459
+ else for (var key in optsSchemas) self.addSchema(optsSchemas[key], key);
17460
+ }
17414
17461
  }
17415
17462
  function addInitialFormats(self) {
17416
17463
  for (var name in self._opts.formats) {
@@ -18698,10 +18745,12 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18698
18745
  let done = /* @__PURE__ */ new Set();
18699
18746
  for (let i = 0; i < segments.length; ++i) {
18700
18747
  let segment = segments[i];
18701
- if (!done.has(segment)) if (segment.internal.used) done.add(segment);
18702
- else for (let j = 0; j < segment.allPrevSegments.length; ++j) {
18703
- let prevSegment = segment.allPrevSegments[j];
18704
- done.has(prevSegment) || done.add(prevSegment);
18748
+ if (!done.has(segment)) {
18749
+ if (segment.internal.used) done.add(segment);
18750
+ else for (let j = 0; j < segment.allPrevSegments.length; ++j) {
18751
+ let prevSegment = segment.allPrevSegments[j];
18752
+ done.has(prevSegment) || done.add(prevSegment);
18753
+ }
18705
18754
  }
18706
18755
  }
18707
18756
  return [...done];
@@ -20720,503 +20769,505 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
20720
20769
  56
20721
20770
  ], ArrayIsArray$1 = Array.isArray, ancestors = [];
20722
20771
  function walkNode(node, visitors) {
20723
- if (node != null) if (ArrayIsArray$1(node)) {
20724
- let len = node.length;
20725
- for (let i = 0; i < len; i++) walkNode(node[i], visitors);
20726
- } else switch (node.type) {
20727
- case "DebuggerStatement":
20728
- walkDebuggerStatement(node, visitors);
20729
- break;
20730
- case "EmptyStatement":
20731
- walkEmptyStatement(node, visitors);
20732
- break;
20733
- case "Literal":
20734
- walkLiteral(node, visitors);
20735
- break;
20736
- case "PrivateIdentifier":
20737
- walkPrivateIdentifier(node, visitors);
20738
- break;
20739
- case "Super":
20740
- walkSuper(node, visitors);
20741
- break;
20742
- case "TemplateElement":
20743
- walkTemplateElement(node, visitors);
20744
- break;
20745
- case "ThisExpression":
20746
- walkThisExpression(node, visitors);
20747
- break;
20748
- case "JSXClosingFragment":
20749
- walkJSXClosingFragment(node, visitors);
20750
- break;
20751
- case "JSXEmptyExpression":
20752
- walkJSXEmptyExpression(node, visitors);
20753
- break;
20754
- case "JSXIdentifier":
20755
- walkJSXIdentifier(node, visitors);
20756
- break;
20757
- case "JSXOpeningFragment":
20758
- walkJSXOpeningFragment(node, visitors);
20759
- break;
20760
- case "JSXText":
20761
- walkJSXText(node, visitors);
20762
- break;
20763
- case "TSAnyKeyword":
20764
- walkTSAnyKeyword(node, visitors);
20765
- break;
20766
- case "TSBigIntKeyword":
20767
- walkTSBigIntKeyword(node, visitors);
20768
- break;
20769
- case "TSBooleanKeyword":
20770
- walkTSBooleanKeyword(node, visitors);
20771
- break;
20772
- case "TSIntrinsicKeyword":
20773
- walkTSIntrinsicKeyword(node, visitors);
20774
- break;
20775
- case "TSJSDocUnknownType":
20776
- walkTSJSDocUnknownType(node, visitors);
20777
- break;
20778
- case "TSNeverKeyword":
20779
- walkTSNeverKeyword(node, visitors);
20780
- break;
20781
- case "TSNullKeyword":
20782
- walkTSNullKeyword(node, visitors);
20783
- break;
20784
- case "TSNumberKeyword":
20785
- walkTSNumberKeyword(node, visitors);
20786
- break;
20787
- case "TSObjectKeyword":
20788
- walkTSObjectKeyword(node, visitors);
20789
- break;
20790
- case "TSStringKeyword":
20791
- walkTSStringKeyword(node, visitors);
20792
- break;
20793
- case "TSSymbolKeyword":
20794
- walkTSSymbolKeyword(node, visitors);
20795
- break;
20796
- case "TSThisType":
20797
- walkTSThisType(node, visitors);
20798
- break;
20799
- case "TSUndefinedKeyword":
20800
- walkTSUndefinedKeyword(node, visitors);
20801
- break;
20802
- case "TSUnknownKeyword":
20803
- walkTSUnknownKeyword(node, visitors);
20804
- break;
20805
- case "TSVoidKeyword":
20806
- walkTSVoidKeyword(node, visitors);
20807
- break;
20808
- case "AccessorProperty":
20809
- walkAccessorProperty(node, visitors);
20810
- break;
20811
- case "ArrayExpression":
20812
- walkArrayExpression(node, visitors);
20813
- break;
20814
- case "ArrayPattern":
20815
- walkArrayPattern(node, visitors);
20816
- break;
20817
- case "ArrowFunctionExpression":
20818
- walkArrowFunctionExpression(node, visitors);
20819
- break;
20820
- case "AssignmentExpression":
20821
- walkAssignmentExpression(node, visitors);
20822
- break;
20823
- case "AssignmentPattern":
20824
- walkAssignmentPattern(node, visitors);
20825
- break;
20826
- case "AwaitExpression":
20827
- walkAwaitExpression(node, visitors);
20828
- break;
20829
- case "BinaryExpression":
20830
- walkBinaryExpression(node, visitors);
20831
- break;
20832
- case "BlockStatement":
20833
- walkBlockStatement(node, visitors);
20834
- break;
20835
- case "BreakStatement":
20836
- walkBreakStatement(node, visitors);
20837
- break;
20838
- case "CallExpression":
20839
- walkCallExpression(node, visitors);
20840
- break;
20841
- case "CatchClause":
20842
- walkCatchClause(node, visitors);
20843
- break;
20844
- case "ChainExpression":
20845
- walkChainExpression(node, visitors);
20846
- break;
20847
- case "ClassBody":
20848
- walkClassBody(node, visitors);
20849
- break;
20850
- case "ClassDeclaration":
20851
- walkClassDeclaration(node, visitors);
20852
- break;
20853
- case "ClassExpression":
20854
- walkClassExpression(node, visitors);
20855
- break;
20856
- case "ConditionalExpression":
20857
- walkConditionalExpression(node, visitors);
20858
- break;
20859
- case "ContinueStatement":
20860
- walkContinueStatement(node, visitors);
20861
- break;
20862
- case "Decorator":
20863
- walkDecorator(node, visitors);
20864
- break;
20865
- case "DoWhileStatement":
20866
- walkDoWhileStatement(node, visitors);
20867
- break;
20868
- case "ExportAllDeclaration":
20869
- walkExportAllDeclaration(node, visitors);
20870
- break;
20871
- case "ExportDefaultDeclaration":
20872
- walkExportDefaultDeclaration(node, visitors);
20873
- break;
20874
- case "ExportNamedDeclaration":
20875
- walkExportNamedDeclaration(node, visitors);
20876
- break;
20877
- case "ExportSpecifier":
20878
- walkExportSpecifier(node, visitors);
20879
- break;
20880
- case "ExpressionStatement":
20881
- walkExpressionStatement(node, visitors);
20882
- break;
20883
- case "ForInStatement":
20884
- walkForInStatement(node, visitors);
20885
- break;
20886
- case "ForOfStatement":
20887
- walkForOfStatement(node, visitors);
20888
- break;
20889
- case "ForStatement":
20890
- walkForStatement(node, visitors);
20891
- break;
20892
- case "FunctionDeclaration":
20893
- walkFunctionDeclaration(node, visitors);
20894
- break;
20895
- case "FunctionExpression":
20896
- walkFunctionExpression(node, visitors);
20897
- break;
20898
- case "Identifier":
20899
- walkIdentifier(node, visitors);
20900
- break;
20901
- case "IfStatement":
20902
- walkIfStatement(node, visitors);
20903
- break;
20904
- case "ImportAttribute":
20905
- walkImportAttribute(node, visitors);
20906
- break;
20907
- case "ImportDeclaration":
20908
- walkImportDeclaration(node, visitors);
20909
- break;
20910
- case "ImportDefaultSpecifier":
20911
- walkImportDefaultSpecifier(node, visitors);
20912
- break;
20913
- case "ImportExpression":
20914
- walkImportExpression(node, visitors);
20915
- break;
20916
- case "ImportNamespaceSpecifier":
20917
- walkImportNamespaceSpecifier(node, visitors);
20918
- break;
20919
- case "ImportSpecifier":
20920
- walkImportSpecifier(node, visitors);
20921
- break;
20922
- case "LabeledStatement":
20923
- walkLabeledStatement(node, visitors);
20924
- break;
20925
- case "LogicalExpression":
20926
- walkLogicalExpression(node, visitors);
20927
- break;
20928
- case "MemberExpression":
20929
- walkMemberExpression(node, visitors);
20930
- break;
20931
- case "MetaProperty":
20932
- walkMetaProperty(node, visitors);
20933
- break;
20934
- case "MethodDefinition":
20935
- walkMethodDefinition(node, visitors);
20936
- break;
20937
- case "NewExpression":
20938
- walkNewExpression(node, visitors);
20939
- break;
20940
- case "ObjectExpression":
20941
- walkObjectExpression(node, visitors);
20942
- break;
20943
- case "ObjectPattern":
20944
- walkObjectPattern(node, visitors);
20945
- break;
20946
- case "ParenthesizedExpression":
20947
- walkParenthesizedExpression(node, visitors);
20948
- break;
20949
- case "Program":
20950
- walkProgram(node, visitors);
20951
- break;
20952
- case "Property":
20953
- walkProperty(node, visitors);
20954
- break;
20955
- case "PropertyDefinition":
20956
- walkPropertyDefinition(node, visitors);
20957
- break;
20958
- case "RestElement":
20959
- walkRestElement(node, visitors);
20960
- break;
20961
- case "ReturnStatement":
20962
- walkReturnStatement(node, visitors);
20963
- break;
20964
- case "SequenceExpression":
20965
- walkSequenceExpression(node, visitors);
20966
- break;
20967
- case "SpreadElement":
20968
- walkSpreadElement(node, visitors);
20969
- break;
20970
- case "StaticBlock":
20971
- walkStaticBlock(node, visitors);
20972
- break;
20973
- case "SwitchCase":
20974
- walkSwitchCase(node, visitors);
20975
- break;
20976
- case "SwitchStatement":
20977
- walkSwitchStatement(node, visitors);
20978
- break;
20979
- case "TaggedTemplateExpression":
20980
- walkTaggedTemplateExpression(node, visitors);
20981
- break;
20982
- case "TemplateLiteral":
20983
- walkTemplateLiteral(node, visitors);
20984
- break;
20985
- case "ThrowStatement":
20986
- walkThrowStatement(node, visitors);
20987
- break;
20988
- case "TryStatement":
20989
- walkTryStatement(node, visitors);
20990
- break;
20991
- case "UnaryExpression":
20992
- walkUnaryExpression(node, visitors);
20993
- break;
20994
- case "UpdateExpression":
20995
- walkUpdateExpression(node, visitors);
20996
- break;
20997
- case "V8IntrinsicExpression":
20998
- walkV8IntrinsicExpression(node, visitors);
20999
- break;
21000
- case "VariableDeclaration":
21001
- walkVariableDeclaration(node, visitors);
21002
- break;
21003
- case "VariableDeclarator":
21004
- walkVariableDeclarator(node, visitors);
21005
- break;
21006
- case "WhileStatement":
21007
- walkWhileStatement(node, visitors);
21008
- break;
21009
- case "WithStatement":
21010
- walkWithStatement(node, visitors);
21011
- break;
21012
- case "YieldExpression":
21013
- walkYieldExpression(node, visitors);
21014
- break;
21015
- case "JSXAttribute":
21016
- walkJSXAttribute(node, visitors);
21017
- break;
21018
- case "JSXClosingElement":
21019
- walkJSXClosingElement(node, visitors);
21020
- break;
21021
- case "JSXElement":
21022
- walkJSXElement(node, visitors);
21023
- break;
21024
- case "JSXExpressionContainer":
21025
- walkJSXExpressionContainer(node, visitors);
21026
- break;
21027
- case "JSXFragment":
21028
- walkJSXFragment(node, visitors);
21029
- break;
21030
- case "JSXMemberExpression":
21031
- walkJSXMemberExpression(node, visitors);
21032
- break;
21033
- case "JSXNamespacedName":
21034
- walkJSXNamespacedName(node, visitors);
21035
- break;
21036
- case "JSXOpeningElement":
21037
- walkJSXOpeningElement(node, visitors);
21038
- break;
21039
- case "JSXSpreadAttribute":
21040
- walkJSXSpreadAttribute(node, visitors);
21041
- break;
21042
- case "JSXSpreadChild":
21043
- walkJSXSpreadChild(node, visitors);
21044
- break;
21045
- case "TSAbstractAccessorProperty":
21046
- walkTSAbstractAccessorProperty(node, visitors);
21047
- break;
21048
- case "TSAbstractMethodDefinition":
21049
- walkTSAbstractMethodDefinition(node, visitors);
21050
- break;
21051
- case "TSAbstractPropertyDefinition":
21052
- walkTSAbstractPropertyDefinition(node, visitors);
21053
- break;
21054
- case "TSArrayType":
21055
- walkTSArrayType(node, visitors);
21056
- break;
21057
- case "TSAsExpression":
21058
- walkTSAsExpression(node, visitors);
21059
- break;
21060
- case "TSCallSignatureDeclaration":
21061
- walkTSCallSignatureDeclaration(node, visitors);
21062
- break;
21063
- case "TSClassImplements":
21064
- walkTSClassImplements(node, visitors);
21065
- break;
21066
- case "TSConditionalType":
21067
- walkTSConditionalType(node, visitors);
21068
- break;
21069
- case "TSConstructSignatureDeclaration":
21070
- walkTSConstructSignatureDeclaration(node, visitors);
21071
- break;
21072
- case "TSConstructorType":
21073
- walkTSConstructorType(node, visitors);
21074
- break;
21075
- case "TSDeclareFunction":
21076
- walkTSDeclareFunction(node, visitors);
21077
- break;
21078
- case "TSEmptyBodyFunctionExpression":
21079
- walkTSEmptyBodyFunctionExpression(node, visitors);
21080
- break;
21081
- case "TSEnumBody":
21082
- walkTSEnumBody(node, visitors);
21083
- break;
21084
- case "TSEnumDeclaration":
21085
- walkTSEnumDeclaration(node, visitors);
21086
- break;
21087
- case "TSEnumMember":
21088
- walkTSEnumMember(node, visitors);
21089
- break;
21090
- case "TSExportAssignment":
21091
- walkTSExportAssignment(node, visitors);
21092
- break;
21093
- case "TSExternalModuleReference":
21094
- walkTSExternalModuleReference(node, visitors);
21095
- break;
21096
- case "TSFunctionType":
21097
- walkTSFunctionType(node, visitors);
21098
- break;
21099
- case "TSImportEqualsDeclaration":
21100
- walkTSImportEqualsDeclaration(node, visitors);
21101
- break;
21102
- case "TSImportType":
21103
- walkTSImportType(node, visitors);
21104
- break;
21105
- case "TSIndexSignature":
21106
- walkTSIndexSignature(node, visitors);
21107
- break;
21108
- case "TSIndexedAccessType":
21109
- walkTSIndexedAccessType(node, visitors);
21110
- break;
21111
- case "TSInferType":
21112
- walkTSInferType(node, visitors);
21113
- break;
21114
- case "TSInstantiationExpression":
21115
- walkTSInstantiationExpression(node, visitors);
21116
- break;
21117
- case "TSInterfaceBody":
21118
- walkTSInterfaceBody(node, visitors);
21119
- break;
21120
- case "TSInterfaceDeclaration":
21121
- walkTSInterfaceDeclaration(node, visitors);
21122
- break;
21123
- case "TSInterfaceHeritage":
21124
- walkTSInterfaceHeritage(node, visitors);
21125
- break;
21126
- case "TSIntersectionType":
21127
- walkTSIntersectionType(node, visitors);
21128
- break;
21129
- case "TSJSDocNonNullableType":
21130
- walkTSJSDocNonNullableType(node, visitors);
21131
- break;
21132
- case "TSJSDocNullableType":
21133
- walkTSJSDocNullableType(node, visitors);
21134
- break;
21135
- case "TSLiteralType":
21136
- walkTSLiteralType(node, visitors);
21137
- break;
21138
- case "TSMappedType":
21139
- walkTSMappedType(node, visitors);
21140
- break;
21141
- case "TSMethodSignature":
21142
- walkTSMethodSignature(node, visitors);
21143
- break;
21144
- case "TSModuleBlock":
21145
- walkTSModuleBlock(node, visitors);
21146
- break;
21147
- case "TSModuleDeclaration":
21148
- walkTSModuleDeclaration(node, visitors);
21149
- break;
21150
- case "TSNamedTupleMember":
21151
- walkTSNamedTupleMember(node, visitors);
21152
- break;
21153
- case "TSNamespaceExportDeclaration":
21154
- walkTSNamespaceExportDeclaration(node, visitors);
21155
- break;
21156
- case "TSNonNullExpression":
21157
- walkTSNonNullExpression(node, visitors);
21158
- break;
21159
- case "TSOptionalType":
21160
- walkTSOptionalType(node, visitors);
21161
- break;
21162
- case "TSParameterProperty":
21163
- walkTSParameterProperty(node, visitors);
21164
- break;
21165
- case "TSParenthesizedType":
21166
- walkTSParenthesizedType(node, visitors);
21167
- break;
21168
- case "TSPropertySignature":
21169
- walkTSPropertySignature(node, visitors);
21170
- break;
21171
- case "TSQualifiedName":
21172
- walkTSQualifiedName(node, visitors);
21173
- break;
21174
- case "TSRestType":
21175
- walkTSRestType(node, visitors);
21176
- break;
21177
- case "TSSatisfiesExpression":
21178
- walkTSSatisfiesExpression(node, visitors);
21179
- break;
21180
- case "TSTemplateLiteralType":
21181
- walkTSTemplateLiteralType(node, visitors);
21182
- break;
21183
- case "TSTupleType":
21184
- walkTSTupleType(node, visitors);
21185
- break;
21186
- case "TSTypeAliasDeclaration":
21187
- walkTSTypeAliasDeclaration(node, visitors);
21188
- break;
21189
- case "TSTypeAnnotation":
21190
- walkTSTypeAnnotation(node, visitors);
21191
- break;
21192
- case "TSTypeAssertion":
21193
- walkTSTypeAssertion(node, visitors);
21194
- break;
21195
- case "TSTypeLiteral":
21196
- walkTSTypeLiteral(node, visitors);
21197
- break;
21198
- case "TSTypeOperator":
21199
- walkTSTypeOperator(node, visitors);
21200
- break;
21201
- case "TSTypeParameter":
21202
- walkTSTypeParameter(node, visitors);
21203
- break;
21204
- case "TSTypeParameterDeclaration":
21205
- walkTSTypeParameterDeclaration(node, visitors);
21206
- break;
21207
- case "TSTypeParameterInstantiation":
21208
- walkTSTypeParameterInstantiation(node, visitors);
21209
- break;
21210
- case "TSTypePredicate":
21211
- walkTSTypePredicate(node, visitors);
21212
- break;
21213
- case "TSTypeQuery":
21214
- walkTSTypeQuery(node, visitors);
21215
- break;
21216
- case "TSTypeReference":
21217
- walkTSTypeReference(node, visitors);
21218
- break;
21219
- case "TSUnionType": walkTSUnionType(node, visitors);
20772
+ if (node != null) {
20773
+ if (ArrayIsArray$1(node)) {
20774
+ let len = node.length;
20775
+ for (let i = 0; i < len; i++) walkNode(node[i], visitors);
20776
+ } else switch (node.type) {
20777
+ case "DebuggerStatement":
20778
+ walkDebuggerStatement(node, visitors);
20779
+ break;
20780
+ case "EmptyStatement":
20781
+ walkEmptyStatement(node, visitors);
20782
+ break;
20783
+ case "Literal":
20784
+ walkLiteral(node, visitors);
20785
+ break;
20786
+ case "PrivateIdentifier":
20787
+ walkPrivateIdentifier(node, visitors);
20788
+ break;
20789
+ case "Super":
20790
+ walkSuper(node, visitors);
20791
+ break;
20792
+ case "TemplateElement":
20793
+ walkTemplateElement(node, visitors);
20794
+ break;
20795
+ case "ThisExpression":
20796
+ walkThisExpression(node, visitors);
20797
+ break;
20798
+ case "JSXClosingFragment":
20799
+ walkJSXClosingFragment(node, visitors);
20800
+ break;
20801
+ case "JSXEmptyExpression":
20802
+ walkJSXEmptyExpression(node, visitors);
20803
+ break;
20804
+ case "JSXIdentifier":
20805
+ walkJSXIdentifier(node, visitors);
20806
+ break;
20807
+ case "JSXOpeningFragment":
20808
+ walkJSXOpeningFragment(node, visitors);
20809
+ break;
20810
+ case "JSXText":
20811
+ walkJSXText(node, visitors);
20812
+ break;
20813
+ case "TSAnyKeyword":
20814
+ walkTSAnyKeyword(node, visitors);
20815
+ break;
20816
+ case "TSBigIntKeyword":
20817
+ walkTSBigIntKeyword(node, visitors);
20818
+ break;
20819
+ case "TSBooleanKeyword":
20820
+ walkTSBooleanKeyword(node, visitors);
20821
+ break;
20822
+ case "TSIntrinsicKeyword":
20823
+ walkTSIntrinsicKeyword(node, visitors);
20824
+ break;
20825
+ case "TSJSDocUnknownType":
20826
+ walkTSJSDocUnknownType(node, visitors);
20827
+ break;
20828
+ case "TSNeverKeyword":
20829
+ walkTSNeverKeyword(node, visitors);
20830
+ break;
20831
+ case "TSNullKeyword":
20832
+ walkTSNullKeyword(node, visitors);
20833
+ break;
20834
+ case "TSNumberKeyword":
20835
+ walkTSNumberKeyword(node, visitors);
20836
+ break;
20837
+ case "TSObjectKeyword":
20838
+ walkTSObjectKeyword(node, visitors);
20839
+ break;
20840
+ case "TSStringKeyword":
20841
+ walkTSStringKeyword(node, visitors);
20842
+ break;
20843
+ case "TSSymbolKeyword":
20844
+ walkTSSymbolKeyword(node, visitors);
20845
+ break;
20846
+ case "TSThisType":
20847
+ walkTSThisType(node, visitors);
20848
+ break;
20849
+ case "TSUndefinedKeyword":
20850
+ walkTSUndefinedKeyword(node, visitors);
20851
+ break;
20852
+ case "TSUnknownKeyword":
20853
+ walkTSUnknownKeyword(node, visitors);
20854
+ break;
20855
+ case "TSVoidKeyword":
20856
+ walkTSVoidKeyword(node, visitors);
20857
+ break;
20858
+ case "AccessorProperty":
20859
+ walkAccessorProperty(node, visitors);
20860
+ break;
20861
+ case "ArrayExpression":
20862
+ walkArrayExpression(node, visitors);
20863
+ break;
20864
+ case "ArrayPattern":
20865
+ walkArrayPattern(node, visitors);
20866
+ break;
20867
+ case "ArrowFunctionExpression":
20868
+ walkArrowFunctionExpression(node, visitors);
20869
+ break;
20870
+ case "AssignmentExpression":
20871
+ walkAssignmentExpression(node, visitors);
20872
+ break;
20873
+ case "AssignmentPattern":
20874
+ walkAssignmentPattern(node, visitors);
20875
+ break;
20876
+ case "AwaitExpression":
20877
+ walkAwaitExpression(node, visitors);
20878
+ break;
20879
+ case "BinaryExpression":
20880
+ walkBinaryExpression(node, visitors);
20881
+ break;
20882
+ case "BlockStatement":
20883
+ walkBlockStatement(node, visitors);
20884
+ break;
20885
+ case "BreakStatement":
20886
+ walkBreakStatement(node, visitors);
20887
+ break;
20888
+ case "CallExpression":
20889
+ walkCallExpression(node, visitors);
20890
+ break;
20891
+ case "CatchClause":
20892
+ walkCatchClause(node, visitors);
20893
+ break;
20894
+ case "ChainExpression":
20895
+ walkChainExpression(node, visitors);
20896
+ break;
20897
+ case "ClassBody":
20898
+ walkClassBody(node, visitors);
20899
+ break;
20900
+ case "ClassDeclaration":
20901
+ walkClassDeclaration(node, visitors);
20902
+ break;
20903
+ case "ClassExpression":
20904
+ walkClassExpression(node, visitors);
20905
+ break;
20906
+ case "ConditionalExpression":
20907
+ walkConditionalExpression(node, visitors);
20908
+ break;
20909
+ case "ContinueStatement":
20910
+ walkContinueStatement(node, visitors);
20911
+ break;
20912
+ case "Decorator":
20913
+ walkDecorator(node, visitors);
20914
+ break;
20915
+ case "DoWhileStatement":
20916
+ walkDoWhileStatement(node, visitors);
20917
+ break;
20918
+ case "ExportAllDeclaration":
20919
+ walkExportAllDeclaration(node, visitors);
20920
+ break;
20921
+ case "ExportDefaultDeclaration":
20922
+ walkExportDefaultDeclaration(node, visitors);
20923
+ break;
20924
+ case "ExportNamedDeclaration":
20925
+ walkExportNamedDeclaration(node, visitors);
20926
+ break;
20927
+ case "ExportSpecifier":
20928
+ walkExportSpecifier(node, visitors);
20929
+ break;
20930
+ case "ExpressionStatement":
20931
+ walkExpressionStatement(node, visitors);
20932
+ break;
20933
+ case "ForInStatement":
20934
+ walkForInStatement(node, visitors);
20935
+ break;
20936
+ case "ForOfStatement":
20937
+ walkForOfStatement(node, visitors);
20938
+ break;
20939
+ case "ForStatement":
20940
+ walkForStatement(node, visitors);
20941
+ break;
20942
+ case "FunctionDeclaration":
20943
+ walkFunctionDeclaration(node, visitors);
20944
+ break;
20945
+ case "FunctionExpression":
20946
+ walkFunctionExpression(node, visitors);
20947
+ break;
20948
+ case "Identifier":
20949
+ walkIdentifier(node, visitors);
20950
+ break;
20951
+ case "IfStatement":
20952
+ walkIfStatement(node, visitors);
20953
+ break;
20954
+ case "ImportAttribute":
20955
+ walkImportAttribute(node, visitors);
20956
+ break;
20957
+ case "ImportDeclaration":
20958
+ walkImportDeclaration(node, visitors);
20959
+ break;
20960
+ case "ImportDefaultSpecifier":
20961
+ walkImportDefaultSpecifier(node, visitors);
20962
+ break;
20963
+ case "ImportExpression":
20964
+ walkImportExpression(node, visitors);
20965
+ break;
20966
+ case "ImportNamespaceSpecifier":
20967
+ walkImportNamespaceSpecifier(node, visitors);
20968
+ break;
20969
+ case "ImportSpecifier":
20970
+ walkImportSpecifier(node, visitors);
20971
+ break;
20972
+ case "LabeledStatement":
20973
+ walkLabeledStatement(node, visitors);
20974
+ break;
20975
+ case "LogicalExpression":
20976
+ walkLogicalExpression(node, visitors);
20977
+ break;
20978
+ case "MemberExpression":
20979
+ walkMemberExpression(node, visitors);
20980
+ break;
20981
+ case "MetaProperty":
20982
+ walkMetaProperty(node, visitors);
20983
+ break;
20984
+ case "MethodDefinition":
20985
+ walkMethodDefinition(node, visitors);
20986
+ break;
20987
+ case "NewExpression":
20988
+ walkNewExpression(node, visitors);
20989
+ break;
20990
+ case "ObjectExpression":
20991
+ walkObjectExpression(node, visitors);
20992
+ break;
20993
+ case "ObjectPattern":
20994
+ walkObjectPattern(node, visitors);
20995
+ break;
20996
+ case "ParenthesizedExpression":
20997
+ walkParenthesizedExpression(node, visitors);
20998
+ break;
20999
+ case "Program":
21000
+ walkProgram(node, visitors);
21001
+ break;
21002
+ case "Property":
21003
+ walkProperty(node, visitors);
21004
+ break;
21005
+ case "PropertyDefinition":
21006
+ walkPropertyDefinition(node, visitors);
21007
+ break;
21008
+ case "RestElement":
21009
+ walkRestElement(node, visitors);
21010
+ break;
21011
+ case "ReturnStatement":
21012
+ walkReturnStatement(node, visitors);
21013
+ break;
21014
+ case "SequenceExpression":
21015
+ walkSequenceExpression(node, visitors);
21016
+ break;
21017
+ case "SpreadElement":
21018
+ walkSpreadElement(node, visitors);
21019
+ break;
21020
+ case "StaticBlock":
21021
+ walkStaticBlock(node, visitors);
21022
+ break;
21023
+ case "SwitchCase":
21024
+ walkSwitchCase(node, visitors);
21025
+ break;
21026
+ case "SwitchStatement":
21027
+ walkSwitchStatement(node, visitors);
21028
+ break;
21029
+ case "TaggedTemplateExpression":
21030
+ walkTaggedTemplateExpression(node, visitors);
21031
+ break;
21032
+ case "TemplateLiteral":
21033
+ walkTemplateLiteral(node, visitors);
21034
+ break;
21035
+ case "ThrowStatement":
21036
+ walkThrowStatement(node, visitors);
21037
+ break;
21038
+ case "TryStatement":
21039
+ walkTryStatement(node, visitors);
21040
+ break;
21041
+ case "UnaryExpression":
21042
+ walkUnaryExpression(node, visitors);
21043
+ break;
21044
+ case "UpdateExpression":
21045
+ walkUpdateExpression(node, visitors);
21046
+ break;
21047
+ case "V8IntrinsicExpression":
21048
+ walkV8IntrinsicExpression(node, visitors);
21049
+ break;
21050
+ case "VariableDeclaration":
21051
+ walkVariableDeclaration(node, visitors);
21052
+ break;
21053
+ case "VariableDeclarator":
21054
+ walkVariableDeclarator(node, visitors);
21055
+ break;
21056
+ case "WhileStatement":
21057
+ walkWhileStatement(node, visitors);
21058
+ break;
21059
+ case "WithStatement":
21060
+ walkWithStatement(node, visitors);
21061
+ break;
21062
+ case "YieldExpression":
21063
+ walkYieldExpression(node, visitors);
21064
+ break;
21065
+ case "JSXAttribute":
21066
+ walkJSXAttribute(node, visitors);
21067
+ break;
21068
+ case "JSXClosingElement":
21069
+ walkJSXClosingElement(node, visitors);
21070
+ break;
21071
+ case "JSXElement":
21072
+ walkJSXElement(node, visitors);
21073
+ break;
21074
+ case "JSXExpressionContainer":
21075
+ walkJSXExpressionContainer(node, visitors);
21076
+ break;
21077
+ case "JSXFragment":
21078
+ walkJSXFragment(node, visitors);
21079
+ break;
21080
+ case "JSXMemberExpression":
21081
+ walkJSXMemberExpression(node, visitors);
21082
+ break;
21083
+ case "JSXNamespacedName":
21084
+ walkJSXNamespacedName(node, visitors);
21085
+ break;
21086
+ case "JSXOpeningElement":
21087
+ walkJSXOpeningElement(node, visitors);
21088
+ break;
21089
+ case "JSXSpreadAttribute":
21090
+ walkJSXSpreadAttribute(node, visitors);
21091
+ break;
21092
+ case "JSXSpreadChild":
21093
+ walkJSXSpreadChild(node, visitors);
21094
+ break;
21095
+ case "TSAbstractAccessorProperty":
21096
+ walkTSAbstractAccessorProperty(node, visitors);
21097
+ break;
21098
+ case "TSAbstractMethodDefinition":
21099
+ walkTSAbstractMethodDefinition(node, visitors);
21100
+ break;
21101
+ case "TSAbstractPropertyDefinition":
21102
+ walkTSAbstractPropertyDefinition(node, visitors);
21103
+ break;
21104
+ case "TSArrayType":
21105
+ walkTSArrayType(node, visitors);
21106
+ break;
21107
+ case "TSAsExpression":
21108
+ walkTSAsExpression(node, visitors);
21109
+ break;
21110
+ case "TSCallSignatureDeclaration":
21111
+ walkTSCallSignatureDeclaration(node, visitors);
21112
+ break;
21113
+ case "TSClassImplements":
21114
+ walkTSClassImplements(node, visitors);
21115
+ break;
21116
+ case "TSConditionalType":
21117
+ walkTSConditionalType(node, visitors);
21118
+ break;
21119
+ case "TSConstructSignatureDeclaration":
21120
+ walkTSConstructSignatureDeclaration(node, visitors);
21121
+ break;
21122
+ case "TSConstructorType":
21123
+ walkTSConstructorType(node, visitors);
21124
+ break;
21125
+ case "TSDeclareFunction":
21126
+ walkTSDeclareFunction(node, visitors);
21127
+ break;
21128
+ case "TSEmptyBodyFunctionExpression":
21129
+ walkTSEmptyBodyFunctionExpression(node, visitors);
21130
+ break;
21131
+ case "TSEnumBody":
21132
+ walkTSEnumBody(node, visitors);
21133
+ break;
21134
+ case "TSEnumDeclaration":
21135
+ walkTSEnumDeclaration(node, visitors);
21136
+ break;
21137
+ case "TSEnumMember":
21138
+ walkTSEnumMember(node, visitors);
21139
+ break;
21140
+ case "TSExportAssignment":
21141
+ walkTSExportAssignment(node, visitors);
21142
+ break;
21143
+ case "TSExternalModuleReference":
21144
+ walkTSExternalModuleReference(node, visitors);
21145
+ break;
21146
+ case "TSFunctionType":
21147
+ walkTSFunctionType(node, visitors);
21148
+ break;
21149
+ case "TSImportEqualsDeclaration":
21150
+ walkTSImportEqualsDeclaration(node, visitors);
21151
+ break;
21152
+ case "TSImportType":
21153
+ walkTSImportType(node, visitors);
21154
+ break;
21155
+ case "TSIndexSignature":
21156
+ walkTSIndexSignature(node, visitors);
21157
+ break;
21158
+ case "TSIndexedAccessType":
21159
+ walkTSIndexedAccessType(node, visitors);
21160
+ break;
21161
+ case "TSInferType":
21162
+ walkTSInferType(node, visitors);
21163
+ break;
21164
+ case "TSInstantiationExpression":
21165
+ walkTSInstantiationExpression(node, visitors);
21166
+ break;
21167
+ case "TSInterfaceBody":
21168
+ walkTSInterfaceBody(node, visitors);
21169
+ break;
21170
+ case "TSInterfaceDeclaration":
21171
+ walkTSInterfaceDeclaration(node, visitors);
21172
+ break;
21173
+ case "TSInterfaceHeritage":
21174
+ walkTSInterfaceHeritage(node, visitors);
21175
+ break;
21176
+ case "TSIntersectionType":
21177
+ walkTSIntersectionType(node, visitors);
21178
+ break;
21179
+ case "TSJSDocNonNullableType":
21180
+ walkTSJSDocNonNullableType(node, visitors);
21181
+ break;
21182
+ case "TSJSDocNullableType":
21183
+ walkTSJSDocNullableType(node, visitors);
21184
+ break;
21185
+ case "TSLiteralType":
21186
+ walkTSLiteralType(node, visitors);
21187
+ break;
21188
+ case "TSMappedType":
21189
+ walkTSMappedType(node, visitors);
21190
+ break;
21191
+ case "TSMethodSignature":
21192
+ walkTSMethodSignature(node, visitors);
21193
+ break;
21194
+ case "TSModuleBlock":
21195
+ walkTSModuleBlock(node, visitors);
21196
+ break;
21197
+ case "TSModuleDeclaration":
21198
+ walkTSModuleDeclaration(node, visitors);
21199
+ break;
21200
+ case "TSNamedTupleMember":
21201
+ walkTSNamedTupleMember(node, visitors);
21202
+ break;
21203
+ case "TSNamespaceExportDeclaration":
21204
+ walkTSNamespaceExportDeclaration(node, visitors);
21205
+ break;
21206
+ case "TSNonNullExpression":
21207
+ walkTSNonNullExpression(node, visitors);
21208
+ break;
21209
+ case "TSOptionalType":
21210
+ walkTSOptionalType(node, visitors);
21211
+ break;
21212
+ case "TSParameterProperty":
21213
+ walkTSParameterProperty(node, visitors);
21214
+ break;
21215
+ case "TSParenthesizedType":
21216
+ walkTSParenthesizedType(node, visitors);
21217
+ break;
21218
+ case "TSPropertySignature":
21219
+ walkTSPropertySignature(node, visitors);
21220
+ break;
21221
+ case "TSQualifiedName":
21222
+ walkTSQualifiedName(node, visitors);
21223
+ break;
21224
+ case "TSRestType":
21225
+ walkTSRestType(node, visitors);
21226
+ break;
21227
+ case "TSSatisfiesExpression":
21228
+ walkTSSatisfiesExpression(node, visitors);
21229
+ break;
21230
+ case "TSTemplateLiteralType":
21231
+ walkTSTemplateLiteralType(node, visitors);
21232
+ break;
21233
+ case "TSTupleType":
21234
+ walkTSTupleType(node, visitors);
21235
+ break;
21236
+ case "TSTypeAliasDeclaration":
21237
+ walkTSTypeAliasDeclaration(node, visitors);
21238
+ break;
21239
+ case "TSTypeAnnotation":
21240
+ walkTSTypeAnnotation(node, visitors);
21241
+ break;
21242
+ case "TSTypeAssertion":
21243
+ walkTSTypeAssertion(node, visitors);
21244
+ break;
21245
+ case "TSTypeLiteral":
21246
+ walkTSTypeLiteral(node, visitors);
21247
+ break;
21248
+ case "TSTypeOperator":
21249
+ walkTSTypeOperator(node, visitors);
21250
+ break;
21251
+ case "TSTypeParameter":
21252
+ walkTSTypeParameter(node, visitors);
21253
+ break;
21254
+ case "TSTypeParameterDeclaration":
21255
+ walkTSTypeParameterDeclaration(node, visitors);
21256
+ break;
21257
+ case "TSTypeParameterInstantiation":
21258
+ walkTSTypeParameterInstantiation(node, visitors);
21259
+ break;
21260
+ case "TSTypePredicate":
21261
+ walkTSTypePredicate(node, visitors);
21262
+ break;
21263
+ case "TSTypeQuery":
21264
+ walkTSTypeQuery(node, visitors);
21265
+ break;
21266
+ case "TSTypeReference":
21267
+ walkTSTypeReference(node, visitors);
21268
+ break;
21269
+ case "TSUnionType": walkTSUnionType(node, visitors);
21270
+ }
21220
21271
  }
21221
21272
  }
21222
21273
  function walkDebuggerStatement(node, visitors) {
@@ -21979,13 +22030,15 @@ function traverseNode(node, enter, leave) {
21979
22030
  let keys = keys_default[node.type], keysLen = keys.length;
21980
22031
  for (let i = 0; i < keysLen; i++) {
21981
22032
  let child = node[keys[i]];
21982
- if (child !== null) if (ArrayIsArray(child)) {
21983
- let len = child.length;
21984
- for (let i = 0; i < len; i++) {
21985
- let element = child[i];
21986
- element !== null && traverseNode(element, enter, leave);
21987
- }
21988
- } else traverseNode(child, enter, leave);
22033
+ if (child !== null) {
22034
+ if (ArrayIsArray(child)) {
22035
+ let len = child.length;
22036
+ for (let i = 0; i < len; i++) {
22037
+ let element = child[i];
22038
+ element !== null && traverseNode(element, enter, leave);
22039
+ }
22040
+ } else traverseNode(child, enter, leave);
22041
+ }
21989
22042
  }
21990
22043
  leave(node);
21991
22044
  }
@@ -22488,16 +22541,18 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
22488
22541
  if (!this.__fallback) throw Error("Unknown node type " + u + ".");
22489
22542
  x = this.__fallback(o);
22490
22543
  }
22491
- for (y = x.length; --y >= 0;) if (v = o[E = x[y]]) if (Array.isArray(v)) {
22492
- for (m = v.length; --m >= 0;) if (v[m]) {
22493
- if (h(u, x[y])) d = new c(v[m], [E, m], "Property", new l(v, m));
22494
- else {
22495
- if (!p(v[m])) continue;
22496
- d = new c(v[m], [E, m], null, new l(v, m));
22544
+ for (y = x.length; --y >= 0;) if (v = o[E = x[y]]) {
22545
+ if (Array.isArray(v)) {
22546
+ for (m = v.length; --m >= 0;) if (v[m]) {
22547
+ if (h(u, x[y])) d = new c(v[m], [E, m], "Property", new l(v, m));
22548
+ else {
22549
+ if (!p(v[m])) continue;
22550
+ d = new c(v[m], [E, m], null, new l(v, m));
22551
+ }
22552
+ r.push(d);
22497
22553
  }
22498
- r.push(d);
22499
- }
22500
- } else p(v) && r.push(new c(v, E, null, new l(o, E)));
22554
+ } else p(v) && r.push(new c(v, E, null, new l(o, E)));
22555
+ }
22501
22556
  }
22502
22557
  } else if (d = n.pop(), (f = this.__execute(t.leave, d)) !== void 0 && f !== a && f !== i && f !== s && d.ref.replace(f), this.__state !== s && f !== s || b(d), this.__state === a || f === a) return A.root;
22503
22558
  return A.root;
@@ -22843,15 +22898,16 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
22843
22898
  }()) !== s && Ee() !== s ? ((o = function() {
22844
22899
  var e, r, n, o, a, i = 36 * ce + 20, u = de[i];
22845
22900
  if (u) return ce = u.nextPos, u.result;
22846
- if (e = ce, t.substr(ce, 5) === "type(" ? (r = "type(", ce += 5) : (r = s, ge(q)), r !== s) if (Ee() !== s) {
22847
- if (n = [], V.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(G)), o !== s) for (; o !== s;) n.push(o), V.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(G));
22848
- else n = s;
22849
- n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = {
22850
- type: "type",
22851
- value: n.join("")
22852
- }, e = r)) : (ce = e, e = s);
22901
+ if (e = ce, t.substr(ce, 5) === "type(" ? (r = "type(", ce += 5) : (r = s, ge(q)), r !== s) {
22902
+ if (Ee() !== s) {
22903
+ if (n = [], V.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(G)), o !== s) for (; o !== s;) n.push(o), V.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(G));
22904
+ else n = s;
22905
+ n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = {
22906
+ type: "type",
22907
+ value: n.join("")
22908
+ }, e = r)) : (ce = e, e = s);
22909
+ } else ce = e, e = s;
22853
22910
  } else ce = e, e = s;
22854
- else ce = e, e = s;
22855
22911
  return de[i] = {
22856
22912
  nextPos: ce,
22857
22913
  result: e
@@ -22893,10 +22949,12 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
22893
22949
  for (n = [], T.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(F)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a))); o !== s;) n.push(o), T.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(F)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a)));
22894
22950
  n === s ? (ce = e, e = s) : (t.charCodeAt(ce) === 34 ? (o = "\"", ce++) : (o = s, ge(j)), o === s ? (ce = e, e = s) : (r = M(n), e = r));
22895
22951
  } else ce = e, e = s;
22896
- if (e === s) if (e = ce, t.charCodeAt(ce) === 39 ? (r = "'", ce++) : (r = s, ge(B)), r !== s) {
22897
- for (n = [], U.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(K)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a))); o !== s;) n.push(o), U.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(K)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a)));
22898
- n === s ? (ce = e, e = s) : (t.charCodeAt(ce) === 39 ? (o = "'", ce++) : (o = s, ge(B)), o === s ? (ce = e, e = s) : (r = M(n), e = r));
22899
- } else ce = e, e = s;
22952
+ if (e === s) {
22953
+ if (e = ce, t.charCodeAt(ce) === 39 ? (r = "'", ce++) : (r = s, ge(B)), r !== s) {
22954
+ for (n = [], U.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(K)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a))); o !== s;) n.push(o), U.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(K)), o === s && (o = ce, t.charCodeAt(ce) === 92 ? (a = "\\", ce++) : (a = s, ge(R)), a === s ? (ce = o, o = s) : (t.length > ce ? (i = t.charAt(ce), ce++) : (i = s, ge(O)), i === s ? (ce = o, o = s) : (a = L(a, i), o = a)));
22955
+ n === s ? (ce = e, e = s) : (t.charCodeAt(ce) === 39 ? (o = "'", ce++) : (o = s, ge(B)), o === s ? (ce = e, e = s) : (r = M(n), e = r));
22956
+ } else ce = e, e = s;
22957
+ }
22900
22958
  return de[u] = {
22901
22959
  nextPos: ce,
22902
22960
  result: e
@@ -22940,16 +22998,17 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
22940
22998
  }()) === s && (e = function() {
22941
22999
  var e, r, n, o, a, i, u, l, c = 36 * ce + 26, f = de[c];
22942
23000
  if (f) return ce = f.nextPos, f.result;
22943
- if (e = ce, t.charCodeAt(ce) === 46 ? (r = ".", ce++) : (r = s, ge(D)), r !== s) if ((n = be()) !== s) {
22944
- for (o = [], a = ce, t.charCodeAt(ce) === 46 ? (i = ".", ce++) : (i = s, ge(D)), i !== s && (u = be()) !== s ? a = i = [i, u] : (ce = a, a = s); a !== s;) o.push(a), a = ce, t.charCodeAt(ce) === 46 ? (i = ".", ce++) : (i = s, ge(D)), i !== s && (u = be()) !== s ? a = i = [i, u] : (ce = a, a = s);
22945
- o === s ? (ce = e, e = s) : (l = n, r = {
22946
- type: "field",
22947
- name: o.reduce((function(e, t) {
22948
- return e + t[0] + t[1];
22949
- }), l)
22950
- }, e = r);
23001
+ if (e = ce, t.charCodeAt(ce) === 46 ? (r = ".", ce++) : (r = s, ge(D)), r !== s) {
23002
+ if ((n = be()) !== s) {
23003
+ for (o = [], a = ce, t.charCodeAt(ce) === 46 ? (i = ".", ce++) : (i = s, ge(D)), i !== s && (u = be()) !== s ? a = i = [i, u] : (ce = a, a = s); a !== s;) o.push(a), a = ce, t.charCodeAt(ce) === 46 ? (i = ".", ce++) : (i = s, ge(D)), i !== s && (u = be()) !== s ? a = i = [i, u] : (ce = a, a = s);
23004
+ o === s ? (ce = e, e = s) : (l = n, r = {
23005
+ type: "field",
23006
+ name: o.reduce((function(e, t) {
23007
+ return e + t[0] + t[1];
23008
+ }), l)
23009
+ }, e = r);
23010
+ } else ce = e, e = s;
22951
23011
  } else ce = e, e = s;
22952
- else ce = e, e = s;
22953
23012
  return de[c] = {
22954
23013
  nextPos: ce,
22955
23014
  result: e
@@ -23020,12 +23079,13 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
23020
23079
  }()) === s && (e = function() {
23021
23080
  var e, r, n, o, a, i = 36 * ce + 33, u = de[i];
23022
23081
  if (u) return ce = u.nextPos, u.result;
23023
- if (e = ce, t.substr(ce, 11) === ":nth-child(" ? (r = ":nth-child(", ce += 11) : (r = s, ge(se)), r !== s) if (Ee() !== s) {
23024
- if (n = [], N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W)), o !== s) for (; o !== s;) n.push(o), N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W));
23025
- else n = s;
23026
- n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = Fe(parseInt(n.join(""), 10)), e = r)) : (ce = e, e = s);
23082
+ if (e = ce, t.substr(ce, 11) === ":nth-child(" ? (r = ":nth-child(", ce += 11) : (r = s, ge(se)), r !== s) {
23083
+ if (Ee() !== s) {
23084
+ if (n = [], N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W)), o !== s) for (; o !== s;) n.push(o), N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W));
23085
+ else n = s;
23086
+ n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = Fe(parseInt(n.join(""), 10)), e = r)) : (ce = e, e = s);
23087
+ } else ce = e, e = s;
23027
23088
  } else ce = e, e = s;
23028
- else ce = e, e = s;
23029
23089
  return de[i] = {
23030
23090
  nextPos: ce,
23031
23091
  result: e
@@ -23033,12 +23093,13 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
23033
23093
  }()) === s && (e = function() {
23034
23094
  var e, r, n, o, a, i = 36 * ce + 34, u = de[i];
23035
23095
  if (u) return ce = u.nextPos, u.result;
23036
- if (e = ce, t.substr(ce, 16) === ":nth-last-child(" ? (r = ":nth-last-child(", ce += 16) : (r = s, ge(ue)), r !== s) if (Ee() !== s) {
23037
- if (n = [], N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W)), o !== s) for (; o !== s;) n.push(o), N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W));
23038
- else n = s;
23039
- n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = Re(parseInt(n.join(""), 10)), e = r)) : (ce = e, e = s);
23096
+ if (e = ce, t.substr(ce, 16) === ":nth-last-child(" ? (r = ":nth-last-child(", ce += 16) : (r = s, ge(ue)), r !== s) {
23097
+ if (Ee() !== s) {
23098
+ if (n = [], N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W)), o !== s) for (; o !== s;) n.push(o), N.test(t.charAt(ce)) ? (o = t.charAt(ce), ce++) : (o = s, ge(W));
23099
+ else n = s;
23100
+ n !== s && (o = Ee()) !== s ? (t.charCodeAt(ce) === 41 ? (a = ")", ce++) : (a = s, ge(z)), a === s ? (ce = e, e = s) : (r = Re(parseInt(n.join(""), 10)), e = r)) : (ce = e, e = s);
23101
+ } else ce = e, e = s;
23040
23102
  } else ce = e, e = s;
23041
- else ce = e, e = s;
23042
23103
  return de[i] = {
23043
23104
  nextPos: ce,
23044
23105
  result: e
@@ -23369,14 +23430,16 @@ const resetWeakMaps = resetWeakMapsFn, { matches: esqueryMatches, parse: esquery
23369
23430
  }(t).map(c);
23370
23431
  i.traverse(e, {
23371
23432
  enter: function(e, t) {
23372
- if (t != null && s.unshift(t), u(e, s, a)) if (l.length) for (var r = 0, n = l.length; r < n; ++r) {
23373
- l[r](e, s, a) && o(e, t, s);
23374
- for (var i = 0, c = s.length; i < c; ++i) {
23375
- var f = s.slice(i + 1);
23376
- l[r](s[i], f, a) && o(s[i], t, f);
23433
+ if (t != null && s.unshift(t), u(e, s, a)) {
23434
+ if (l.length) for (var r = 0, n = l.length; r < n; ++r) {
23435
+ l[r](e, s, a) && o(e, t, s);
23436
+ for (var i = 0, c = s.length; i < c; ++i) {
23437
+ var f = s.slice(i + 1);
23438
+ l[r](s[i], f, a) && o(s[i], t, f);
23439
+ }
23377
23440
  }
23441
+ else o(e, t, s);
23378
23442
  }
23379
- else o(e, t, s);
23380
23443
  },
23381
23444
  leave: function() {
23382
23445
  s.shift();