oxc-parser 0.123.0 → 0.124.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/package.json +24 -24
- package/src-js/bindings.js +52 -52
- package/src-js/generated/deserialize/js.js +161 -115
- package/src-js/generated/deserialize/js_range.js +158 -120
- package/src-js/generated/deserialize/ts.js +162 -117
- package/src-js/generated/deserialize/ts_range.js +159 -122
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
|
|
3
3
|
|
|
4
|
-
let uint8,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let uint8,
|
|
5
|
+
uint32,
|
|
6
|
+
float64,
|
|
7
|
+
sourceText,
|
|
8
|
+
sourceTextLatin,
|
|
9
|
+
sourceEndPos = 0,
|
|
10
|
+
firstNonAsciiPos = 0;
|
|
11
|
+
|
|
12
|
+
const { fromCharCode } = String,
|
|
13
|
+
{ utf8Slice, latin1Slice } = Buffer.prototype,
|
|
14
|
+
stringDecodeArrays = Array(65).fill(null);
|
|
15
|
+
for (let i = 0; i <= 64; i++) stringDecodeArrays[i] = Array(i).fill(0);
|
|
9
16
|
|
|
10
17
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
11
18
|
sourceEndPos = sourceByteLen;
|
|
12
|
-
|
|
13
|
-
resetBuffer();
|
|
14
|
-
return data;
|
|
19
|
+
return deserializeWith(buffer, sourceText, sourceByteLen, deserializeRawTransferData);
|
|
15
20
|
}
|
|
16
21
|
|
|
17
|
-
function deserializeWith(buffer, sourceTextInput, sourceByteLen,
|
|
22
|
+
function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
18
23
|
uint8 = buffer;
|
|
19
24
|
uint32 = buffer.uint32;
|
|
20
25
|
float64 = buffer.float64;
|
|
21
26
|
sourceText = sourceTextInput;
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
if (sourceText.length === sourceByteLen) {
|
|
28
|
+
firstNonAsciiPos = sourceByteLen;
|
|
29
|
+
sourceTextLatin = sourceText;
|
|
30
|
+
} else {
|
|
31
|
+
let i = 0;
|
|
32
|
+
for (; i < sourceByteLen && uint8[i] < 128; i++);
|
|
33
|
+
firstNonAsciiPos = i;
|
|
34
|
+
sourceTextLatin = latin1Slice.call(uint8, 0, sourceByteLen);
|
|
35
|
+
}
|
|
36
|
+
let data = deserialize(uint32[536870900]);
|
|
37
|
+
resetBuffer();
|
|
38
|
+
return data;
|
|
24
39
|
}
|
|
25
40
|
|
|
26
41
|
export function resetBuffer() {
|
|
27
|
-
// Clear buffer and source text
|
|
28
|
-
uint8 = uint32 = float64 = sourceText = void 0;
|
|
42
|
+
// Clear buffer and source text strings to allow them to be garbage collected
|
|
43
|
+
uint8 = uint32 = float64 = sourceText = sourceTextLatin = void 0;
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
function deserializeProgram(pos) {
|
|
@@ -2566,26 +2581,33 @@ function deserializeNullLiteral(pos) {
|
|
|
2566
2581
|
}
|
|
2567
2582
|
|
|
2568
2583
|
function deserializeNumericLiteral(pos) {
|
|
2569
|
-
let start,
|
|
2584
|
+
let start = deserializeU32(pos),
|
|
2585
|
+
end = deserializeU32(pos + 4);
|
|
2570
2586
|
return {
|
|
2571
2587
|
type: "Literal",
|
|
2572
2588
|
value: deserializeF64(pos + 32),
|
|
2573
|
-
raw:
|
|
2574
|
-
|
|
2575
|
-
|
|
2589
|
+
raw:
|
|
2590
|
+
uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
2591
|
+
? null
|
|
2592
|
+
: sourceText.slice(start, end),
|
|
2593
|
+
start,
|
|
2594
|
+
end,
|
|
2576
2595
|
range: [start, end],
|
|
2577
2596
|
};
|
|
2578
2597
|
}
|
|
2579
2598
|
|
|
2580
2599
|
function deserializeStringLiteral(pos) {
|
|
2581
|
-
let start,
|
|
2582
|
-
end,
|
|
2600
|
+
let start = deserializeU32(pos),
|
|
2601
|
+
end = deserializeU32(pos + 4),
|
|
2583
2602
|
node = {
|
|
2584
2603
|
type: "Literal",
|
|
2585
2604
|
value: null,
|
|
2586
|
-
raw:
|
|
2587
|
-
|
|
2588
|
-
|
|
2605
|
+
raw:
|
|
2606
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2607
|
+
? null
|
|
2608
|
+
: sourceText.slice(start, end),
|
|
2609
|
+
start,
|
|
2610
|
+
end,
|
|
2589
2611
|
range: [start, end],
|
|
2590
2612
|
},
|
|
2591
2613
|
value = deserializeStr(pos + 16);
|
|
@@ -2596,15 +2618,18 @@ function deserializeStringLiteral(pos) {
|
|
|
2596
2618
|
}
|
|
2597
2619
|
|
|
2598
2620
|
function deserializeBigIntLiteral(pos) {
|
|
2599
|
-
let start,
|
|
2600
|
-
end,
|
|
2621
|
+
let start = deserializeU32(pos),
|
|
2622
|
+
end = deserializeU32(pos + 4),
|
|
2601
2623
|
node = {
|
|
2602
2624
|
type: "Literal",
|
|
2603
2625
|
value: null,
|
|
2604
|
-
raw:
|
|
2626
|
+
raw:
|
|
2627
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2628
|
+
? null
|
|
2629
|
+
: sourceText.slice(start, end),
|
|
2605
2630
|
bigint: null,
|
|
2606
|
-
start
|
|
2607
|
-
end
|
|
2631
|
+
start,
|
|
2632
|
+
end,
|
|
2608
2633
|
range: [start, end],
|
|
2609
2634
|
},
|
|
2610
2635
|
bigint = deserializeStr(pos + 16);
|
|
@@ -2614,15 +2639,18 @@ function deserializeBigIntLiteral(pos) {
|
|
|
2614
2639
|
}
|
|
2615
2640
|
|
|
2616
2641
|
function deserializeRegExpLiteral(pos) {
|
|
2617
|
-
let start,
|
|
2618
|
-
end,
|
|
2642
|
+
let start = deserializeU32(pos),
|
|
2643
|
+
end = deserializeU32(pos + 4),
|
|
2619
2644
|
node = {
|
|
2620
2645
|
type: "Literal",
|
|
2621
2646
|
value: null,
|
|
2622
|
-
raw:
|
|
2647
|
+
raw:
|
|
2648
|
+
uint32[(pos + 48) >> 2] === 0 && uint32[(pos + 52) >> 2] === 0
|
|
2649
|
+
? null
|
|
2650
|
+
: sourceText.slice(start, end),
|
|
2623
2651
|
regex: null,
|
|
2624
|
-
start
|
|
2625
|
-
end
|
|
2652
|
+
start,
|
|
2653
|
+
end,
|
|
2626
2654
|
range: [start, end],
|
|
2627
2655
|
},
|
|
2628
2656
|
regex = deserializeRegExp(pos + 16),
|
|
@@ -3073,13 +3101,17 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3073
3101
|
}
|
|
3074
3102
|
|
|
3075
3103
|
function deserializeJSXText(pos) {
|
|
3076
|
-
let start,
|
|
3104
|
+
let start = deserializeU32(pos),
|
|
3105
|
+
end = deserializeU32(pos + 4);
|
|
3077
3106
|
return {
|
|
3078
3107
|
type: "JSXText",
|
|
3079
3108
|
value: deserializeStr(pos + 16),
|
|
3080
|
-
raw:
|
|
3081
|
-
|
|
3082
|
-
|
|
3109
|
+
raw:
|
|
3110
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
3111
|
+
? null
|
|
3112
|
+
: sourceText.slice(start, end),
|
|
3113
|
+
start,
|
|
3114
|
+
end,
|
|
3083
3115
|
range: [start, end],
|
|
3084
3116
|
};
|
|
3085
3117
|
}
|
|
@@ -5063,23 +5095,27 @@ function deserializeStr(pos) {
|
|
|
5063
5095
|
len = uint32[pos32 + 2];
|
|
5064
5096
|
if (len === 0) return "";
|
|
5065
5097
|
pos = uint32[pos32];
|
|
5066
|
-
if (sourceIsAscii && pos < sourceEndPos) return sourceText.substr(pos, len);
|
|
5067
|
-
// Longer strings use `TextDecoder`
|
|
5068
|
-
// TODO: Find best switch-over point
|
|
5069
5098
|
let end = pos + len;
|
|
5070
|
-
if (
|
|
5071
|
-
//
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5099
|
+
if (end <= firstNonAsciiPos) return sourceTextLatin.substr(pos, len);
|
|
5100
|
+
// Use `utf8Slice` for strings longer than 64 bytes
|
|
5101
|
+
if (len > 64) return utf8Slice.call(uint8, pos, end);
|
|
5102
|
+
if (pos < sourceEndPos) {
|
|
5103
|
+
// Check if all bytes are ASCII, use `utf8Slice` if not
|
|
5104
|
+
for (let i = pos; i < end; i++) if (uint8[i] >= 128) return utf8Slice.call(uint8, pos, end);
|
|
5105
|
+
// String is all ASCII, so slice from `sourceTextLatin`
|
|
5106
|
+
return sourceTextLatin.substr(pos, len);
|
|
5107
|
+
}
|
|
5108
|
+
// String is not in source region - use `fromCharCode.apply` with a temp array of correct length.
|
|
5109
|
+
// Copy bytes into temp array.
|
|
5110
|
+
// If any byte is non-ASCII, use `utf8Slice`.
|
|
5111
|
+
let arr = stringDecodeArrays[len];
|
|
5112
|
+
for (let i = 0; i < len; i++) {
|
|
5113
|
+
let b = uint8[pos + i];
|
|
5114
|
+
if (b >= 128) return utf8Slice.call(uint8, pos, end);
|
|
5115
|
+
arr[i] = b;
|
|
5116
|
+
}
|
|
5117
|
+
// Call `fromCharCode` with temp array
|
|
5118
|
+
return fromCharCode.apply(null, arr);
|
|
5083
5119
|
}
|
|
5084
5120
|
|
|
5085
5121
|
function deserializeVecComment(pos) {
|
|
@@ -5095,8 +5131,9 @@ function deserializeVecComment(pos) {
|
|
|
5095
5131
|
}
|
|
5096
5132
|
|
|
5097
5133
|
function deserializeOptionHashbang(pos) {
|
|
5098
|
-
|
|
5099
|
-
|
|
5134
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
5135
|
+
? null
|
|
5136
|
+
: deserializeHashbang(pos);
|
|
5100
5137
|
}
|
|
5101
5138
|
|
|
5102
5139
|
function deserializeVecDirective(pos) {
|
|
@@ -5356,13 +5393,13 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5356
5393
|
}
|
|
5357
5394
|
|
|
5358
5395
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5359
|
-
|
|
5360
|
-
|
|
5396
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5397
|
+
? null
|
|
5398
|
+
: deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5361
5399
|
}
|
|
5362
5400
|
|
|
5363
5401
|
function deserializeOptionStr(pos) {
|
|
5364
|
-
|
|
5365
|
-
return deserializeStr(pos);
|
|
5402
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0 ? null : deserializeStr(pos);
|
|
5366
5403
|
}
|
|
5367
5404
|
|
|
5368
5405
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
@@ -5398,8 +5435,7 @@ function deserializeBoxObjectAssignmentTarget(pos) {
|
|
|
5398
5435
|
}
|
|
5399
5436
|
|
|
5400
5437
|
function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
5401
|
-
|
|
5402
|
-
return deserializeAssignmentTargetMaybeDefault(pos);
|
|
5438
|
+
return uint8[pos] === 51 ? null : deserializeAssignmentTargetMaybeDefault(pos);
|
|
5403
5439
|
}
|
|
5404
5440
|
|
|
5405
5441
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
@@ -5419,8 +5455,9 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5419
5455
|
}
|
|
5420
5456
|
|
|
5421
5457
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5422
|
-
|
|
5423
|
-
|
|
5458
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5459
|
+
? null
|
|
5460
|
+
: deserializeBoxAssignmentTargetRest(pos);
|
|
5424
5461
|
}
|
|
5425
5462
|
|
|
5426
5463
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
@@ -5448,8 +5485,7 @@ function deserializeBoxAssignmentTargetPropertyProperty(pos) {
|
|
|
5448
5485
|
}
|
|
5449
5486
|
|
|
5450
5487
|
function deserializeOptionExpression(pos) {
|
|
5451
|
-
|
|
5452
|
-
return deserializeExpression(pos);
|
|
5488
|
+
return uint8[pos] === 51 ? null : deserializeExpression(pos);
|
|
5453
5489
|
}
|
|
5454
5490
|
|
|
5455
5491
|
function deserializeBoxBlockStatement(pos) {
|
|
@@ -5569,23 +5605,23 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5569
5605
|
}
|
|
5570
5606
|
|
|
5571
5607
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5572
|
-
|
|
5573
|
-
|
|
5608
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5609
|
+
? null
|
|
5610
|
+
: deserializeBoxTSTypeAnnotation(pos);
|
|
5574
5611
|
}
|
|
5575
5612
|
|
|
5576
5613
|
function deserializeOptionStatement(pos) {
|
|
5577
|
-
|
|
5578
|
-
return deserializeStatement(pos);
|
|
5614
|
+
return uint8[pos] === 70 ? null : deserializeStatement(pos);
|
|
5579
5615
|
}
|
|
5580
5616
|
|
|
5581
5617
|
function deserializeOptionForStatementInit(pos) {
|
|
5582
|
-
|
|
5583
|
-
return deserializeForStatementInit(pos);
|
|
5618
|
+
return uint8[pos] === 65 ? null : deserializeForStatementInit(pos);
|
|
5584
5619
|
}
|
|
5585
5620
|
|
|
5586
5621
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5587
|
-
|
|
5588
|
-
|
|
5622
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
5623
|
+
? null
|
|
5624
|
+
: deserializeLabelIdentifier(pos);
|
|
5589
5625
|
}
|
|
5590
5626
|
|
|
5591
5627
|
function deserializeVecSwitchCase(pos) {
|
|
@@ -5605,18 +5641,19 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5605
5641
|
}
|
|
5606
5642
|
|
|
5607
5643
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5608
|
-
|
|
5609
|
-
|
|
5644
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5645
|
+
? null
|
|
5646
|
+
: deserializeBoxCatchClause(pos);
|
|
5610
5647
|
}
|
|
5611
5648
|
|
|
5612
5649
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5613
|
-
|
|
5614
|
-
|
|
5650
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5651
|
+
? null
|
|
5652
|
+
: deserializeBoxBlockStatement(pos);
|
|
5615
5653
|
}
|
|
5616
5654
|
|
|
5617
5655
|
function deserializeOptionCatchParameter(pos) {
|
|
5618
|
-
|
|
5619
|
-
return deserializeCatchParameter(pos);
|
|
5656
|
+
return uint8[pos + 16] === 4 ? null : deserializeCatchParameter(pos);
|
|
5620
5657
|
}
|
|
5621
5658
|
|
|
5622
5659
|
function deserializeBoxBindingIdentifier(pos) {
|
|
@@ -5652,13 +5689,13 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5652
5689
|
}
|
|
5653
5690
|
|
|
5654
5691
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5655
|
-
|
|
5656
|
-
|
|
5692
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5693
|
+
? null
|
|
5694
|
+
: deserializeBoxBindingRestElement(pos);
|
|
5657
5695
|
}
|
|
5658
5696
|
|
|
5659
5697
|
function deserializeOptionBindingPattern(pos) {
|
|
5660
|
-
|
|
5661
|
-
return deserializeBindingPattern(pos);
|
|
5698
|
+
return uint8[pos] === 4 ? null : deserializeBindingPattern(pos);
|
|
5662
5699
|
}
|
|
5663
5700
|
|
|
5664
5701
|
function deserializeVecOptionBindingPattern(pos) {
|
|
@@ -5674,8 +5711,9 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5674
5711
|
}
|
|
5675
5712
|
|
|
5676
5713
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5677
|
-
|
|
5678
|
-
|
|
5714
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
5715
|
+
? null
|
|
5716
|
+
: deserializeBindingIdentifier(pos);
|
|
5679
5717
|
}
|
|
5680
5718
|
|
|
5681
5719
|
function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
@@ -5683,8 +5721,9 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5683
5721
|
}
|
|
5684
5722
|
|
|
5685
5723
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5686
|
-
|
|
5687
|
-
|
|
5724
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5725
|
+
? null
|
|
5726
|
+
: deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5688
5727
|
}
|
|
5689
5728
|
|
|
5690
5729
|
function deserializeBoxTSThisParameter(pos) {
|
|
@@ -5692,8 +5731,9 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5692
5731
|
}
|
|
5693
5732
|
|
|
5694
5733
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5695
|
-
|
|
5696
|
-
|
|
5734
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5735
|
+
? null
|
|
5736
|
+
: deserializeBoxTSThisParameter(pos);
|
|
5697
5737
|
}
|
|
5698
5738
|
|
|
5699
5739
|
function deserializeBoxFormalParameters(pos) {
|
|
@@ -5705,8 +5745,9 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5705
5745
|
}
|
|
5706
5746
|
|
|
5707
5747
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5708
|
-
|
|
5709
|
-
|
|
5748
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5749
|
+
? null
|
|
5750
|
+
: deserializeBoxFunctionBody(pos);
|
|
5710
5751
|
}
|
|
5711
5752
|
|
|
5712
5753
|
function deserializeVecFormalParameter(pos) {
|
|
@@ -5738,8 +5779,9 @@ function deserializeBoxExpression(pos) {
|
|
|
5738
5779
|
}
|
|
5739
5780
|
|
|
5740
5781
|
function deserializeOptionBoxExpression(pos) {
|
|
5741
|
-
|
|
5742
|
-
|
|
5782
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5783
|
+
? null
|
|
5784
|
+
: deserializeBoxExpression(pos);
|
|
5743
5785
|
}
|
|
5744
5786
|
|
|
5745
5787
|
function deserializeBoxClassBody(pos) {
|
|
@@ -5803,8 +5845,7 @@ function deserializeBoxTSNamespaceExportDeclaration(pos) {
|
|
|
5803
5845
|
}
|
|
5804
5846
|
|
|
5805
5847
|
function deserializeOptionImportPhase(pos) {
|
|
5806
|
-
|
|
5807
|
-
return deserializeImportPhase(pos);
|
|
5848
|
+
return uint8[pos] === 2 ? null : deserializeImportPhase(pos);
|
|
5808
5849
|
}
|
|
5809
5850
|
|
|
5810
5851
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
@@ -5820,8 +5861,9 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5820
5861
|
}
|
|
5821
5862
|
|
|
5822
5863
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5823
|
-
|
|
5824
|
-
|
|
5864
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5865
|
+
? null
|
|
5866
|
+
: deserializeVecImportDeclarationSpecifier(pos);
|
|
5825
5867
|
}
|
|
5826
5868
|
|
|
5827
5869
|
function deserializeBoxWithClause(pos) {
|
|
@@ -5829,8 +5871,9 @@ function deserializeBoxWithClause(pos) {
|
|
|
5829
5871
|
}
|
|
5830
5872
|
|
|
5831
5873
|
function deserializeOptionBoxWithClause(pos) {
|
|
5832
|
-
|
|
5833
|
-
|
|
5874
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5875
|
+
? null
|
|
5876
|
+
: deserializeBoxWithClause(pos);
|
|
5834
5877
|
}
|
|
5835
5878
|
|
|
5836
5879
|
function deserializeBoxImportSpecifier(pos) {
|
|
@@ -5858,8 +5901,7 @@ function deserializeVecImportAttribute(pos) {
|
|
|
5858
5901
|
}
|
|
5859
5902
|
|
|
5860
5903
|
function deserializeOptionDeclaration(pos) {
|
|
5861
|
-
|
|
5862
|
-
return deserializeDeclaration(pos);
|
|
5904
|
+
return uint8[pos] === 31 ? null : deserializeDeclaration(pos);
|
|
5863
5905
|
}
|
|
5864
5906
|
|
|
5865
5907
|
function deserializeVecExportSpecifier(pos) {
|
|
@@ -5875,13 +5917,11 @@ function deserializeVecExportSpecifier(pos) {
|
|
|
5875
5917
|
}
|
|
5876
5918
|
|
|
5877
5919
|
function deserializeOptionStringLiteral(pos) {
|
|
5878
|
-
|
|
5879
|
-
return deserializeStringLiteral(pos);
|
|
5920
|
+
return uint8[pos + 12] === 2 ? null : deserializeStringLiteral(pos);
|
|
5880
5921
|
}
|
|
5881
5922
|
|
|
5882
5923
|
function deserializeOptionModuleExportName(pos) {
|
|
5883
|
-
|
|
5884
|
-
return deserializeModuleExportName(pos);
|
|
5924
|
+
return uint8[pos] === 3 ? null : deserializeModuleExportName(pos);
|
|
5885
5925
|
}
|
|
5886
5926
|
|
|
5887
5927
|
function deserializeF64(pos) {
|
|
@@ -5913,8 +5953,9 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5913
5953
|
}
|
|
5914
5954
|
|
|
5915
5955
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5916
|
-
|
|
5917
|
-
|
|
5956
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5957
|
+
? null
|
|
5958
|
+
: deserializeBoxJSXClosingElement(pos);
|
|
5918
5959
|
}
|
|
5919
5960
|
|
|
5920
5961
|
function deserializeVecJSXAttributeItem(pos) {
|
|
@@ -5950,8 +5991,7 @@ function deserializeBoxJSXSpreadAttribute(pos) {
|
|
|
5950
5991
|
}
|
|
5951
5992
|
|
|
5952
5993
|
function deserializeOptionJSXAttributeValue(pos) {
|
|
5953
|
-
|
|
5954
|
-
return deserializeJSXAttributeValue(pos);
|
|
5994
|
+
return uint8[pos] === 4 ? null : deserializeJSXAttributeValue(pos);
|
|
5955
5995
|
}
|
|
5956
5996
|
|
|
5957
5997
|
function deserializeBoxJSXExpressionContainer(pos) {
|
|
@@ -6163,8 +6203,7 @@ function deserializeBoxTSQualifiedName(pos) {
|
|
|
6163
6203
|
}
|
|
6164
6204
|
|
|
6165
6205
|
function deserializeOptionTSType(pos) {
|
|
6166
|
-
|
|
6167
|
-
return deserializeTSType(pos);
|
|
6206
|
+
return uint8[pos] === 38 ? null : deserializeTSType(pos);
|
|
6168
6207
|
}
|
|
6169
6208
|
|
|
6170
6209
|
function deserializeVecTSTypeParameter(pos) {
|
|
@@ -6236,8 +6275,7 @@ function deserializeVecTSIndexSignatureName(pos) {
|
|
|
6236
6275
|
}
|
|
6237
6276
|
|
|
6238
6277
|
function deserializeOptionTSModuleDeclarationBody(pos) {
|
|
6239
|
-
|
|
6240
|
-
return deserializeTSModuleDeclarationBody(pos);
|
|
6278
|
+
return uint8[pos] === 2 ? null : deserializeTSModuleDeclarationBody(pos);
|
|
6241
6279
|
}
|
|
6242
6280
|
|
|
6243
6281
|
function deserializeBoxTSModuleBlock(pos) {
|
|
@@ -6249,13 +6287,13 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6249
6287
|
}
|
|
6250
6288
|
|
|
6251
6289
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6252
|
-
|
|
6253
|
-
|
|
6290
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
6291
|
+
? null
|
|
6292
|
+
: deserializeBoxObjectExpression(pos);
|
|
6254
6293
|
}
|
|
6255
6294
|
|
|
6256
6295
|
function deserializeOptionTSImportTypeQualifier(pos) {
|
|
6257
|
-
|
|
6258
|
-
return deserializeTSImportTypeQualifier(pos);
|
|
6296
|
+
return uint8[pos] === 2 ? null : deserializeTSImportTypeQualifier(pos);
|
|
6259
6297
|
}
|
|
6260
6298
|
|
|
6261
6299
|
function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
@@ -6263,8 +6301,7 @@ function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
|
6263
6301
|
}
|
|
6264
6302
|
|
|
6265
6303
|
function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
6266
|
-
|
|
6267
|
-
return deserializeTSMappedTypeModifierOperator(pos);
|
|
6304
|
+
return uint8[pos] === 3 ? null : deserializeTSMappedTypeModifierOperator(pos);
|
|
6268
6305
|
}
|
|
6269
6306
|
|
|
6270
6307
|
function deserializeBoxTSExternalModuleReference(pos) {
|
|
@@ -6276,8 +6313,9 @@ function deserializeU32(pos) {
|
|
|
6276
6313
|
}
|
|
6277
6314
|
|
|
6278
6315
|
function deserializeOptionNameSpan(pos) {
|
|
6279
|
-
|
|
6280
|
-
|
|
6316
|
+
return uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0
|
|
6317
|
+
? null
|
|
6318
|
+
: deserializeNameSpan(pos);
|
|
6281
6319
|
}
|
|
6282
6320
|
|
|
6283
6321
|
function deserializeVecError(pos) {
|