hermes-estree 0.5.0 → 0.8.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Facebook, Inc. and its affiliates.
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -8,9 +8,14 @@
8
8
  * @format
9
9
  */
10
10
 
11
+ // lint directives to let us do some basic validation of generated files
12
+ /* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
13
+ /* global $NonMaybeType, $Partial, $ReadOnly, $ReadOnlyArray */
14
+
11
15
  'use strict';
12
16
 
13
17
  import type {
18
+ ESNode,
14
19
  AnyTypeAnnotation,
15
20
  ArrayExpression,
16
21
  ArrayPattern,
@@ -19,6 +24,7 @@ import type {
19
24
  AssignmentExpression,
20
25
  AssignmentPattern,
21
26
  AwaitExpression,
27
+ BigIntLiteralTypeAnnotation,
22
28
  BinaryExpression,
23
29
  BlockStatement,
24
30
  BooleanLiteralTypeAnnotation,
@@ -26,12 +32,11 @@ import type {
26
32
  BreakStatement,
27
33
  CallExpression,
28
34
  CatchClause,
35
+ ChainExpression,
29
36
  ClassBody,
30
37
  ClassDeclaration,
31
38
  ClassExpression,
32
39
  ClassImplements,
33
- ClassPrivateProperty,
34
- ClassProperty,
35
40
  ConditionalExpression,
36
41
  ContinueStatement,
37
42
  DebuggerStatement,
@@ -62,7 +67,6 @@ import type {
62
67
  ExportAllDeclaration,
63
68
  ExportDefaultDeclaration,
64
69
  ExportNamedDeclaration,
65
- ExportNamespaceSpecifier,
66
70
  ExportSpecifier,
67
71
  ExpressionStatement,
68
72
  ForInStatement,
@@ -122,12 +126,11 @@ import type {
122
126
  ObjectTypeProperty,
123
127
  ObjectTypeSpreadProperty,
124
128
  OpaqueType,
125
- OptionalCallExpression,
126
129
  OptionalIndexedAccessType,
127
- OptionalMemberExpression,
128
- PrivateName,
130
+ PrivateIdentifier,
129
131
  Program,
130
132
  Property,
133
+ PropertyDefinition,
131
134
  QualifiedTypeIdentifier,
132
135
  RestElement,
133
136
  ReturnStatement,
@@ -228,6 +231,10 @@ interface AssignmentPattern_With_right extends AssignmentPattern {
228
231
  interface AwaitExpression_With_argument extends AwaitExpression {
229
232
  +argument: $NonMaybeType<AwaitExpression['argument']>;
230
233
  }
234
+ interface BigIntLiteralTypeAnnotation_With_raw
235
+ extends BigIntLiteralTypeAnnotation {
236
+ +raw: $NonMaybeType<BigIntLiteralTypeAnnotation['raw']>;
237
+ }
231
238
  interface BinaryExpression_With_left extends BinaryExpression {
232
239
  +left: $NonMaybeType<BinaryExpression['left']>;
233
240
  }
@@ -266,6 +273,9 @@ interface CatchClause_With_param extends CatchClause {
266
273
  interface CatchClause_With_body extends CatchClause {
267
274
  +body: $NonMaybeType<CatchClause['body']>;
268
275
  }
276
+ interface ChainExpression_With_expression extends ChainExpression {
277
+ +expression: $NonMaybeType<ChainExpression['expression']>;
278
+ }
269
279
  interface ClassBody_With_body extends ClassBody {
270
280
  +body: $NonMaybeType<ClassBody['body']>;
271
281
  }
@@ -317,52 +327,6 @@ interface ClassImplements_With_id extends ClassImplements {
317
327
  interface ClassImplements_With_typeParameters extends ClassImplements {
318
328
  +typeParameters: $NonMaybeType<ClassImplements['typeParameters']>;
319
329
  }
320
- interface ClassPrivateProperty_With_key extends ClassPrivateProperty {
321
- +key: $NonMaybeType<ClassPrivateProperty['key']>;
322
- }
323
- interface ClassPrivateProperty_With_value extends ClassPrivateProperty {
324
- +value: $NonMaybeType<ClassPrivateProperty['value']>;
325
- }
326
- interface ClassPrivateProperty_With_static extends ClassPrivateProperty {
327
- +static: $NonMaybeType<ClassPrivateProperty['static']>;
328
- }
329
- interface ClassPrivateProperty_With_declare extends ClassPrivateProperty {
330
- +declare: $NonMaybeType<ClassPrivateProperty['declare']>;
331
- }
332
- interface ClassPrivateProperty_With_optional extends ClassPrivateProperty {
333
- +optional: $NonMaybeType<ClassPrivateProperty['optional']>;
334
- }
335
- interface ClassPrivateProperty_With_variance extends ClassPrivateProperty {
336
- +variance: $NonMaybeType<ClassPrivateProperty['variance']>;
337
- }
338
- interface ClassPrivateProperty_With_typeAnnotation
339
- extends ClassPrivateProperty {
340
- +typeAnnotation: $NonMaybeType<ClassPrivateProperty['typeAnnotation']>;
341
- }
342
- interface ClassProperty_With_key extends ClassProperty {
343
- +key: $NonMaybeType<ClassProperty['key']>;
344
- }
345
- interface ClassProperty_With_value extends ClassProperty {
346
- +value: $NonMaybeType<ClassProperty['value']>;
347
- }
348
- interface ClassProperty_With_computed extends ClassProperty {
349
- +computed: $NonMaybeType<ClassProperty['computed']>;
350
- }
351
- interface ClassProperty_With_static extends ClassProperty {
352
- +static: $NonMaybeType<ClassProperty['static']>;
353
- }
354
- interface ClassProperty_With_declare extends ClassProperty {
355
- +declare: $NonMaybeType<ClassProperty['declare']>;
356
- }
357
- interface ClassProperty_With_optional extends ClassProperty {
358
- +optional: $NonMaybeType<ClassProperty['optional']>;
359
- }
360
- interface ClassProperty_With_variance extends ClassProperty {
361
- +variance: $NonMaybeType<ClassProperty['variance']>;
362
- }
363
- interface ClassProperty_With_typeAnnotation extends ClassProperty {
364
- +typeAnnotation: $NonMaybeType<ClassProperty['typeAnnotation']>;
365
- }
366
330
  interface ConditionalExpression_With_test extends ConditionalExpression {
367
331
  +test: $NonMaybeType<ConditionalExpression['test']>;
368
332
  }
@@ -537,6 +501,9 @@ interface EnumSymbolBody_With_members extends EnumSymbolBody {
537
501
  interface EnumSymbolBody_With_hasUnknownMembers extends EnumSymbolBody {
538
502
  +hasUnknownMembers: $NonMaybeType<EnumSymbolBody['hasUnknownMembers']>;
539
503
  }
504
+ interface ExportAllDeclaration_With_exported extends ExportAllDeclaration {
505
+ +exported: $NonMaybeType<ExportAllDeclaration['exported']>;
506
+ }
540
507
  interface ExportAllDeclaration_With_source extends ExportAllDeclaration {
541
508
  +source: $NonMaybeType<ExportAllDeclaration['source']>;
542
509
  }
@@ -562,10 +529,6 @@ interface ExportNamedDeclaration_With_exportKind
562
529
  extends ExportNamedDeclaration {
563
530
  +exportKind: $NonMaybeType<ExportNamedDeclaration['exportKind']>;
564
531
  }
565
- interface ExportNamespaceSpecifier_With_exported
566
- extends ExportNamespaceSpecifier {
567
- +exported: $NonMaybeType<ExportNamespaceSpecifier['exported']>;
568
- }
569
532
  interface ExportSpecifier_With_exported extends ExportSpecifier {
570
533
  +exported: $NonMaybeType<ExportSpecifier['exported']>;
571
534
  }
@@ -1021,19 +984,6 @@ interface OpaqueType_With_impltype extends OpaqueType {
1021
984
  interface OpaqueType_With_supertype extends OpaqueType {
1022
985
  +supertype: $NonMaybeType<OpaqueType['supertype']>;
1023
986
  }
1024
- interface OptionalCallExpression_With_callee extends OptionalCallExpression {
1025
- +callee: $NonMaybeType<OptionalCallExpression['callee']>;
1026
- }
1027
- interface OptionalCallExpression_With_typeArguments
1028
- extends OptionalCallExpression {
1029
- +typeArguments: $NonMaybeType<OptionalCallExpression['typeArguments']>;
1030
- }
1031
- interface OptionalCallExpression_With_arguments extends OptionalCallExpression {
1032
- +arguments: $NonMaybeType<OptionalCallExpression['arguments']>;
1033
- }
1034
- interface OptionalCallExpression_With_optional extends OptionalCallExpression {
1035
- +optional: $NonMaybeType<OptionalCallExpression['optional']>;
1036
- }
1037
987
  interface OptionalIndexedAccessType_With_objectType
1038
988
  extends OptionalIndexedAccessType {
1039
989
  +objectType: $NonMaybeType<OptionalIndexedAccessType['objectType']>;
@@ -1046,24 +996,8 @@ interface OptionalIndexedAccessType_With_optional
1046
996
  extends OptionalIndexedAccessType {
1047
997
  +optional: $NonMaybeType<OptionalIndexedAccessType['optional']>;
1048
998
  }
1049
- interface OptionalMemberExpression_With_object
1050
- extends OptionalMemberExpression {
1051
- +object: $NonMaybeType<OptionalMemberExpression['object']>;
1052
- }
1053
- interface OptionalMemberExpression_With_property
1054
- extends OptionalMemberExpression {
1055
- +property: $NonMaybeType<OptionalMemberExpression['property']>;
1056
- }
1057
- interface OptionalMemberExpression_With_computed
1058
- extends OptionalMemberExpression {
1059
- +computed: $NonMaybeType<OptionalMemberExpression['computed']>;
1060
- }
1061
- interface OptionalMemberExpression_With_optional
1062
- extends OptionalMemberExpression {
1063
- +optional: $NonMaybeType<OptionalMemberExpression['optional']>;
1064
- }
1065
- interface PrivateName_With_id extends PrivateName {
1066
- +id: $NonMaybeType<PrivateName['id']>;
999
+ interface PrivateIdentifier_With_name extends PrivateIdentifier {
1000
+ +name: $NonMaybeType<PrivateIdentifier['name']>;
1067
1001
  }
1068
1002
  interface Program_With_body extends Program {
1069
1003
  +body: $NonMaybeType<Program['body']>;
@@ -1086,6 +1020,30 @@ interface Property_With_method extends Property {
1086
1020
  interface Property_With_shorthand extends Property {
1087
1021
  +shorthand: $NonMaybeType<Property['shorthand']>;
1088
1022
  }
1023
+ interface PropertyDefinition_With_key extends PropertyDefinition {
1024
+ +key: $NonMaybeType<PropertyDefinition['key']>;
1025
+ }
1026
+ interface PropertyDefinition_With_value extends PropertyDefinition {
1027
+ +value: $NonMaybeType<PropertyDefinition['value']>;
1028
+ }
1029
+ interface PropertyDefinition_With_computed extends PropertyDefinition {
1030
+ +computed: $NonMaybeType<PropertyDefinition['computed']>;
1031
+ }
1032
+ interface PropertyDefinition_With_static extends PropertyDefinition {
1033
+ +static: $NonMaybeType<PropertyDefinition['static']>;
1034
+ }
1035
+ interface PropertyDefinition_With_declare extends PropertyDefinition {
1036
+ +declare: $NonMaybeType<PropertyDefinition['declare']>;
1037
+ }
1038
+ interface PropertyDefinition_With_optional extends PropertyDefinition {
1039
+ +optional: $NonMaybeType<PropertyDefinition['optional']>;
1040
+ }
1041
+ interface PropertyDefinition_With_variance extends PropertyDefinition {
1042
+ +variance: $NonMaybeType<PropertyDefinition['variance']>;
1043
+ }
1044
+ interface PropertyDefinition_With_typeAnnotation extends PropertyDefinition {
1045
+ +typeAnnotation: $NonMaybeType<PropertyDefinition['typeAnnotation']>;
1046
+ }
1089
1047
  interface QualifiedTypeIdentifier_With_qualification
1090
1048
  extends QualifiedTypeIdentifier {
1091
1049
  +qualification: $NonMaybeType<QualifiedTypeIdentifier['qualification']>;
@@ -1109,6 +1067,10 @@ interface StringLiteralTypeAnnotation_With_value
1109
1067
  extends StringLiteralTypeAnnotation {
1110
1068
  +value: $NonMaybeType<StringLiteralTypeAnnotation['value']>;
1111
1069
  }
1070
+ interface StringLiteralTypeAnnotation_With_raw
1071
+ extends StringLiteralTypeAnnotation {
1072
+ +raw: $NonMaybeType<StringLiteralTypeAnnotation['raw']>;
1073
+ }
1112
1074
  interface SwitchCase_With_test extends SwitchCase {
1113
1075
  +test: $NonMaybeType<SwitchCase['test']>;
1114
1076
  }
@@ -1295,6 +1257,7 @@ type ExpressionSpecialSelector =
1295
1257
  | AwaitExpression
1296
1258
  | BinaryExpression
1297
1259
  | CallExpression
1260
+ | ChainExpression
1298
1261
  | ClassExpression
1299
1262
  | ConditionalExpression
1300
1263
  | FunctionExpression
@@ -1305,8 +1268,6 @@ type ExpressionSpecialSelector =
1305
1268
  | MemberExpression
1306
1269
  | NewExpression
1307
1270
  | ObjectExpression
1308
- | OptionalCallExpression
1309
- | OptionalMemberExpression
1310
1271
  | SequenceExpression
1311
1272
  | TaggedTemplateExpression
1312
1273
  | ThisExpression
@@ -1376,6 +1337,10 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1376
1337
  +'AssignmentPattern[right]'?: (node: AssignmentPattern_With_right) => void,
1377
1338
  +AwaitExpression?: (node: AwaitExpression) => void,
1378
1339
  +'AwaitExpression[argument]'?: (node: AwaitExpression_With_argument) => void,
1340
+ +BigIntLiteralTypeAnnotation?: (node: BigIntLiteralTypeAnnotation) => void,
1341
+ +'BigIntLiteralTypeAnnotation[raw]'?: (
1342
+ node: BigIntLiteralTypeAnnotation_With_raw,
1343
+ ) => void,
1379
1344
  +BinaryExpression?: (node: BinaryExpression) => void,
1380
1345
  +'BinaryExpression[left]'?: (node: BinaryExpression_With_left) => void,
1381
1346
  +'BinaryExpression[right]'?: (node: BinaryExpression_With_right) => void,
@@ -1403,6 +1368,10 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1403
1368
  +CatchClause?: (node: CatchClause) => void,
1404
1369
  +'CatchClause[param]'?: (node: CatchClause_With_param) => void,
1405
1370
  +'CatchClause[body]'?: (node: CatchClause_With_body) => void,
1371
+ +ChainExpression?: (node: ChainExpression) => void,
1372
+ +'ChainExpression[expression]'?: (
1373
+ node: ChainExpression_With_expression,
1374
+ ) => void,
1406
1375
  +ClassBody?: (node: ClassBody) => void,
1407
1376
  +'ClassBody[body]'?: (node: ClassBody_With_body) => void,
1408
1377
  +ClassDeclaration?: (node: ClassDeclaration) => void,
@@ -1446,37 +1415,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1446
1415
  +'ClassImplements[typeParameters]'?: (
1447
1416
  node: ClassImplements_With_typeParameters,
1448
1417
  ) => void,
1449
- +ClassPrivateProperty?: (node: ClassPrivateProperty) => void,
1450
- +'ClassPrivateProperty[key]'?: (node: ClassPrivateProperty_With_key) => void,
1451
- +'ClassPrivateProperty[value]'?: (
1452
- node: ClassPrivateProperty_With_value,
1453
- ) => void,
1454
- +'ClassPrivateProperty[static]'?: (
1455
- node: ClassPrivateProperty_With_static,
1456
- ) => void,
1457
- +'ClassPrivateProperty[declare]'?: (
1458
- node: ClassPrivateProperty_With_declare,
1459
- ) => void,
1460
- +'ClassPrivateProperty[optional]'?: (
1461
- node: ClassPrivateProperty_With_optional,
1462
- ) => void,
1463
- +'ClassPrivateProperty[variance]'?: (
1464
- node: ClassPrivateProperty_With_variance,
1465
- ) => void,
1466
- +'ClassPrivateProperty[typeAnnotation]'?: (
1467
- node: ClassPrivateProperty_With_typeAnnotation,
1468
- ) => void,
1469
- +ClassProperty?: (node: ClassProperty) => void,
1470
- +'ClassProperty[key]'?: (node: ClassProperty_With_key) => void,
1471
- +'ClassProperty[value]'?: (node: ClassProperty_With_value) => void,
1472
- +'ClassProperty[computed]'?: (node: ClassProperty_With_computed) => void,
1473
- +'ClassProperty[static]'?: (node: ClassProperty_With_static) => void,
1474
- +'ClassProperty[declare]'?: (node: ClassProperty_With_declare) => void,
1475
- +'ClassProperty[optional]'?: (node: ClassProperty_With_optional) => void,
1476
- +'ClassProperty[variance]'?: (node: ClassProperty_With_variance) => void,
1477
- +'ClassProperty[typeAnnotation]'?: (
1478
- node: ClassProperty_With_typeAnnotation,
1479
- ) => void,
1480
1418
  +ConditionalExpression?: (node: ConditionalExpression) => void,
1481
1419
  +'ConditionalExpression[test]'?: (
1482
1420
  node: ConditionalExpression_With_test,
@@ -1607,6 +1545,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1607
1545
  ) => void,
1608
1546
  +ExistsTypeAnnotation?: (node: ExistsTypeAnnotation) => void,
1609
1547
  +ExportAllDeclaration?: (node: ExportAllDeclaration) => void,
1548
+ +'ExportAllDeclaration[exported]'?: (
1549
+ node: ExportAllDeclaration_With_exported,
1550
+ ) => void,
1610
1551
  +'ExportAllDeclaration[source]'?: (
1611
1552
  node: ExportAllDeclaration_With_source,
1612
1553
  ) => void,
@@ -1630,10 +1571,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1630
1571
  +'ExportNamedDeclaration[exportKind]'?: (
1631
1572
  node: ExportNamedDeclaration_With_exportKind,
1632
1573
  ) => void,
1633
- +ExportNamespaceSpecifier?: (node: ExportNamespaceSpecifier) => void,
1634
- +'ExportNamespaceSpecifier[exported]'?: (
1635
- node: ExportNamespaceSpecifier_With_exported,
1636
- ) => void,
1637
1574
  +ExportSpecifier?: (node: ExportSpecifier) => void,
1638
1575
  +'ExportSpecifier[exported]'?: (node: ExportSpecifier_With_exported) => void,
1639
1576
  +'ExportSpecifier[local]'?: (node: ExportSpecifier_With_local) => void,
@@ -2001,19 +1938,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2001
1938
  ) => void,
2002
1939
  +'OpaqueType[impltype]'?: (node: OpaqueType_With_impltype) => void,
2003
1940
  +'OpaqueType[supertype]'?: (node: OpaqueType_With_supertype) => void,
2004
- +OptionalCallExpression?: (node: OptionalCallExpression) => void,
2005
- +'OptionalCallExpression[callee]'?: (
2006
- node: OptionalCallExpression_With_callee,
2007
- ) => void,
2008
- +'OptionalCallExpression[typeArguments]'?: (
2009
- node: OptionalCallExpression_With_typeArguments,
2010
- ) => void,
2011
- +'OptionalCallExpression[arguments]'?: (
2012
- node: OptionalCallExpression_With_arguments,
2013
- ) => void,
2014
- +'OptionalCallExpression[optional]'?: (
2015
- node: OptionalCallExpression_With_optional,
2016
- ) => void,
2017
1941
  +OptionalIndexedAccessType?: (node: OptionalIndexedAccessType) => void,
2018
1942
  +'OptionalIndexedAccessType[objectType]'?: (
2019
1943
  node: OptionalIndexedAccessType_With_objectType,
@@ -2024,21 +1948,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2024
1948
  +'OptionalIndexedAccessType[optional]'?: (
2025
1949
  node: OptionalIndexedAccessType_With_optional,
2026
1950
  ) => void,
2027
- +OptionalMemberExpression?: (node: OptionalMemberExpression) => void,
2028
- +'OptionalMemberExpression[object]'?: (
2029
- node: OptionalMemberExpression_With_object,
2030
- ) => void,
2031
- +'OptionalMemberExpression[property]'?: (
2032
- node: OptionalMemberExpression_With_property,
2033
- ) => void,
2034
- +'OptionalMemberExpression[computed]'?: (
2035
- node: OptionalMemberExpression_With_computed,
2036
- ) => void,
2037
- +'OptionalMemberExpression[optional]'?: (
2038
- node: OptionalMemberExpression_With_optional,
2039
- ) => void,
2040
- +PrivateName?: (node: PrivateName) => void,
2041
- +'PrivateName[id]'?: (node: PrivateName_With_id) => void,
1951
+ +PrivateIdentifier?: (node: PrivateIdentifier) => void,
1952
+ +'PrivateIdentifier[name]'?: (node: PrivateIdentifier_With_name) => void,
2042
1953
  +Program?: (node: Program) => void,
2043
1954
  +'Program[body]'?: (node: Program_With_body) => void,
2044
1955
  +Property?: (node: Property) => void,
@@ -2048,6 +1959,27 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2048
1959
  +'Property[computed]'?: (node: Property_With_computed) => void,
2049
1960
  +'Property[method]'?: (node: Property_With_method) => void,
2050
1961
  +'Property[shorthand]'?: (node: Property_With_shorthand) => void,
1962
+ +PropertyDefinition?: (node: PropertyDefinition) => void,
1963
+ +'PropertyDefinition[key]'?: (node: PropertyDefinition_With_key) => void,
1964
+ +'PropertyDefinition[value]'?: (node: PropertyDefinition_With_value) => void,
1965
+ +'PropertyDefinition[computed]'?: (
1966
+ node: PropertyDefinition_With_computed,
1967
+ ) => void,
1968
+ +'PropertyDefinition[static]'?: (
1969
+ node: PropertyDefinition_With_static,
1970
+ ) => void,
1971
+ +'PropertyDefinition[declare]'?: (
1972
+ node: PropertyDefinition_With_declare,
1973
+ ) => void,
1974
+ +'PropertyDefinition[optional]'?: (
1975
+ node: PropertyDefinition_With_optional,
1976
+ ) => void,
1977
+ +'PropertyDefinition[variance]'?: (
1978
+ node: PropertyDefinition_With_variance,
1979
+ ) => void,
1980
+ +'PropertyDefinition[typeAnnotation]'?: (
1981
+ node: PropertyDefinition_With_typeAnnotation,
1982
+ ) => void,
2051
1983
  +QualifiedTypeIdentifier?: (node: QualifiedTypeIdentifier) => void,
2052
1984
  +'QualifiedTypeIdentifier[qualification]'?: (
2053
1985
  node: QualifiedTypeIdentifier_With_qualification,
@@ -2069,6 +2001,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2069
2001
  +'StringLiteralTypeAnnotation[value]'?: (
2070
2002
  node: StringLiteralTypeAnnotation_With_value,
2071
2003
  ) => void,
2004
+ +'StringLiteralTypeAnnotation[raw]'?: (
2005
+ node: StringLiteralTypeAnnotation_With_raw,
2006
+ ) => void,
2072
2007
  +StringTypeAnnotation?: (node: StringTypeAnnotation) => void,
2073
2008
  +Super?: (node: Super) => void,
2074
2009
  +SwitchCase?: (node: SwitchCase) => void,
@@ -2244,6 +2179,12 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2244
2179
  +'AwaitExpression[argument]:exit'?: (
2245
2180
  node: AwaitExpression_With_argument,
2246
2181
  ) => void,
2182
+ +'BigIntLiteralTypeAnnotation:exit'?: (
2183
+ node: BigIntLiteralTypeAnnotation,
2184
+ ) => void,
2185
+ +'BigIntLiteralTypeAnnotation[raw]:exit'?: (
2186
+ node: BigIntLiteralTypeAnnotation_With_raw,
2187
+ ) => void,
2247
2188
  +'BinaryExpression:exit'?: (node: BinaryExpression) => void,
2248
2189
  +'BinaryExpression[left]:exit'?: (node: BinaryExpression_With_left) => void,
2249
2190
  +'BinaryExpression[right]:exit'?: (node: BinaryExpression_With_right) => void,
@@ -2275,6 +2216,10 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2275
2216
  +'CatchClause:exit'?: (node: CatchClause) => void,
2276
2217
  +'CatchClause[param]:exit'?: (node: CatchClause_With_param) => void,
2277
2218
  +'CatchClause[body]:exit'?: (node: CatchClause_With_body) => void,
2219
+ +'ChainExpression:exit'?: (node: ChainExpression) => void,
2220
+ +'ChainExpression[expression]:exit'?: (
2221
+ node: ChainExpression_With_expression,
2222
+ ) => void,
2278
2223
  +'ClassBody:exit'?: (node: ClassBody) => void,
2279
2224
  +'ClassBody[body]:exit'?: (node: ClassBody_With_body) => void,
2280
2225
  +'ClassDeclaration:exit'?: (node: ClassDeclaration) => void,
@@ -2318,39 +2263,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2318
2263
  +'ClassImplements[typeParameters]:exit'?: (
2319
2264
  node: ClassImplements_With_typeParameters,
2320
2265
  ) => void,
2321
- +'ClassPrivateProperty:exit'?: (node: ClassPrivateProperty) => void,
2322
- +'ClassPrivateProperty[key]:exit'?: (
2323
- node: ClassPrivateProperty_With_key,
2324
- ) => void,
2325
- +'ClassPrivateProperty[value]:exit'?: (
2326
- node: ClassPrivateProperty_With_value,
2327
- ) => void,
2328
- +'ClassPrivateProperty[static]:exit'?: (
2329
- node: ClassPrivateProperty_With_static,
2330
- ) => void,
2331
- +'ClassPrivateProperty[declare]:exit'?: (
2332
- node: ClassPrivateProperty_With_declare,
2333
- ) => void,
2334
- +'ClassPrivateProperty[optional]:exit'?: (
2335
- node: ClassPrivateProperty_With_optional,
2336
- ) => void,
2337
- +'ClassPrivateProperty[variance]:exit'?: (
2338
- node: ClassPrivateProperty_With_variance,
2339
- ) => void,
2340
- +'ClassPrivateProperty[typeAnnotation]:exit'?: (
2341
- node: ClassPrivateProperty_With_typeAnnotation,
2342
- ) => void,
2343
- +'ClassProperty:exit'?: (node: ClassProperty) => void,
2344
- +'ClassProperty[key]:exit'?: (node: ClassProperty_With_key) => void,
2345
- +'ClassProperty[value]:exit'?: (node: ClassProperty_With_value) => void,
2346
- +'ClassProperty[computed]:exit'?: (node: ClassProperty_With_computed) => void,
2347
- +'ClassProperty[static]:exit'?: (node: ClassProperty_With_static) => void,
2348
- +'ClassProperty[declare]:exit'?: (node: ClassProperty_With_declare) => void,
2349
- +'ClassProperty[optional]:exit'?: (node: ClassProperty_With_optional) => void,
2350
- +'ClassProperty[variance]:exit'?: (node: ClassProperty_With_variance) => void,
2351
- +'ClassProperty[typeAnnotation]:exit'?: (
2352
- node: ClassProperty_With_typeAnnotation,
2353
- ) => void,
2354
2266
  +'ConditionalExpression:exit'?: (node: ConditionalExpression) => void,
2355
2267
  +'ConditionalExpression[test]:exit'?: (
2356
2268
  node: ConditionalExpression_With_test,
@@ -2493,6 +2405,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2493
2405
  ) => void,
2494
2406
  +'ExistsTypeAnnotation:exit'?: (node: ExistsTypeAnnotation) => void,
2495
2407
  +'ExportAllDeclaration:exit'?: (node: ExportAllDeclaration) => void,
2408
+ +'ExportAllDeclaration[exported]:exit'?: (
2409
+ node: ExportAllDeclaration_With_exported,
2410
+ ) => void,
2496
2411
  +'ExportAllDeclaration[source]:exit'?: (
2497
2412
  node: ExportAllDeclaration_With_source,
2498
2413
  ) => void,
@@ -2516,10 +2431,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2516
2431
  +'ExportNamedDeclaration[exportKind]:exit'?: (
2517
2432
  node: ExportNamedDeclaration_With_exportKind,
2518
2433
  ) => void,
2519
- +'ExportNamespaceSpecifier:exit'?: (node: ExportNamespaceSpecifier) => void,
2520
- +'ExportNamespaceSpecifier[exported]:exit'?: (
2521
- node: ExportNamespaceSpecifier_With_exported,
2522
- ) => void,
2523
2434
  +'ExportSpecifier:exit'?: (node: ExportSpecifier) => void,
2524
2435
  +'ExportSpecifier[exported]:exit'?: (
2525
2436
  node: ExportSpecifier_With_exported,
@@ -2929,19 +2840,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2929
2840
  ) => void,
2930
2841
  +'OpaqueType[impltype]:exit'?: (node: OpaqueType_With_impltype) => void,
2931
2842
  +'OpaqueType[supertype]:exit'?: (node: OpaqueType_With_supertype) => void,
2932
- +'OptionalCallExpression:exit'?: (node: OptionalCallExpression) => void,
2933
- +'OptionalCallExpression[callee]:exit'?: (
2934
- node: OptionalCallExpression_With_callee,
2935
- ) => void,
2936
- +'OptionalCallExpression[typeArguments]:exit'?: (
2937
- node: OptionalCallExpression_With_typeArguments,
2938
- ) => void,
2939
- +'OptionalCallExpression[arguments]:exit'?: (
2940
- node: OptionalCallExpression_With_arguments,
2941
- ) => void,
2942
- +'OptionalCallExpression[optional]:exit'?: (
2943
- node: OptionalCallExpression_With_optional,
2944
- ) => void,
2945
2843
  +'OptionalIndexedAccessType:exit'?: (node: OptionalIndexedAccessType) => void,
2946
2844
  +'OptionalIndexedAccessType[objectType]:exit'?: (
2947
2845
  node: OptionalIndexedAccessType_With_objectType,
@@ -2952,21 +2850,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2952
2850
  +'OptionalIndexedAccessType[optional]:exit'?: (
2953
2851
  node: OptionalIndexedAccessType_With_optional,
2954
2852
  ) => void,
2955
- +'OptionalMemberExpression:exit'?: (node: OptionalMemberExpression) => void,
2956
- +'OptionalMemberExpression[object]:exit'?: (
2957
- node: OptionalMemberExpression_With_object,
2958
- ) => void,
2959
- +'OptionalMemberExpression[property]:exit'?: (
2960
- node: OptionalMemberExpression_With_property,
2961
- ) => void,
2962
- +'OptionalMemberExpression[computed]:exit'?: (
2963
- node: OptionalMemberExpression_With_computed,
2964
- ) => void,
2965
- +'OptionalMemberExpression[optional]:exit'?: (
2966
- node: OptionalMemberExpression_With_optional,
2967
- ) => void,
2968
- +'PrivateName:exit'?: (node: PrivateName) => void,
2969
- +'PrivateName[id]:exit'?: (node: PrivateName_With_id) => void,
2853
+ +'PrivateIdentifier:exit'?: (node: PrivateIdentifier) => void,
2854
+ +'PrivateIdentifier[name]:exit'?: (node: PrivateIdentifier_With_name) => void,
2970
2855
  +'Program:exit'?: (node: Program) => void,
2971
2856
  +'Program[body]:exit'?: (node: Program_With_body) => void,
2972
2857
  +'Property:exit'?: (node: Property) => void,
@@ -2976,6 +2861,29 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2976
2861
  +'Property[computed]:exit'?: (node: Property_With_computed) => void,
2977
2862
  +'Property[method]:exit'?: (node: Property_With_method) => void,
2978
2863
  +'Property[shorthand]:exit'?: (node: Property_With_shorthand) => void,
2864
+ +'PropertyDefinition:exit'?: (node: PropertyDefinition) => void,
2865
+ +'PropertyDefinition[key]:exit'?: (node: PropertyDefinition_With_key) => void,
2866
+ +'PropertyDefinition[value]:exit'?: (
2867
+ node: PropertyDefinition_With_value,
2868
+ ) => void,
2869
+ +'PropertyDefinition[computed]:exit'?: (
2870
+ node: PropertyDefinition_With_computed,
2871
+ ) => void,
2872
+ +'PropertyDefinition[static]:exit'?: (
2873
+ node: PropertyDefinition_With_static,
2874
+ ) => void,
2875
+ +'PropertyDefinition[declare]:exit'?: (
2876
+ node: PropertyDefinition_With_declare,
2877
+ ) => void,
2878
+ +'PropertyDefinition[optional]:exit'?: (
2879
+ node: PropertyDefinition_With_optional,
2880
+ ) => void,
2881
+ +'PropertyDefinition[variance]:exit'?: (
2882
+ node: PropertyDefinition_With_variance,
2883
+ ) => void,
2884
+ +'PropertyDefinition[typeAnnotation]:exit'?: (
2885
+ node: PropertyDefinition_With_typeAnnotation,
2886
+ ) => void,
2979
2887
  +'QualifiedTypeIdentifier:exit'?: (node: QualifiedTypeIdentifier) => void,
2980
2888
  +'QualifiedTypeIdentifier[qualification]:exit'?: (
2981
2889
  node: QualifiedTypeIdentifier_With_qualification,
@@ -3001,6 +2909,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
3001
2909
  +'StringLiteralTypeAnnotation[value]:exit'?: (
3002
2910
  node: StringLiteralTypeAnnotation_With_value,
3003
2911
  ) => void,
2912
+ +'StringLiteralTypeAnnotation[raw]:exit'?: (
2913
+ node: StringLiteralTypeAnnotation_With_raw,
2914
+ ) => void,
3004
2915
  +'StringTypeAnnotation:exit'?: (node: StringTypeAnnotation) => void,
3005
2916
  +'Super:exit'?: (node: Super) => void,
3006
2917
  +'SwitchCase:exit'?: (node: SwitchCase) => void,