hermes-estree 0.32.1 → 0.33.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/generated/HermesESTreeSelectorTypes.js.flow +262 -27
- package/dist/generated/predicates.js +120 -0
- package/dist/generated/predicates.js.flow +72 -0
- package/dist/predicates.js +2 -4
- package/dist/predicates.js.flow +5 -4
- package/dist/src/generated/predicates.js +120 -0
- package/dist/src/predicates.js +2 -4
- package/dist/types.js.flow +103 -11
- package/package.json +1 -1
- package/dist/HermesAST.js.flow +0 -57
- package/dist/HermesASTAdapter.js +0 -192
- package/dist/HermesASTAdapter.js.flow +0 -189
- package/dist/HermesParser.js +0 -108
- package/dist/HermesParser.js.flow +0 -161
- package/dist/HermesParserDecodeUTF8String.js +0 -68
- package/dist/HermesParserDecodeUTF8String.js.flow +0 -65
- package/dist/HermesParserDeserializer.js +0 -242
- package/dist/HermesParserDeserializer.js.flow +0 -260
- package/dist/HermesParserNodeDeserializers.js +0 -2477
- package/dist/HermesParserNodeDeserializers.js.flow +0 -16
- package/dist/HermesParserWASM.js +0 -6
- package/dist/HermesParserWASM.js.flow +0 -87
- package/dist/HermesToESTreeAdapter.js +0 -439
- package/dist/HermesToESTreeAdapter.js.flow +0 -421
- package/dist/ParserOptions.js +0 -18
- package/dist/ParserOptions.js.flow +0 -41
- package/dist/babel/TransformESTreeToBabel.js +0 -1123
- package/dist/babel/TransformESTreeToBabel.js.flow +0 -1277
- package/dist/estree/StripFlowTypes.js +0 -175
- package/dist/estree/StripFlowTypes.js.flow +0 -158
- package/dist/estree/StripFlowTypesForBabel.js +0 -215
- package/dist/estree/StripFlowTypesForBabel.js.flow +0 -216
- package/dist/estree/TransformComponentSyntax.js +0 -788
- package/dist/estree/TransformComponentSyntax.js.flow +0 -864
- package/dist/estree/TransformEnumSyntax.js +0 -106
- package/dist/estree/TransformEnumSyntax.js.flow +0 -125
- package/dist/estree/TransformMatchSyntax.js +0 -1006
- package/dist/estree/TransformMatchSyntax.js.flow +0 -912
- package/dist/generated/ESTreeVisitorKeys.js +0 -220
- package/dist/generated/ESTreeVisitorKeys.js.flow +0 -15
- package/dist/generated/ParserVisitorKeys.js +0 -794
- package/dist/generated/ParserVisitorKeys.js.flow +0 -17
- package/dist/getModuleDocblock.js +0 -112
- package/dist/getModuleDocblock.js.flow +0 -118
- package/dist/src/HermesASTAdapter.js +0 -192
- package/dist/src/HermesParser.js +0 -108
- package/dist/src/HermesParserDecodeUTF8String.js +0 -68
- package/dist/src/HermesParserDeserializer.js +0 -242
- package/dist/src/HermesParserNodeDeserializers.js +0 -2477
- package/dist/src/HermesToESTreeAdapter.js +0 -439
- package/dist/src/ParserOptions.js +0 -18
- package/dist/src/babel/TransformESTreeToBabel.js +0 -1123
- package/dist/src/estree/StripFlowTypes.js +0 -175
- package/dist/src/estree/StripFlowTypesForBabel.js +0 -215
- package/dist/src/estree/TransformComponentSyntax.js +0 -788
- package/dist/src/estree/TransformEnumSyntax.js +0 -106
- package/dist/src/estree/TransformMatchSyntax.js +0 -1006
- package/dist/src/generated/ESTreeVisitorKeys.js +0 -220
- package/dist/src/generated/ParserVisitorKeys.js +0 -794
- package/dist/src/getModuleDocblock.js +0 -112
- package/dist/src/transform/SimpleTransform.js +0 -136
- package/dist/src/transform/astArrayMutationHelpers.js +0 -62
- package/dist/src/transform/astNodeMutationHelpers.js +0 -200
- package/dist/src/traverse/SimpleTraverser.js +0 -137
- package/dist/src/traverse/getVisitorKeys.js +0 -37
- package/dist/src/utils/Builders.js +0 -191
- package/dist/src/utils/GenID.js +0 -41
- package/dist/src/utils/createSyntaxError.js +0 -25
- package/dist/src/utils/mutateESTreeASTForPrettier.js +0 -127
- package/dist/transform/SimpleTransform.js +0 -136
- package/dist/transform/SimpleTransform.js.flow +0 -169
- package/dist/transform/astArrayMutationHelpers.js +0 -62
- package/dist/transform/astArrayMutationHelpers.js.flow +0 -71
- package/dist/transform/astNodeMutationHelpers.js +0 -200
- package/dist/transform/astNodeMutationHelpers.js.flow +0 -246
- package/dist/traverse/SimpleTraverser.js +0 -137
- package/dist/traverse/SimpleTraverser.js.flow +0 -133
- package/dist/traverse/getVisitorKeys.js +0 -37
- package/dist/traverse/getVisitorKeys.js.flow +0 -36
- package/dist/utils/Builders.js +0 -191
- package/dist/utils/Builders.js.flow +0 -218
- package/dist/utils/GenID.js +0 -41
- package/dist/utils/GenID.js.flow +0 -38
- package/dist/utils/createSyntaxError.js +0 -25
- package/dist/utils/createSyntaxError.js.flow +0 -24
- package/dist/utils/mutateESTreeASTForPrettier.js +0 -127
- package/dist/utils/mutateESTreeASTForPrettier.js.flow +0 -130
|
@@ -139,6 +139,8 @@ import type {
|
|
|
139
139
|
MatchExpression,
|
|
140
140
|
MatchExpressionCase,
|
|
141
141
|
MatchIdentifierPattern,
|
|
142
|
+
MatchInstanceObjectPattern,
|
|
143
|
+
MatchInstancePattern,
|
|
142
144
|
MatchLiteralPattern,
|
|
143
145
|
MatchMemberPattern,
|
|
144
146
|
MatchObjectPattern,
|
|
@@ -153,6 +155,7 @@ import type {
|
|
|
153
155
|
MetaProperty,
|
|
154
156
|
MethodDefinition,
|
|
155
157
|
MixedTypeAnnotation,
|
|
158
|
+
NeverTypeAnnotation,
|
|
156
159
|
NewExpression,
|
|
157
160
|
NullableTypeAnnotation,
|
|
158
161
|
NullLiteralTypeAnnotation,
|
|
@@ -175,6 +178,13 @@ import type {
|
|
|
175
178
|
PropertyDefinition,
|
|
176
179
|
QualifiedTypeIdentifier,
|
|
177
180
|
QualifiedTypeofIdentifier,
|
|
181
|
+
RecordDeclaration,
|
|
182
|
+
RecordDeclarationBody,
|
|
183
|
+
RecordDeclarationImplements,
|
|
184
|
+
RecordDeclarationProperty,
|
|
185
|
+
RecordDeclarationStaticProperty,
|
|
186
|
+
RecordExpression,
|
|
187
|
+
RecordExpressionProperties,
|
|
178
188
|
RestElement,
|
|
179
189
|
ReturnStatement,
|
|
180
190
|
SequenceExpression,
|
|
@@ -206,7 +216,9 @@ import type {
|
|
|
206
216
|
TypeParameterInstantiation,
|
|
207
217
|
TypePredicate,
|
|
208
218
|
UnaryExpression,
|
|
219
|
+
UndefinedTypeAnnotation,
|
|
209
220
|
UnionTypeAnnotation,
|
|
221
|
+
UnknownTypeAnnotation,
|
|
210
222
|
UpdateExpression,
|
|
211
223
|
VariableDeclaration,
|
|
212
224
|
VariableDeclarator,
|
|
@@ -233,9 +245,6 @@ interface ArrayPattern_With_typeAnnotation extends ArrayPattern {
|
|
|
233
245
|
interface ArrayTypeAnnotation_With_elementType extends ArrayTypeAnnotation {
|
|
234
246
|
+elementType: $NonMaybeType<ArrayTypeAnnotation['elementType']>;
|
|
235
247
|
}
|
|
236
|
-
interface ArrowFunctionExpression_With_id extends ArrowFunctionExpression {
|
|
237
|
-
+id: $NonMaybeType<ArrowFunctionExpression['id']>;
|
|
238
|
-
}
|
|
239
248
|
interface ArrowFunctionExpression_With_params extends ArrowFunctionExpression {
|
|
240
249
|
+params: $NonMaybeType<ArrowFunctionExpression['params']>;
|
|
241
250
|
}
|
|
@@ -348,8 +357,8 @@ interface ClassDeclaration_With_typeParameters extends ClassDeclaration {
|
|
|
348
357
|
interface ClassDeclaration_With_superClass extends ClassDeclaration {
|
|
349
358
|
+superClass: $NonMaybeType<ClassDeclaration['superClass']>;
|
|
350
359
|
}
|
|
351
|
-
interface
|
|
352
|
-
+
|
|
360
|
+
interface ClassDeclaration_With_superTypeArguments extends ClassDeclaration {
|
|
361
|
+
+superTypeArguments: $NonMaybeType<ClassDeclaration['superTypeArguments']>;
|
|
353
362
|
}
|
|
354
363
|
interface ClassDeclaration_With_implements extends ClassDeclaration {
|
|
355
364
|
+implements: $NonMaybeType<ClassDeclaration['implements']>;
|
|
@@ -369,8 +378,8 @@ interface ClassExpression_With_typeParameters extends ClassExpression {
|
|
|
369
378
|
interface ClassExpression_With_superClass extends ClassExpression {
|
|
370
379
|
+superClass: $NonMaybeType<ClassExpression['superClass']>;
|
|
371
380
|
}
|
|
372
|
-
interface
|
|
373
|
-
+
|
|
381
|
+
interface ClassExpression_With_superTypeArguments extends ClassExpression {
|
|
382
|
+
+superTypeArguments: $NonMaybeType<ClassExpression['superTypeArguments']>;
|
|
374
383
|
}
|
|
375
384
|
interface ClassExpression_With_implements extends ClassExpression {
|
|
376
385
|
+implements: $NonMaybeType<ClassExpression['implements']>;
|
|
@@ -1077,6 +1086,21 @@ interface MatchExpressionCase_With_guard extends MatchExpressionCase {
|
|
|
1077
1086
|
interface MatchIdentifierPattern_With_id extends MatchIdentifierPattern {
|
|
1078
1087
|
+id: $NonMaybeType<MatchIdentifierPattern['id']>;
|
|
1079
1088
|
}
|
|
1089
|
+
interface MatchInstanceObjectPattern_With_properties
|
|
1090
|
+
extends MatchInstanceObjectPattern {
|
|
1091
|
+
+properties: $NonMaybeType<MatchInstanceObjectPattern['properties']>;
|
|
1092
|
+
}
|
|
1093
|
+
interface MatchInstanceObjectPattern_With_rest
|
|
1094
|
+
extends MatchInstanceObjectPattern {
|
|
1095
|
+
+rest: $NonMaybeType<MatchInstanceObjectPattern['rest']>;
|
|
1096
|
+
}
|
|
1097
|
+
interface MatchInstancePattern_With_targetConstructor
|
|
1098
|
+
extends MatchInstancePattern {
|
|
1099
|
+
+targetConstructor: $NonMaybeType<MatchInstancePattern['targetConstructor']>;
|
|
1100
|
+
}
|
|
1101
|
+
interface MatchInstancePattern_With_properties extends MatchInstancePattern {
|
|
1102
|
+
+properties: $NonMaybeType<MatchInstancePattern['properties']>;
|
|
1103
|
+
}
|
|
1080
1104
|
interface MatchLiteralPattern_With_literal extends MatchLiteralPattern {
|
|
1081
1105
|
+literal: $NonMaybeType<MatchLiteralPattern['literal']>;
|
|
1082
1106
|
}
|
|
@@ -1389,6 +1413,67 @@ interface QualifiedTypeofIdentifier_With_qualification
|
|
|
1389
1413
|
interface QualifiedTypeofIdentifier_With_id extends QualifiedTypeofIdentifier {
|
|
1390
1414
|
+id: $NonMaybeType<QualifiedTypeofIdentifier['id']>;
|
|
1391
1415
|
}
|
|
1416
|
+
interface RecordDeclaration_With_id extends RecordDeclaration {
|
|
1417
|
+
+id: $NonMaybeType<RecordDeclaration['id']>;
|
|
1418
|
+
}
|
|
1419
|
+
interface RecordDeclaration_With_typeParameters extends RecordDeclaration {
|
|
1420
|
+
+typeParameters: $NonMaybeType<RecordDeclaration['typeParameters']>;
|
|
1421
|
+
}
|
|
1422
|
+
interface RecordDeclaration_With_implements extends RecordDeclaration {
|
|
1423
|
+
+implements: $NonMaybeType<RecordDeclaration['implements']>;
|
|
1424
|
+
}
|
|
1425
|
+
interface RecordDeclaration_With_body extends RecordDeclaration {
|
|
1426
|
+
+body: $NonMaybeType<RecordDeclaration['body']>;
|
|
1427
|
+
}
|
|
1428
|
+
interface RecordDeclarationBody_With_elements extends RecordDeclarationBody {
|
|
1429
|
+
+elements: $NonMaybeType<RecordDeclarationBody['elements']>;
|
|
1430
|
+
}
|
|
1431
|
+
interface RecordDeclarationImplements_With_id
|
|
1432
|
+
extends RecordDeclarationImplements {
|
|
1433
|
+
+id: $NonMaybeType<RecordDeclarationImplements['id']>;
|
|
1434
|
+
}
|
|
1435
|
+
interface RecordDeclarationImplements_With_typeArguments
|
|
1436
|
+
extends RecordDeclarationImplements {
|
|
1437
|
+
+typeArguments: $NonMaybeType<RecordDeclarationImplements['typeArguments']>;
|
|
1438
|
+
}
|
|
1439
|
+
interface RecordDeclarationProperty_With_key extends RecordDeclarationProperty {
|
|
1440
|
+
+key: $NonMaybeType<RecordDeclarationProperty['key']>;
|
|
1441
|
+
}
|
|
1442
|
+
interface RecordDeclarationProperty_With_typeAnnotation
|
|
1443
|
+
extends RecordDeclarationProperty {
|
|
1444
|
+
+typeAnnotation: $NonMaybeType<RecordDeclarationProperty['typeAnnotation']>;
|
|
1445
|
+
}
|
|
1446
|
+
interface RecordDeclarationProperty_With_defaultValue
|
|
1447
|
+
extends RecordDeclarationProperty {
|
|
1448
|
+
+defaultValue: $NonMaybeType<RecordDeclarationProperty['defaultValue']>;
|
|
1449
|
+
}
|
|
1450
|
+
interface RecordDeclarationStaticProperty_With_key
|
|
1451
|
+
extends RecordDeclarationStaticProperty {
|
|
1452
|
+
+key: $NonMaybeType<RecordDeclarationStaticProperty['key']>;
|
|
1453
|
+
}
|
|
1454
|
+
interface RecordDeclarationStaticProperty_With_typeAnnotation
|
|
1455
|
+
extends RecordDeclarationStaticProperty {
|
|
1456
|
+
+typeAnnotation: $NonMaybeType<
|
|
1457
|
+
RecordDeclarationStaticProperty['typeAnnotation'],
|
|
1458
|
+
>;
|
|
1459
|
+
}
|
|
1460
|
+
interface RecordDeclarationStaticProperty_With_value
|
|
1461
|
+
extends RecordDeclarationStaticProperty {
|
|
1462
|
+
+value: $NonMaybeType<RecordDeclarationStaticProperty['value']>;
|
|
1463
|
+
}
|
|
1464
|
+
interface RecordExpression_With_recordConstructor extends RecordExpression {
|
|
1465
|
+
+recordConstructor: $NonMaybeType<RecordExpression['recordConstructor']>;
|
|
1466
|
+
}
|
|
1467
|
+
interface RecordExpression_With_typeArguments extends RecordExpression {
|
|
1468
|
+
+typeArguments: $NonMaybeType<RecordExpression['typeArguments']>;
|
|
1469
|
+
}
|
|
1470
|
+
interface RecordExpression_With_properties extends RecordExpression {
|
|
1471
|
+
+properties: $NonMaybeType<RecordExpression['properties']>;
|
|
1472
|
+
}
|
|
1473
|
+
interface RecordExpressionProperties_With_properties
|
|
1474
|
+
extends RecordExpressionProperties {
|
|
1475
|
+
+properties: $NonMaybeType<RecordExpressionProperties['properties']>;
|
|
1476
|
+
}
|
|
1392
1477
|
interface RestElement_With_argument extends RestElement {
|
|
1393
1478
|
+argument: $NonMaybeType<RestElement['argument']>;
|
|
1394
1479
|
}
|
|
@@ -1457,8 +1542,8 @@ interface TryStatement_With_handler extends TryStatement {
|
|
|
1457
1542
|
interface TryStatement_With_finalizer extends TryStatement {
|
|
1458
1543
|
+finalizer: $NonMaybeType<TryStatement['finalizer']>;
|
|
1459
1544
|
}
|
|
1460
|
-
interface
|
|
1461
|
-
+
|
|
1545
|
+
interface TupleTypeAnnotation_With_elementTypes extends TupleTypeAnnotation {
|
|
1546
|
+
+elementTypes: $NonMaybeType<TupleTypeAnnotation['elementTypes']>;
|
|
1462
1547
|
}
|
|
1463
1548
|
interface TupleTypeAnnotation_With_inexact extends TupleTypeAnnotation {
|
|
1464
1549
|
+inexact: $NonMaybeType<TupleTypeAnnotation['inexact']>;
|
|
@@ -1638,6 +1723,7 @@ type DeclarationSpecialSelector =
|
|
|
1638
1723
|
| HookDeclaration
|
|
1639
1724
|
| ImportDeclaration
|
|
1640
1725
|
| InterfaceDeclaration
|
|
1726
|
+
| RecordDeclaration
|
|
1641
1727
|
| TypeParameterDeclaration
|
|
1642
1728
|
| VariableDeclaration;
|
|
1643
1729
|
type PatternSpecialSelector =
|
|
@@ -1647,6 +1733,8 @@ type PatternSpecialSelector =
|
|
|
1647
1733
|
| MatchAsPattern
|
|
1648
1734
|
| MatchBindingPattern
|
|
1649
1735
|
| MatchIdentifierPattern
|
|
1736
|
+
| MatchInstanceObjectPattern
|
|
1737
|
+
| MatchInstancePattern
|
|
1650
1738
|
| MatchLiteralPattern
|
|
1651
1739
|
| MatchMemberPattern
|
|
1652
1740
|
| MatchObjectPattern
|
|
@@ -1678,6 +1766,7 @@ type ExpressionSpecialSelector =
|
|
|
1678
1766
|
| MemberExpression
|
|
1679
1767
|
| NewExpression
|
|
1680
1768
|
| ObjectExpression
|
|
1769
|
+
| RecordExpression
|
|
1681
1770
|
| SequenceExpression
|
|
1682
1771
|
| TaggedTemplateExpression
|
|
1683
1772
|
| ThisExpression
|
|
@@ -1708,9 +1797,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
1708
1797
|
node: ArrayTypeAnnotation_With_elementType,
|
|
1709
1798
|
) => void,
|
|
1710
1799
|
+ArrowFunctionExpression?: (node: ArrowFunctionExpression) => void,
|
|
1711
|
-
+'ArrowFunctionExpression[id]'?: (
|
|
1712
|
-
node: ArrowFunctionExpression_With_id,
|
|
1713
|
-
) => void,
|
|
1714
1800
|
+'ArrowFunctionExpression[params]'?: (
|
|
1715
1801
|
node: ArrowFunctionExpression_With_params,
|
|
1716
1802
|
) => void,
|
|
@@ -1803,8 +1889,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
1803
1889
|
+'ClassDeclaration[superClass]'?: (
|
|
1804
1890
|
node: ClassDeclaration_With_superClass,
|
|
1805
1891
|
) => void,
|
|
1806
|
-
+'ClassDeclaration[
|
|
1807
|
-
node:
|
|
1892
|
+
+'ClassDeclaration[superTypeArguments]'?: (
|
|
1893
|
+
node: ClassDeclaration_With_superTypeArguments,
|
|
1808
1894
|
) => void,
|
|
1809
1895
|
+'ClassDeclaration[implements]'?: (
|
|
1810
1896
|
node: ClassDeclaration_With_implements,
|
|
@@ -1821,8 +1907,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
1821
1907
|
+'ClassExpression[superClass]'?: (
|
|
1822
1908
|
node: ClassExpression_With_superClass,
|
|
1823
1909
|
) => void,
|
|
1824
|
-
+'ClassExpression[
|
|
1825
|
-
node:
|
|
1910
|
+
+'ClassExpression[superTypeArguments]'?: (
|
|
1911
|
+
node: ClassExpression_With_superTypeArguments,
|
|
1826
1912
|
) => void,
|
|
1827
1913
|
+'ClassExpression[implements]'?: (
|
|
1828
1914
|
node: ClassExpression_With_implements,
|
|
@@ -2380,6 +2466,20 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2380
2466
|
+'MatchIdentifierPattern[id]'?: (
|
|
2381
2467
|
node: MatchIdentifierPattern_With_id,
|
|
2382
2468
|
) => void,
|
|
2469
|
+
+MatchInstanceObjectPattern?: (node: MatchInstanceObjectPattern) => void,
|
|
2470
|
+
+'MatchInstanceObjectPattern[properties]'?: (
|
|
2471
|
+
node: MatchInstanceObjectPattern_With_properties,
|
|
2472
|
+
) => void,
|
|
2473
|
+
+'MatchInstanceObjectPattern[rest]'?: (
|
|
2474
|
+
node: MatchInstanceObjectPattern_With_rest,
|
|
2475
|
+
) => void,
|
|
2476
|
+
+MatchInstancePattern?: (node: MatchInstancePattern) => void,
|
|
2477
|
+
+'MatchInstancePattern[targetConstructor]'?: (
|
|
2478
|
+
node: MatchInstancePattern_With_targetConstructor,
|
|
2479
|
+
) => void,
|
|
2480
|
+
+'MatchInstancePattern[properties]'?: (
|
|
2481
|
+
node: MatchInstancePattern_With_properties,
|
|
2482
|
+
) => void,
|
|
2383
2483
|
+MatchLiteralPattern?: (node: MatchLiteralPattern) => void,
|
|
2384
2484
|
+'MatchLiteralPattern[literal]'?: (
|
|
2385
2485
|
node: MatchLiteralPattern_With_literal,
|
|
@@ -2447,6 +2547,7 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2447
2547
|
) => void,
|
|
2448
2548
|
+'MethodDefinition[static]'?: (node: MethodDefinition_With_static) => void,
|
|
2449
2549
|
+MixedTypeAnnotation?: (node: MixedTypeAnnotation) => void,
|
|
2550
|
+
+NeverTypeAnnotation?: (node: NeverTypeAnnotation) => void,
|
|
2450
2551
|
+NewExpression?: (node: NewExpression) => void,
|
|
2451
2552
|
+'NewExpression[callee]'?: (node: NewExpression_With_callee) => void,
|
|
2452
2553
|
+'NewExpression[typeArguments]'?: (
|
|
@@ -2630,6 +2731,62 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2630
2731
|
+'QualifiedTypeofIdentifier[id]'?: (
|
|
2631
2732
|
node: QualifiedTypeofIdentifier_With_id,
|
|
2632
2733
|
) => void,
|
|
2734
|
+
+RecordDeclaration?: (node: RecordDeclaration) => void,
|
|
2735
|
+
+'RecordDeclaration[id]'?: (node: RecordDeclaration_With_id) => void,
|
|
2736
|
+
+'RecordDeclaration[typeParameters]'?: (
|
|
2737
|
+
node: RecordDeclaration_With_typeParameters,
|
|
2738
|
+
) => void,
|
|
2739
|
+
+'RecordDeclaration[implements]'?: (
|
|
2740
|
+
node: RecordDeclaration_With_implements,
|
|
2741
|
+
) => void,
|
|
2742
|
+
+'RecordDeclaration[body]'?: (node: RecordDeclaration_With_body) => void,
|
|
2743
|
+
+RecordDeclarationBody?: (node: RecordDeclarationBody) => void,
|
|
2744
|
+
+'RecordDeclarationBody[elements]'?: (
|
|
2745
|
+
node: RecordDeclarationBody_With_elements,
|
|
2746
|
+
) => void,
|
|
2747
|
+
+RecordDeclarationImplements?: (node: RecordDeclarationImplements) => void,
|
|
2748
|
+
+'RecordDeclarationImplements[id]'?: (
|
|
2749
|
+
node: RecordDeclarationImplements_With_id,
|
|
2750
|
+
) => void,
|
|
2751
|
+
+'RecordDeclarationImplements[typeArguments]'?: (
|
|
2752
|
+
node: RecordDeclarationImplements_With_typeArguments,
|
|
2753
|
+
) => void,
|
|
2754
|
+
+RecordDeclarationProperty?: (node: RecordDeclarationProperty) => void,
|
|
2755
|
+
+'RecordDeclarationProperty[key]'?: (
|
|
2756
|
+
node: RecordDeclarationProperty_With_key,
|
|
2757
|
+
) => void,
|
|
2758
|
+
+'RecordDeclarationProperty[typeAnnotation]'?: (
|
|
2759
|
+
node: RecordDeclarationProperty_With_typeAnnotation,
|
|
2760
|
+
) => void,
|
|
2761
|
+
+'RecordDeclarationProperty[defaultValue]'?: (
|
|
2762
|
+
node: RecordDeclarationProperty_With_defaultValue,
|
|
2763
|
+
) => void,
|
|
2764
|
+
+RecordDeclarationStaticProperty?: (
|
|
2765
|
+
node: RecordDeclarationStaticProperty,
|
|
2766
|
+
) => void,
|
|
2767
|
+
+'RecordDeclarationStaticProperty[key]'?: (
|
|
2768
|
+
node: RecordDeclarationStaticProperty_With_key,
|
|
2769
|
+
) => void,
|
|
2770
|
+
+'RecordDeclarationStaticProperty[typeAnnotation]'?: (
|
|
2771
|
+
node: RecordDeclarationStaticProperty_With_typeAnnotation,
|
|
2772
|
+
) => void,
|
|
2773
|
+
+'RecordDeclarationStaticProperty[value]'?: (
|
|
2774
|
+
node: RecordDeclarationStaticProperty_With_value,
|
|
2775
|
+
) => void,
|
|
2776
|
+
+RecordExpression?: (node: RecordExpression) => void,
|
|
2777
|
+
+'RecordExpression[recordConstructor]'?: (
|
|
2778
|
+
node: RecordExpression_With_recordConstructor,
|
|
2779
|
+
) => void,
|
|
2780
|
+
+'RecordExpression[typeArguments]'?: (
|
|
2781
|
+
node: RecordExpression_With_typeArguments,
|
|
2782
|
+
) => void,
|
|
2783
|
+
+'RecordExpression[properties]'?: (
|
|
2784
|
+
node: RecordExpression_With_properties,
|
|
2785
|
+
) => void,
|
|
2786
|
+
+RecordExpressionProperties?: (node: RecordExpressionProperties) => void,
|
|
2787
|
+
+'RecordExpressionProperties[properties]'?: (
|
|
2788
|
+
node: RecordExpressionProperties_With_properties,
|
|
2789
|
+
) => void,
|
|
2633
2790
|
+RestElement?: (node: RestElement) => void,
|
|
2634
2791
|
+'RestElement[argument]'?: (node: RestElement_With_argument) => void,
|
|
2635
2792
|
+ReturnStatement?: (node: ReturnStatement) => void,
|
|
@@ -2685,8 +2842,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2685
2842
|
+'TryStatement[handler]'?: (node: TryStatement_With_handler) => void,
|
|
2686
2843
|
+'TryStatement[finalizer]'?: (node: TryStatement_With_finalizer) => void,
|
|
2687
2844
|
+TupleTypeAnnotation?: (node: TupleTypeAnnotation) => void,
|
|
2688
|
-
+'TupleTypeAnnotation[
|
|
2689
|
-
node:
|
|
2845
|
+
+'TupleTypeAnnotation[elementTypes]'?: (
|
|
2846
|
+
node: TupleTypeAnnotation_With_elementTypes,
|
|
2690
2847
|
) => void,
|
|
2691
2848
|
+'TupleTypeAnnotation[inexact]'?: (
|
|
2692
2849
|
node: TupleTypeAnnotation_With_inexact,
|
|
@@ -2767,10 +2924,12 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2767
2924
|
+'UnaryExpression[operator]'?: (node: UnaryExpression_With_operator) => void,
|
|
2768
2925
|
+'UnaryExpression[argument]'?: (node: UnaryExpression_With_argument) => void,
|
|
2769
2926
|
+'UnaryExpression[prefix]'?: (node: UnaryExpression_With_prefix) => void,
|
|
2927
|
+
+UndefinedTypeAnnotation?: (node: UndefinedTypeAnnotation) => void,
|
|
2770
2928
|
+UnionTypeAnnotation?: (node: UnionTypeAnnotation) => void,
|
|
2771
2929
|
+'UnionTypeAnnotation[types]'?: (
|
|
2772
2930
|
node: UnionTypeAnnotation_With_types,
|
|
2773
2931
|
) => void,
|
|
2932
|
+
+UnknownTypeAnnotation?: (node: UnknownTypeAnnotation) => void,
|
|
2774
2933
|
+UpdateExpression?: (node: UpdateExpression) => void,
|
|
2775
2934
|
+'UpdateExpression[operator]'?: (
|
|
2776
2935
|
node: UpdateExpression_With_operator,
|
|
@@ -2824,9 +2983,6 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2824
2983
|
node: ArrayTypeAnnotation_With_elementType,
|
|
2825
2984
|
) => void,
|
|
2826
2985
|
+'ArrowFunctionExpression:exit'?: (node: ArrowFunctionExpression) => void,
|
|
2827
|
-
+'ArrowFunctionExpression[id]:exit'?: (
|
|
2828
|
-
node: ArrowFunctionExpression_With_id,
|
|
2829
|
-
) => void,
|
|
2830
2986
|
+'ArrowFunctionExpression[params]:exit'?: (
|
|
2831
2987
|
node: ArrowFunctionExpression_With_params,
|
|
2832
2988
|
) => void,
|
|
@@ -2933,8 +3089,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2933
3089
|
+'ClassDeclaration[superClass]:exit'?: (
|
|
2934
3090
|
node: ClassDeclaration_With_superClass,
|
|
2935
3091
|
) => void,
|
|
2936
|
-
+'ClassDeclaration[
|
|
2937
|
-
node:
|
|
3092
|
+
+'ClassDeclaration[superTypeArguments]:exit'?: (
|
|
3093
|
+
node: ClassDeclaration_With_superTypeArguments,
|
|
2938
3094
|
) => void,
|
|
2939
3095
|
+'ClassDeclaration[implements]:exit'?: (
|
|
2940
3096
|
node: ClassDeclaration_With_implements,
|
|
@@ -2951,8 +3107,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2951
3107
|
+'ClassExpression[superClass]:exit'?: (
|
|
2952
3108
|
node: ClassExpression_With_superClass,
|
|
2953
3109
|
) => void,
|
|
2954
|
-
+'ClassExpression[
|
|
2955
|
-
node:
|
|
3110
|
+
+'ClassExpression[superTypeArguments]:exit'?: (
|
|
3111
|
+
node: ClassExpression_With_superTypeArguments,
|
|
2956
3112
|
) => void,
|
|
2957
3113
|
+'ClassExpression[implements]:exit'?: (
|
|
2958
3114
|
node: ClassExpression_With_implements,
|
|
@@ -3562,6 +3718,22 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3562
3718
|
+'MatchIdentifierPattern[id]:exit'?: (
|
|
3563
3719
|
node: MatchIdentifierPattern_With_id,
|
|
3564
3720
|
) => void,
|
|
3721
|
+
+'MatchInstanceObjectPattern:exit'?: (
|
|
3722
|
+
node: MatchInstanceObjectPattern,
|
|
3723
|
+
) => void,
|
|
3724
|
+
+'MatchInstanceObjectPattern[properties]:exit'?: (
|
|
3725
|
+
node: MatchInstanceObjectPattern_With_properties,
|
|
3726
|
+
) => void,
|
|
3727
|
+
+'MatchInstanceObjectPattern[rest]:exit'?: (
|
|
3728
|
+
node: MatchInstanceObjectPattern_With_rest,
|
|
3729
|
+
) => void,
|
|
3730
|
+
+'MatchInstancePattern:exit'?: (node: MatchInstancePattern) => void,
|
|
3731
|
+
+'MatchInstancePattern[targetConstructor]:exit'?: (
|
|
3732
|
+
node: MatchInstancePattern_With_targetConstructor,
|
|
3733
|
+
) => void,
|
|
3734
|
+
+'MatchInstancePattern[properties]:exit'?: (
|
|
3735
|
+
node: MatchInstancePattern_With_properties,
|
|
3736
|
+
) => void,
|
|
3565
3737
|
+'MatchLiteralPattern:exit'?: (node: MatchLiteralPattern) => void,
|
|
3566
3738
|
+'MatchLiteralPattern[literal]:exit'?: (
|
|
3567
3739
|
node: MatchLiteralPattern_With_literal,
|
|
@@ -3647,6 +3819,7 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3647
3819
|
node: MethodDefinition_With_static,
|
|
3648
3820
|
) => void,
|
|
3649
3821
|
+'MixedTypeAnnotation:exit'?: (node: MixedTypeAnnotation) => void,
|
|
3822
|
+
+'NeverTypeAnnotation:exit'?: (node: NeverTypeAnnotation) => void,
|
|
3650
3823
|
+'NewExpression:exit'?: (node: NewExpression) => void,
|
|
3651
3824
|
+'NewExpression[callee]:exit'?: (node: NewExpression_With_callee) => void,
|
|
3652
3825
|
+'NewExpression[typeArguments]:exit'?: (
|
|
@@ -3850,6 +4023,66 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3850
4023
|
+'QualifiedTypeofIdentifier[id]:exit'?: (
|
|
3851
4024
|
node: QualifiedTypeofIdentifier_With_id,
|
|
3852
4025
|
) => void,
|
|
4026
|
+
+'RecordDeclaration:exit'?: (node: RecordDeclaration) => void,
|
|
4027
|
+
+'RecordDeclaration[id]:exit'?: (node: RecordDeclaration_With_id) => void,
|
|
4028
|
+
+'RecordDeclaration[typeParameters]:exit'?: (
|
|
4029
|
+
node: RecordDeclaration_With_typeParameters,
|
|
4030
|
+
) => void,
|
|
4031
|
+
+'RecordDeclaration[implements]:exit'?: (
|
|
4032
|
+
node: RecordDeclaration_With_implements,
|
|
4033
|
+
) => void,
|
|
4034
|
+
+'RecordDeclaration[body]:exit'?: (node: RecordDeclaration_With_body) => void,
|
|
4035
|
+
+'RecordDeclarationBody:exit'?: (node: RecordDeclarationBody) => void,
|
|
4036
|
+
+'RecordDeclarationBody[elements]:exit'?: (
|
|
4037
|
+
node: RecordDeclarationBody_With_elements,
|
|
4038
|
+
) => void,
|
|
4039
|
+
+'RecordDeclarationImplements:exit'?: (
|
|
4040
|
+
node: RecordDeclarationImplements,
|
|
4041
|
+
) => void,
|
|
4042
|
+
+'RecordDeclarationImplements[id]:exit'?: (
|
|
4043
|
+
node: RecordDeclarationImplements_With_id,
|
|
4044
|
+
) => void,
|
|
4045
|
+
+'RecordDeclarationImplements[typeArguments]:exit'?: (
|
|
4046
|
+
node: RecordDeclarationImplements_With_typeArguments,
|
|
4047
|
+
) => void,
|
|
4048
|
+
+'RecordDeclarationProperty:exit'?: (node: RecordDeclarationProperty) => void,
|
|
4049
|
+
+'RecordDeclarationProperty[key]:exit'?: (
|
|
4050
|
+
node: RecordDeclarationProperty_With_key,
|
|
4051
|
+
) => void,
|
|
4052
|
+
+'RecordDeclarationProperty[typeAnnotation]:exit'?: (
|
|
4053
|
+
node: RecordDeclarationProperty_With_typeAnnotation,
|
|
4054
|
+
) => void,
|
|
4055
|
+
+'RecordDeclarationProperty[defaultValue]:exit'?: (
|
|
4056
|
+
node: RecordDeclarationProperty_With_defaultValue,
|
|
4057
|
+
) => void,
|
|
4058
|
+
+'RecordDeclarationStaticProperty:exit'?: (
|
|
4059
|
+
node: RecordDeclarationStaticProperty,
|
|
4060
|
+
) => void,
|
|
4061
|
+
+'RecordDeclarationStaticProperty[key]:exit'?: (
|
|
4062
|
+
node: RecordDeclarationStaticProperty_With_key,
|
|
4063
|
+
) => void,
|
|
4064
|
+
+'RecordDeclarationStaticProperty[typeAnnotation]:exit'?: (
|
|
4065
|
+
node: RecordDeclarationStaticProperty_With_typeAnnotation,
|
|
4066
|
+
) => void,
|
|
4067
|
+
+'RecordDeclarationStaticProperty[value]:exit'?: (
|
|
4068
|
+
node: RecordDeclarationStaticProperty_With_value,
|
|
4069
|
+
) => void,
|
|
4070
|
+
+'RecordExpression:exit'?: (node: RecordExpression) => void,
|
|
4071
|
+
+'RecordExpression[recordConstructor]:exit'?: (
|
|
4072
|
+
node: RecordExpression_With_recordConstructor,
|
|
4073
|
+
) => void,
|
|
4074
|
+
+'RecordExpression[typeArguments]:exit'?: (
|
|
4075
|
+
node: RecordExpression_With_typeArguments,
|
|
4076
|
+
) => void,
|
|
4077
|
+
+'RecordExpression[properties]:exit'?: (
|
|
4078
|
+
node: RecordExpression_With_properties,
|
|
4079
|
+
) => void,
|
|
4080
|
+
+'RecordExpressionProperties:exit'?: (
|
|
4081
|
+
node: RecordExpressionProperties,
|
|
4082
|
+
) => void,
|
|
4083
|
+
+'RecordExpressionProperties[properties]:exit'?: (
|
|
4084
|
+
node: RecordExpressionProperties_With_properties,
|
|
4085
|
+
) => void,
|
|
3853
4086
|
+'RestElement:exit'?: (node: RestElement) => void,
|
|
3854
4087
|
+'RestElement[argument]:exit'?: (node: RestElement_With_argument) => void,
|
|
3855
4088
|
+'ReturnStatement:exit'?: (node: ReturnStatement) => void,
|
|
@@ -3911,8 +4144,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3911
4144
|
+'TryStatement[handler]:exit'?: (node: TryStatement_With_handler) => void,
|
|
3912
4145
|
+'TryStatement[finalizer]:exit'?: (node: TryStatement_With_finalizer) => void,
|
|
3913
4146
|
+'TupleTypeAnnotation:exit'?: (node: TupleTypeAnnotation) => void,
|
|
3914
|
-
+'TupleTypeAnnotation[
|
|
3915
|
-
node:
|
|
4147
|
+
+'TupleTypeAnnotation[elementTypes]:exit'?: (
|
|
4148
|
+
node: TupleTypeAnnotation_With_elementTypes,
|
|
3916
4149
|
) => void,
|
|
3917
4150
|
+'TupleTypeAnnotation[inexact]:exit'?: (
|
|
3918
4151
|
node: TupleTypeAnnotation_With_inexact,
|
|
@@ -4001,10 +4234,12 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
4001
4234
|
node: UnaryExpression_With_argument,
|
|
4002
4235
|
) => void,
|
|
4003
4236
|
+'UnaryExpression[prefix]:exit'?: (node: UnaryExpression_With_prefix) => void,
|
|
4237
|
+
+'UndefinedTypeAnnotation:exit'?: (node: UndefinedTypeAnnotation) => void,
|
|
4004
4238
|
+'UnionTypeAnnotation:exit'?: (node: UnionTypeAnnotation) => void,
|
|
4005
4239
|
+'UnionTypeAnnotation[types]:exit'?: (
|
|
4006
4240
|
node: UnionTypeAnnotation_With_types,
|
|
4007
4241
|
) => void,
|
|
4242
|
+
+'UnknownTypeAnnotation:exit'?: (node: UnknownTypeAnnotation) => void,
|
|
4008
4243
|
+'UpdateExpression:exit'?: (node: UpdateExpression) => void,
|
|
4009
4244
|
+'UpdateExpression[operator]:exit'?: (
|
|
4010
4245
|
node: UpdateExpression_With_operator,
|