oxc-parser 0.112.0 → 0.115.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.
@@ -198,7 +198,7 @@ function walkProgram(pos, ast, visitors) {
198
198
  }
199
199
 
200
200
  walkOptionHashbang(pos + 48, ast, visitors);
201
- walkVecStatement(pos + 96, ast, visitors);
201
+ walkVecStatement(pos + 104, ast, visitors);
202
202
 
203
203
  if (exit !== null) exit(node);
204
204
  }
@@ -854,7 +854,7 @@ function walkMetaProperty(pos, ast, visitors) {
854
854
  }
855
855
 
856
856
  walkIdentifierName(pos + 8, ast, visitors);
857
- walkIdentifierName(pos + 32, ast, visitors);
857
+ walkIdentifierName(pos + 40, ast, visitors);
858
858
 
859
859
  if (exit !== null) exit(node);
860
860
  }
@@ -1075,7 +1075,7 @@ function walkPrivateInExpression(pos, ast, visitors) {
1075
1075
  }
1076
1076
 
1077
1077
  walkPrivateIdentifier(pos + 8, ast, visitors);
1078
- walkExpression(pos + 32, ast, visitors);
1078
+ walkExpression(pos + 40, ast, visitors);
1079
1079
 
1080
1080
  if (exit !== null) exit(node);
1081
1081
  }
@@ -2041,7 +2041,7 @@ function walkLabeledStatement(pos, ast, visitors) {
2041
2041
  }
2042
2042
 
2043
2043
  walkLabelIdentifier(pos + 8, ast, visitors);
2044
- walkStatement(pos + 32, ast, visitors);
2044
+ walkStatement(pos + 40, ast, visitors);
2045
2045
 
2046
2046
  if (exit !== null) exit(node);
2047
2047
  }
@@ -2092,7 +2092,7 @@ function walkCatchClause(pos, ast, visitors) {
2092
2092
  }
2093
2093
 
2094
2094
  walkOptionCatchParameter(pos + 8, ast, visitors);
2095
- walkBoxBlockStatement(pos + 40, ast, visitors);
2095
+ walkBoxBlockStatement(pos + 48, ast, visitors);
2096
2096
 
2097
2097
  if (exit !== null) exit(node);
2098
2098
  }
@@ -2801,7 +2801,7 @@ function walkV8IntrinsicExpression(pos, ast, visitors) {
2801
2801
  }
2802
2802
 
2803
2803
  walkIdentifierName(pos + 8, ast, visitors);
2804
- walkVecArgument(pos + 32, ast, visitors);
2804
+ walkVecArgument(pos + 40, ast, visitors);
2805
2805
 
2806
2806
  if (exit !== null) exit(node);
2807
2807
  }
@@ -2900,8 +2900,8 @@ function walkJSXFragment(pos, ast, visitors) {
2900
2900
  }
2901
2901
 
2902
2902
  walkJSXOpeningFragment(pos + 8, ast, visitors);
2903
- walkVecJSXChild(pos + 16, ast, visitors);
2904
- walkJSXClosingFragment(pos + 40, ast, visitors);
2903
+ walkVecJSXChild(pos + 24, ast, visitors);
2904
+ walkJSXClosingFragment(pos + 48, ast, visitors);
2905
2905
 
2906
2906
  if (exit !== null) exit(node);
2907
2907
  }
@@ -2950,7 +2950,7 @@ function walkJSXNamespacedName(pos, ast, visitors) {
2950
2950
  }
2951
2951
 
2952
2952
  walkJSXIdentifier(pos + 8, ast, visitors);
2953
- walkJSXIdentifier(pos + 32, ast, visitors);
2953
+ walkJSXIdentifier(pos + 40, ast, visitors);
2954
2954
 
2955
2955
  if (exit !== null) exit(node);
2956
2956
  }
@@ -3662,7 +3662,7 @@ function walkTSNamedTupleMember(pos, ast, visitors) {
3662
3662
  }
3663
3663
 
3664
3664
  walkIdentifierName(pos + 8, ast, visitors);
3665
- walkTSTupleElement(pos + 32, ast, visitors);
3665
+ walkTSTupleElement(pos + 40, ast, visitors);
3666
3666
 
3667
3667
  if (exit !== null) exit(node);
3668
3668
  }
@@ -4219,7 +4219,7 @@ function walkTSTypePredicate(pos, ast, visitors) {
4219
4219
  }
4220
4220
 
4221
4221
  walkTSTypePredicateName(pos + 8, ast, visitors);
4222
- walkOptionBoxTSTypeAnnotation(pos + 24, ast, visitors);
4222
+ walkOptionBoxTSTypeAnnotation(pos + 32, ast, visitors);
4223
4223
 
4224
4224
  if (exit !== null) exit(node);
4225
4225
  }
@@ -4899,10 +4899,10 @@ function walkVecArrayExpressionElement(pos, ast, visitors) {
4899
4899
  const { uint32 } = ast.buffer,
4900
4900
  pos32 = pos >> 2;
4901
4901
  pos = uint32[pos32];
4902
- const endPos = pos + uint32[pos32 + 2] * 16;
4902
+ const endPos = pos + uint32[pos32 + 2] * 24;
4903
4903
  while (pos < endPos) {
4904
4904
  walkArrayExpressionElement(pos, ast, visitors);
4905
- pos += 16;
4905
+ pos += 24;
4906
4906
  }
4907
4907
  }
4908
4908
 
@@ -5174,10 +5174,10 @@ function walkVecSwitchCase(pos, ast, visitors) {
5174
5174
  const { uint32 } = ast.buffer,
5175
5175
  pos32 = pos >> 2;
5176
5176
  pos = uint32[pos32];
5177
- const endPos = pos + uint32[pos32 + 2] * 48;
5177
+ const endPos = pos + uint32[pos32 + 2] * 56;
5178
5178
  while (pos < endPos) {
5179
5179
  walkSwitchCase(pos, ast, visitors);
5180
- pos += 48;
5180
+ pos += 56;
5181
5181
  }
5182
5182
  }
5183
5183
 
@@ -5283,10 +5283,10 @@ function walkVecDecorator(pos, ast, visitors) {
5283
5283
  const { uint32 } = ast.buffer,
5284
5284
  pos32 = pos >> 2;
5285
5285
  pos = uint32[pos32];
5286
- const endPos = pos + uint32[pos32 + 2] * 24;
5286
+ const endPos = pos + uint32[pos32 + 2] * 32;
5287
5287
  while (pos < endPos) {
5288
5288
  walkDecorator(pos, ast, visitors);
5289
- pos += 24;
5289
+ pos += 32;
5290
5290
  }
5291
5291
  }
5292
5292
 
@@ -5303,10 +5303,10 @@ function walkVecTSClassImplements(pos, ast, visitors) {
5303
5303
  const { uint32 } = ast.buffer,
5304
5304
  pos32 = pos >> 2;
5305
5305
  pos = uint32[pos32];
5306
- const endPos = pos + uint32[pos32 + 2] * 32;
5306
+ const endPos = pos + uint32[pos32 + 2] * 40;
5307
5307
  while (pos < endPos) {
5308
5308
  walkTSClassImplements(pos, ast, visitors);
5309
- pos += 32;
5309
+ pos += 40;
5310
5310
  }
5311
5311
  }
5312
5312
 
@@ -5410,10 +5410,10 @@ function walkVecImportAttribute(pos, ast, visitors) {
5410
5410
  const { uint32 } = ast.buffer,
5411
5411
  pos32 = pos >> 2;
5412
5412
  pos = uint32[pos32];
5413
- const endPos = pos + uint32[pos32 + 2] * 112;
5413
+ const endPos = pos + uint32[pos32 + 2] * 120;
5414
5414
  while (pos < endPos) {
5415
5415
  walkImportAttribute(pos, ast, visitors);
5416
- pos += 112;
5416
+ pos += 120;
5417
5417
  }
5418
5418
  }
5419
5419
 
@@ -5433,7 +5433,7 @@ function walkVecExportSpecifier(pos, ast, visitors) {
5433
5433
  }
5434
5434
 
5435
5435
  function walkOptionStringLiteral(pos, ast, visitors) {
5436
- if (!(ast.buffer[pos + 40] === 2)) walkStringLiteral(pos, ast, visitors);
5436
+ if (!(ast.buffer[pos + 44] === 2)) walkStringLiteral(pos, ast, visitors);
5437
5437
  }
5438
5438
 
5439
5439
  function walkOptionModuleExportName(pos, ast, visitors) {
@@ -5515,10 +5515,10 @@ function walkVecTSEnumMember(pos, ast, visitors) {
5515
5515
  const { uint32 } = ast.buffer,
5516
5516
  pos32 = pos >> 2;
5517
5517
  pos = uint32[pos32];
5518
- const endPos = pos + uint32[pos32 + 2] * 40;
5518
+ const endPos = pos + uint32[pos32 + 2] * 48;
5519
5519
  while (pos < endPos) {
5520
5520
  walkTSEnumMember(pos, ast, visitors);
5521
- pos += 40;
5521
+ pos += 48;
5522
5522
  }
5523
5523
  }
5524
5524
 
@@ -5723,10 +5723,10 @@ function walkVecTSInterfaceHeritage(pos, ast, visitors) {
5723
5723
  const { uint32 } = ast.buffer,
5724
5724
  pos32 = pos >> 2;
5725
5725
  pos = uint32[pos32];
5726
- const endPos = pos + uint32[pos32 + 2] * 32;
5726
+ const endPos = pos + uint32[pos32 + 2] * 40;
5727
5727
  while (pos < endPos) {
5728
5728
  walkTSInterfaceHeritage(pos, ast, visitors);
5729
- pos += 32;
5729
+ pos += 40;
5730
5730
  }
5731
5731
  }
5732
5732
 
@@ -5765,10 +5765,10 @@ function walkVecTSIndexSignatureName(pos, ast, visitors) {
5765
5765
  const { uint32 } = ast.buffer,
5766
5766
  pos32 = pos >> 2;
5767
5767
  pos = uint32[pos32];
5768
- const endPos = pos + uint32[pos32 + 2] * 32;
5768
+ const endPos = pos + uint32[pos32 + 2] * 40;
5769
5769
  while (pos < endPos) {
5770
5770
  walkTSIndexSignatureName(pos, ast, visitors);
5771
- pos += 32;
5771
+ pos += 40;
5772
5772
  }
5773
5773
  }
5774
5774