hermes-estree 0.5.0 → 0.6.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,
@@ -228,6 +234,10 @@ interface AssignmentPattern_With_right extends AssignmentPattern {
228
234
  interface AwaitExpression_With_argument extends AwaitExpression {
229
235
  +argument: $NonMaybeType<AwaitExpression['argument']>;
230
236
  }
237
+ interface BigIntLiteralTypeAnnotation_With_raw
238
+ extends BigIntLiteralTypeAnnotation {
239
+ +raw: $NonMaybeType<BigIntLiteralTypeAnnotation['raw']>;
240
+ }
231
241
  interface BinaryExpression_With_left extends BinaryExpression {
232
242
  +left: $NonMaybeType<BinaryExpression['left']>;
233
243
  }
@@ -1109,6 +1119,10 @@ interface StringLiteralTypeAnnotation_With_value
1109
1119
  extends StringLiteralTypeAnnotation {
1110
1120
  +value: $NonMaybeType<StringLiteralTypeAnnotation['value']>;
1111
1121
  }
1122
+ interface StringLiteralTypeAnnotation_With_raw
1123
+ extends StringLiteralTypeAnnotation {
1124
+ +raw: $NonMaybeType<StringLiteralTypeAnnotation['raw']>;
1125
+ }
1112
1126
  interface SwitchCase_With_test extends SwitchCase {
1113
1127
  +test: $NonMaybeType<SwitchCase['test']>;
1114
1128
  }
@@ -1376,6 +1390,10 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1376
1390
  +'AssignmentPattern[right]'?: (node: AssignmentPattern_With_right) => void,
1377
1391
  +AwaitExpression?: (node: AwaitExpression) => void,
1378
1392
  +'AwaitExpression[argument]'?: (node: AwaitExpression_With_argument) => void,
1393
+ +BigIntLiteralTypeAnnotation?: (node: BigIntLiteralTypeAnnotation) => void,
1394
+ +'BigIntLiteralTypeAnnotation[raw]'?: (
1395
+ node: BigIntLiteralTypeAnnotation_With_raw,
1396
+ ) => void,
1379
1397
  +BinaryExpression?: (node: BinaryExpression) => void,
1380
1398
  +'BinaryExpression[left]'?: (node: BinaryExpression_With_left) => void,
1381
1399
  +'BinaryExpression[right]'?: (node: BinaryExpression_With_right) => void,
@@ -2069,6 +2087,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2069
2087
  +'StringLiteralTypeAnnotation[value]'?: (
2070
2088
  node: StringLiteralTypeAnnotation_With_value,
2071
2089
  ) => void,
2090
+ +'StringLiteralTypeAnnotation[raw]'?: (
2091
+ node: StringLiteralTypeAnnotation_With_raw,
2092
+ ) => void,
2072
2093
  +StringTypeAnnotation?: (node: StringTypeAnnotation) => void,
2073
2094
  +Super?: (node: Super) => void,
2074
2095
  +SwitchCase?: (node: SwitchCase) => void,
@@ -2244,6 +2265,12 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2244
2265
  +'AwaitExpression[argument]:exit'?: (
2245
2266
  node: AwaitExpression_With_argument,
2246
2267
  ) => void,
2268
+ +'BigIntLiteralTypeAnnotation:exit'?: (
2269
+ node: BigIntLiteralTypeAnnotation,
2270
+ ) => void,
2271
+ +'BigIntLiteralTypeAnnotation[raw]:exit'?: (
2272
+ node: BigIntLiteralTypeAnnotation_With_raw,
2273
+ ) => void,
2247
2274
  +'BinaryExpression:exit'?: (node: BinaryExpression) => void,
2248
2275
  +'BinaryExpression[left]:exit'?: (node: BinaryExpression_With_left) => void,
2249
2276
  +'BinaryExpression[right]:exit'?: (node: BinaryExpression_With_right) => void,
@@ -3001,6 +3028,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
3001
3028
  +'StringLiteralTypeAnnotation[value]:exit'?: (
3002
3029
  node: StringLiteralTypeAnnotation_With_value,
3003
3030
  ) => void,
3031
+ +'StringLiteralTypeAnnotation[raw]:exit'?: (
3032
+ node: StringLiteralTypeAnnotation_With_raw,
3033
+ ) => void,
3004
3034
  +'StringTypeAnnotation:exit'?: (node: StringTypeAnnotation) => void,
3005
3035
  +'Super:exit'?: (node: Super) => void,
3006
3036
  +'SwitchCase:exit'?: (node: SwitchCase) => void,