oxc-parser 0.70.0 → 0.72.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/README.md +16 -5
- package/bindings.js +2 -1
- package/generated/deserialize/js.js +191 -195
- package/generated/deserialize/ts.js +229 -233
- package/package.json +17 -17
|
@@ -35,8 +35,8 @@ function deserialize(buffer, sourceTextInput, sourceLenInput) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function deserializeProgram(pos) {
|
|
38
|
-
const body = deserializeVecDirective(pos +
|
|
39
|
-
body.push(...deserializeVecStatement(pos +
|
|
38
|
+
const body = deserializeVecDirective(pos + 72);
|
|
39
|
+
body.push(...deserializeVecStatement(pos + 96));
|
|
40
40
|
|
|
41
41
|
const start = deserializeU32(pos);
|
|
42
42
|
const end = deserializeU32(pos + 4);
|
|
@@ -46,8 +46,8 @@ function deserializeProgram(pos) {
|
|
|
46
46
|
start,
|
|
47
47
|
end,
|
|
48
48
|
body,
|
|
49
|
-
sourceType: deserializeModuleKind(pos +
|
|
50
|
-
hashbang: deserializeOptionHashbang(pos +
|
|
49
|
+
sourceType: deserializeModuleKind(pos + 125),
|
|
50
|
+
hashbang: deserializeOptionHashbang(pos + 48),
|
|
51
51
|
};
|
|
52
52
|
return program;
|
|
53
53
|
}
|
|
@@ -123,12 +123,12 @@ function deserializeObjectProperty(pos) {
|
|
|
123
123
|
type: 'Property',
|
|
124
124
|
start: deserializeU32(pos),
|
|
125
125
|
end: deserializeU32(pos + 4),
|
|
126
|
-
method: deserializeBool(pos +
|
|
127
|
-
shorthand: deserializeBool(pos +
|
|
128
|
-
computed: deserializeBool(pos +
|
|
129
|
-
key: deserializePropertyKey(pos +
|
|
130
|
-
value: deserializeExpression(pos +
|
|
131
|
-
kind: deserializePropertyKind(pos +
|
|
126
|
+
method: deserializeBool(pos + 41),
|
|
127
|
+
shorthand: deserializeBool(pos + 42),
|
|
128
|
+
computed: deserializeBool(pos + 43),
|
|
129
|
+
key: deserializePropertyKey(pos + 8),
|
|
130
|
+
value: deserializeExpression(pos + 24),
|
|
131
|
+
kind: deserializePropertyKind(pos + 40),
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -137,7 +137,7 @@ function deserializeTemplateLiteral(pos) {
|
|
|
137
137
|
type: 'TemplateLiteral',
|
|
138
138
|
start: deserializeU32(pos),
|
|
139
139
|
end: deserializeU32(pos + 4),
|
|
140
|
-
expressions: deserializeVecExpression(pos +
|
|
140
|
+
expressions: deserializeVecExpression(pos + 32),
|
|
141
141
|
quasis: deserializeVecTemplateElement(pos + 8),
|
|
142
142
|
};
|
|
143
143
|
}
|
|
@@ -214,7 +214,7 @@ function deserializeCallExpression(pos) {
|
|
|
214
214
|
end: deserializeU32(pos + 4),
|
|
215
215
|
callee: deserializeExpression(pos + 8),
|
|
216
216
|
arguments: deserializeVecArgument(pos + 32),
|
|
217
|
-
optional: deserializeBool(pos +
|
|
217
|
+
optional: deserializeBool(pos + 56),
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -252,9 +252,9 @@ function deserializeUpdateExpression(pos) {
|
|
|
252
252
|
type: 'UpdateExpression',
|
|
253
253
|
start: deserializeU32(pos),
|
|
254
254
|
end: deserializeU32(pos + 4),
|
|
255
|
-
operator: deserializeUpdateOperator(pos +
|
|
256
|
-
prefix: deserializeBool(pos +
|
|
257
|
-
argument: deserializeSimpleAssignmentTarget(pos +
|
|
255
|
+
operator: deserializeUpdateOperator(pos + 24),
|
|
256
|
+
prefix: deserializeBool(pos + 25),
|
|
257
|
+
argument: deserializeSimpleAssignmentTarget(pos + 8),
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
|
|
@@ -263,9 +263,9 @@ function deserializeUnaryExpression(pos) {
|
|
|
263
263
|
type: 'UnaryExpression',
|
|
264
264
|
start: deserializeU32(pos),
|
|
265
265
|
end: deserializeU32(pos + 4),
|
|
266
|
-
operator: deserializeUnaryOperator(pos +
|
|
266
|
+
operator: deserializeUnaryOperator(pos + 24),
|
|
267
267
|
prefix: true,
|
|
268
|
-
argument: deserializeExpression(pos +
|
|
268
|
+
argument: deserializeExpression(pos + 8),
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -275,8 +275,8 @@ function deserializeBinaryExpression(pos) {
|
|
|
275
275
|
start: deserializeU32(pos),
|
|
276
276
|
end: deserializeU32(pos + 4),
|
|
277
277
|
left: deserializeExpression(pos + 8),
|
|
278
|
-
operator: deserializeBinaryOperator(pos +
|
|
279
|
-
right: deserializeExpression(pos +
|
|
278
|
+
operator: deserializeBinaryOperator(pos + 40),
|
|
279
|
+
right: deserializeExpression(pos + 24),
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -297,8 +297,8 @@ function deserializeLogicalExpression(pos) {
|
|
|
297
297
|
start: deserializeU32(pos),
|
|
298
298
|
end: deserializeU32(pos + 4),
|
|
299
299
|
left: deserializeExpression(pos + 8),
|
|
300
|
-
operator: deserializeLogicalOperator(pos +
|
|
301
|
-
right: deserializeExpression(pos +
|
|
300
|
+
operator: deserializeLogicalOperator(pos + 40),
|
|
301
|
+
right: deserializeExpression(pos + 24),
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
|
|
@@ -318,15 +318,15 @@ function deserializeAssignmentExpression(pos) {
|
|
|
318
318
|
type: 'AssignmentExpression',
|
|
319
319
|
start: deserializeU32(pos),
|
|
320
320
|
end: deserializeU32(pos + 4),
|
|
321
|
-
operator: deserializeAssignmentOperator(pos +
|
|
322
|
-
left: deserializeAssignmentTarget(pos +
|
|
323
|
-
right: deserializeExpression(pos +
|
|
321
|
+
operator: deserializeAssignmentOperator(pos + 40),
|
|
322
|
+
left: deserializeAssignmentTarget(pos + 8),
|
|
323
|
+
right: deserializeExpression(pos + 24),
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
function deserializeArrayAssignmentTarget(pos) {
|
|
328
328
|
const elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 8);
|
|
329
|
-
const rest = deserializeOptionAssignmentTargetRest(pos +
|
|
329
|
+
const rest = deserializeOptionAssignmentTargetRest(pos + 32);
|
|
330
330
|
if (rest !== null) elements.push(rest);
|
|
331
331
|
return {
|
|
332
332
|
type: 'ArrayPattern',
|
|
@@ -338,7 +338,7 @@ function deserializeArrayAssignmentTarget(pos) {
|
|
|
338
338
|
|
|
339
339
|
function deserializeObjectAssignmentTarget(pos) {
|
|
340
340
|
const properties = deserializeVecAssignmentTargetProperty(pos + 8);
|
|
341
|
-
const rest = deserializeOptionAssignmentTargetRest(pos +
|
|
341
|
+
const rest = deserializeOptionAssignmentTargetRest(pos + 32);
|
|
342
342
|
if (rest !== null) properties.push(rest);
|
|
343
343
|
return {
|
|
344
344
|
type: 'ObjectPattern',
|
|
@@ -486,8 +486,8 @@ function deserializeVariableDeclaration(pos) {
|
|
|
486
486
|
type: 'VariableDeclaration',
|
|
487
487
|
start: deserializeU32(pos),
|
|
488
488
|
end: deserializeU32(pos + 4),
|
|
489
|
-
declarations: deserializeVecVariableDeclarator(pos +
|
|
490
|
-
kind: deserializeVariableDeclarationKind(pos +
|
|
489
|
+
declarations: deserializeVecVariableDeclarator(pos + 8),
|
|
490
|
+
kind: deserializeVariableDeclarationKind(pos + 32),
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
|
|
@@ -496,8 +496,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
496
496
|
type: 'VariableDeclarator',
|
|
497
497
|
start: deserializeU32(pos),
|
|
498
498
|
end: deserializeU32(pos + 4),
|
|
499
|
-
id: deserializeBindingPattern(pos +
|
|
500
|
-
init: deserializeOptionExpression(pos +
|
|
499
|
+
id: deserializeBindingPattern(pos + 8),
|
|
500
|
+
init: deserializeOptionExpression(pos + 40),
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
|
|
@@ -577,10 +577,10 @@ function deserializeForOfStatement(pos) {
|
|
|
577
577
|
type: 'ForOfStatement',
|
|
578
578
|
start: deserializeU32(pos),
|
|
579
579
|
end: deserializeU32(pos + 4),
|
|
580
|
-
await: deserializeBool(pos +
|
|
581
|
-
left: deserializeForStatementLeft(pos +
|
|
582
|
-
right: deserializeExpression(pos +
|
|
583
|
-
body: deserializeStatement(pos +
|
|
580
|
+
await: deserializeBool(pos + 60),
|
|
581
|
+
left: deserializeForStatementLeft(pos + 8),
|
|
582
|
+
right: deserializeExpression(pos + 24),
|
|
583
|
+
body: deserializeStatement(pos + 40),
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
|
|
@@ -713,7 +713,7 @@ function deserializeAssignmentPattern(pos) {
|
|
|
713
713
|
|
|
714
714
|
function deserializeObjectPattern(pos) {
|
|
715
715
|
const properties = deserializeVecBindingProperty(pos + 8);
|
|
716
|
-
const rest = deserializeOptionBoxBindingRestElement(pos +
|
|
716
|
+
const rest = deserializeOptionBoxBindingRestElement(pos + 32);
|
|
717
717
|
if (rest !== null) properties.push(rest);
|
|
718
718
|
return {
|
|
719
719
|
type: 'ObjectPattern',
|
|
@@ -739,7 +739,7 @@ function deserializeBindingProperty(pos) {
|
|
|
739
739
|
|
|
740
740
|
function deserializeArrayPattern(pos) {
|
|
741
741
|
const elements = deserializeVecOptionBindingPattern(pos + 8);
|
|
742
|
-
const rest = deserializeOptionBoxBindingRestElement(pos +
|
|
742
|
+
const rest = deserializeOptionBoxBindingRestElement(pos + 32);
|
|
743
743
|
if (rest !== null) elements.push(rest);
|
|
744
744
|
return {
|
|
745
745
|
type: 'ArrayPattern',
|
|
@@ -759,24 +759,24 @@ function deserializeBindingRestElement(pos) {
|
|
|
759
759
|
}
|
|
760
760
|
|
|
761
761
|
function deserializeFunction(pos) {
|
|
762
|
-
const params = deserializeBoxFormalParameters(pos +
|
|
762
|
+
const params = deserializeBoxFormalParameters(pos + 56);
|
|
763
763
|
return {
|
|
764
|
-
type: deserializeFunctionType(pos +
|
|
764
|
+
type: deserializeFunctionType(pos + 84),
|
|
765
765
|
start: deserializeU32(pos),
|
|
766
766
|
end: deserializeU32(pos + 4),
|
|
767
|
-
id: deserializeOptionBindingIdentifier(pos +
|
|
767
|
+
id: deserializeOptionBindingIdentifier(pos + 8),
|
|
768
768
|
expression: false,
|
|
769
|
-
generator: deserializeBool(pos +
|
|
770
|
-
async: deserializeBool(pos +
|
|
769
|
+
generator: deserializeBool(pos + 85),
|
|
770
|
+
async: deserializeBool(pos + 86),
|
|
771
771
|
params,
|
|
772
|
-
body: deserializeOptionBoxFunctionBody(pos +
|
|
772
|
+
body: deserializeOptionBoxFunctionBody(pos + 72),
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
function deserializeFormalParameters(pos) {
|
|
777
|
-
const params = deserializeVecFormalParameter(pos +
|
|
778
|
-
if (uint32[(pos +
|
|
779
|
-
pos = uint32[(pos +
|
|
777
|
+
const params = deserializeVecFormalParameter(pos + 8);
|
|
778
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
779
|
+
pos = uint32[(pos + 32) >> 2];
|
|
780
780
|
params.push({
|
|
781
781
|
type: 'RestElement',
|
|
782
782
|
start: deserializeU32(pos),
|
|
@@ -788,12 +788,12 @@ function deserializeFormalParameters(pos) {
|
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
function deserializeFormalParameter(pos) {
|
|
791
|
-
return deserializeBindingPatternKind(pos +
|
|
791
|
+
return deserializeBindingPatternKind(pos + 32);
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
function deserializeFunctionBody(pos) {
|
|
795
795
|
const body = deserializeVecDirective(pos + 8);
|
|
796
|
-
body.push(...deserializeVecStatement(pos +
|
|
796
|
+
body.push(...deserializeVecStatement(pos + 32));
|
|
797
797
|
return {
|
|
798
798
|
type: 'BlockStatement',
|
|
799
799
|
start: deserializeU32(pos),
|
|
@@ -803,8 +803,8 @@ function deserializeFunctionBody(pos) {
|
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
function deserializeArrowFunctionExpression(pos) {
|
|
806
|
-
const expression = deserializeBool(pos +
|
|
807
|
-
let body = deserializeBoxFunctionBody(pos +
|
|
806
|
+
const expression = deserializeBool(pos + 44);
|
|
807
|
+
let body = deserializeBoxFunctionBody(pos + 32);
|
|
808
808
|
return {
|
|
809
809
|
type: 'ArrowFunctionExpression',
|
|
810
810
|
start: deserializeU32(pos),
|
|
@@ -812,8 +812,8 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
812
812
|
id: null,
|
|
813
813
|
expression,
|
|
814
814
|
generator: false,
|
|
815
|
-
async: deserializeBool(pos +
|
|
816
|
-
params: deserializeBoxFormalParameters(pos +
|
|
815
|
+
async: deserializeBool(pos + 45),
|
|
816
|
+
params: deserializeBoxFormalParameters(pos + 16),
|
|
817
817
|
body: expression ? body.body[0].expression : body,
|
|
818
818
|
};
|
|
819
819
|
}
|
|
@@ -823,19 +823,19 @@ function deserializeYieldExpression(pos) {
|
|
|
823
823
|
type: 'YieldExpression',
|
|
824
824
|
start: deserializeU32(pos),
|
|
825
825
|
end: deserializeU32(pos + 4),
|
|
826
|
-
delegate: deserializeBool(pos +
|
|
827
|
-
argument: deserializeOptionExpression(pos +
|
|
826
|
+
delegate: deserializeBool(pos + 24),
|
|
827
|
+
argument: deserializeOptionExpression(pos + 8),
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
function deserializeClass(pos) {
|
|
832
832
|
return {
|
|
833
|
-
type: deserializeClassType(pos +
|
|
833
|
+
type: deserializeClassType(pos + 132),
|
|
834
834
|
start: deserializeU32(pos),
|
|
835
835
|
end: deserializeU32(pos + 4),
|
|
836
|
-
id: deserializeOptionBindingIdentifier(pos +
|
|
837
|
-
superClass: deserializeOptionExpression(pos +
|
|
838
|
-
body: deserializeBoxClassBody(pos +
|
|
836
|
+
id: deserializeOptionBindingIdentifier(pos + 32),
|
|
837
|
+
superClass: deserializeOptionExpression(pos + 72),
|
|
838
|
+
body: deserializeBoxClassBody(pos + 120),
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
841
|
|
|
@@ -850,26 +850,26 @@ function deserializeClassBody(pos) {
|
|
|
850
850
|
|
|
851
851
|
function deserializeMethodDefinition(pos) {
|
|
852
852
|
return {
|
|
853
|
-
type: deserializeMethodDefinitionType(pos +
|
|
853
|
+
type: deserializeMethodDefinitionType(pos + 56),
|
|
854
854
|
start: deserializeU32(pos),
|
|
855
855
|
end: deserializeU32(pos + 4),
|
|
856
|
-
static: deserializeBool(pos +
|
|
857
|
-
computed: deserializeBool(pos +
|
|
858
|
-
key: deserializePropertyKey(pos +
|
|
859
|
-
kind: deserializeMethodDefinitionKind(pos +
|
|
860
|
-
value: deserializeBoxFunction(pos +
|
|
856
|
+
static: deserializeBool(pos + 59),
|
|
857
|
+
computed: deserializeBool(pos + 58),
|
|
858
|
+
key: deserializePropertyKey(pos + 32),
|
|
859
|
+
kind: deserializeMethodDefinitionKind(pos + 57),
|
|
860
|
+
value: deserializeBoxFunction(pos + 48),
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
function deserializePropertyDefinition(pos) {
|
|
865
865
|
return {
|
|
866
|
-
type: deserializePropertyDefinitionType(pos +
|
|
866
|
+
type: deserializePropertyDefinitionType(pos + 72),
|
|
867
867
|
start: deserializeU32(pos),
|
|
868
868
|
end: deserializeU32(pos + 4),
|
|
869
|
-
static: deserializeBool(pos +
|
|
870
|
-
computed: deserializeBool(pos +
|
|
871
|
-
key: deserializePropertyKey(pos +
|
|
872
|
-
value: deserializeOptionExpression(pos +
|
|
869
|
+
static: deserializeBool(pos + 74),
|
|
870
|
+
computed: deserializeBool(pos + 73),
|
|
871
|
+
key: deserializePropertyKey(pos + 32),
|
|
872
|
+
value: deserializeOptionExpression(pos + 56),
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
|
|
@@ -893,13 +893,13 @@ function deserializeStaticBlock(pos) {
|
|
|
893
893
|
|
|
894
894
|
function deserializeAccessorProperty(pos) {
|
|
895
895
|
return {
|
|
896
|
-
type: deserializeAccessorPropertyType(pos +
|
|
896
|
+
type: deserializeAccessorPropertyType(pos + 72),
|
|
897
897
|
start: deserializeU32(pos),
|
|
898
898
|
end: deserializeU32(pos + 4),
|
|
899
|
-
key: deserializePropertyKey(pos +
|
|
900
|
-
value: deserializeOptionExpression(pos +
|
|
901
|
-
computed: deserializeBool(pos +
|
|
902
|
-
static: deserializeBool(pos +
|
|
899
|
+
key: deserializePropertyKey(pos + 32),
|
|
900
|
+
value: deserializeOptionExpression(pos + 56),
|
|
901
|
+
computed: deserializeBool(pos + 73),
|
|
902
|
+
static: deserializeBool(pos + 74),
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
|
|
@@ -910,20 +910,22 @@ function deserializeImportExpression(pos) {
|
|
|
910
910
|
end: deserializeU32(pos + 4),
|
|
911
911
|
source: deserializeExpression(pos + 8),
|
|
912
912
|
options: deserializeOptionExpression(pos + 24),
|
|
913
|
+
phase: deserializeOptionImportPhase(pos + 40),
|
|
913
914
|
};
|
|
914
915
|
}
|
|
915
916
|
|
|
916
917
|
function deserializeImportDeclaration(pos) {
|
|
917
918
|
let specifiers = deserializeOptionVecImportDeclarationSpecifier(pos + 8);
|
|
918
919
|
if (specifiers === null) specifiers = [];
|
|
919
|
-
const withClause = deserializeOptionBoxWithClause(pos +
|
|
920
|
+
const withClause = deserializeOptionBoxWithClause(pos + 80);
|
|
920
921
|
return {
|
|
921
922
|
type: 'ImportDeclaration',
|
|
922
923
|
start: deserializeU32(pos),
|
|
923
924
|
end: deserializeU32(pos + 4),
|
|
924
925
|
specifiers,
|
|
925
|
-
source: deserializeStringLiteral(pos +
|
|
926
|
+
source: deserializeStringLiteral(pos + 32),
|
|
926
927
|
attributes: withClause === null ? [] : withClause.attributes,
|
|
928
|
+
phase: deserializeOptionImportPhase(pos + 88),
|
|
927
929
|
};
|
|
928
930
|
}
|
|
929
931
|
|
|
@@ -972,14 +974,14 @@ function deserializeImportAttribute(pos) {
|
|
|
972
974
|
}
|
|
973
975
|
|
|
974
976
|
function deserializeExportNamedDeclaration(pos) {
|
|
975
|
-
const withClause = deserializeOptionBoxWithClause(pos +
|
|
977
|
+
const withClause = deserializeOptionBoxWithClause(pos + 96);
|
|
976
978
|
return {
|
|
977
979
|
type: 'ExportNamedDeclaration',
|
|
978
980
|
start: deserializeU32(pos),
|
|
979
981
|
end: deserializeU32(pos + 4),
|
|
980
982
|
declaration: deserializeOptionDeclaration(pos + 8),
|
|
981
983
|
specifiers: deserializeVecExportSpecifier(pos + 24),
|
|
982
|
-
source: deserializeOptionStringLiteral(pos +
|
|
984
|
+
source: deserializeOptionStringLiteral(pos + 48),
|
|
983
985
|
attributes: withClause === null ? [] : withClause.attributes,
|
|
984
986
|
};
|
|
985
987
|
}
|
|
@@ -1132,7 +1134,7 @@ function deserializeRegExpFlags(pos) {
|
|
|
1132
1134
|
}
|
|
1133
1135
|
|
|
1134
1136
|
function deserializeJSXElement(pos) {
|
|
1135
|
-
const closingElement = deserializeOptionBoxJSXClosingElement(pos +
|
|
1137
|
+
const closingElement = deserializeOptionBoxJSXClosingElement(pos + 40);
|
|
1136
1138
|
const openingElement = deserializeBoxJSXOpeningElement(pos + 8);
|
|
1137
1139
|
if (closingElement === null) openingElement.selfClosing = true;
|
|
1138
1140
|
return {
|
|
@@ -1171,20 +1173,19 @@ function deserializeJSXFragment(pos) {
|
|
|
1171
1173
|
start: deserializeU32(pos),
|
|
1172
1174
|
end: deserializeU32(pos + 4),
|
|
1173
1175
|
openingFragment: deserializeJSXOpeningFragment(pos + 8),
|
|
1174
|
-
closingFragment: deserializeJSXClosingFragment(pos +
|
|
1176
|
+
closingFragment: deserializeJSXClosingFragment(pos + 40),
|
|
1175
1177
|
children: deserializeVecJSXChild(pos + 16),
|
|
1176
1178
|
};
|
|
1177
1179
|
}
|
|
1178
1180
|
|
|
1179
1181
|
function deserializeJSXOpeningFragment(pos) {
|
|
1180
|
-
|
|
1182
|
+
return {
|
|
1181
1183
|
type: 'JSXOpeningFragment',
|
|
1182
1184
|
start: deserializeU32(pos),
|
|
1183
1185
|
end: deserializeU32(pos + 4),
|
|
1184
1186
|
attributes: [],
|
|
1185
1187
|
selfClosing: false,
|
|
1186
1188
|
};
|
|
1187
|
-
return node;
|
|
1188
1189
|
}
|
|
1189
1190
|
|
|
1190
1191
|
function deserializeJSXClosingFragment(pos) {
|
|
@@ -1298,8 +1299,8 @@ function deserializeTSEnumDeclaration(pos) {
|
|
|
1298
1299
|
end: deserializeU32(pos + 4),
|
|
1299
1300
|
id: deserializeBindingIdentifier(pos + 8),
|
|
1300
1301
|
body: deserializeTSEnumBody(pos + 40),
|
|
1301
|
-
const: deserializeBool(pos +
|
|
1302
|
-
declare: deserializeBool(pos +
|
|
1302
|
+
const: deserializeBool(pos + 76),
|
|
1303
|
+
declare: deserializeBool(pos + 77),
|
|
1303
1304
|
};
|
|
1304
1305
|
}
|
|
1305
1306
|
|
|
@@ -1385,8 +1386,8 @@ function deserializeTSTypeOperator(pos) {
|
|
|
1385
1386
|
type: 'TSTypeOperator',
|
|
1386
1387
|
start: deserializeU32(pos),
|
|
1387
1388
|
end: deserializeU32(pos + 4),
|
|
1388
|
-
operator: deserializeTSTypeOperatorOperator(pos +
|
|
1389
|
-
typeAnnotation: deserializeTSType(pos +
|
|
1389
|
+
operator: deserializeTSTypeOperatorOperator(pos + 24),
|
|
1390
|
+
typeAnnotation: deserializeTSType(pos + 8),
|
|
1390
1391
|
};
|
|
1391
1392
|
}
|
|
1392
1393
|
|
|
@@ -1619,7 +1620,7 @@ function deserializeTSTypeAliasDeclaration(pos) {
|
|
|
1619
1620
|
id: deserializeBindingIdentifier(pos + 8),
|
|
1620
1621
|
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos + 40),
|
|
1621
1622
|
typeAnnotation: deserializeTSType(pos + 48),
|
|
1622
|
-
declare: deserializeBool(pos +
|
|
1623
|
+
declare: deserializeBool(pos + 68),
|
|
1623
1624
|
};
|
|
1624
1625
|
}
|
|
1625
1626
|
|
|
@@ -1666,8 +1667,8 @@ function deserializeTSInterfaceDeclaration(pos) {
|
|
|
1666
1667
|
id: deserializeBindingIdentifier(pos + 8),
|
|
1667
1668
|
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos + 40),
|
|
1668
1669
|
extends: deserializeVecTSInterfaceHeritage(pos + 48),
|
|
1669
|
-
body: deserializeBoxTSInterfaceBody(pos +
|
|
1670
|
-
declare: deserializeBool(pos +
|
|
1670
|
+
body: deserializeBoxTSInterfaceBody(pos + 72),
|
|
1671
|
+
declare: deserializeBool(pos + 84),
|
|
1671
1672
|
};
|
|
1672
1673
|
}
|
|
1673
1674
|
|
|
@@ -1685,11 +1686,11 @@ function deserializeTSPropertySignature(pos) {
|
|
|
1685
1686
|
type: 'TSPropertySignature',
|
|
1686
1687
|
start: deserializeU32(pos),
|
|
1687
1688
|
end: deserializeU32(pos + 4),
|
|
1688
|
-
computed: deserializeBool(pos +
|
|
1689
|
-
optional: deserializeBool(pos +
|
|
1690
|
-
readonly: deserializeBool(pos +
|
|
1691
|
-
key: deserializePropertyKey(pos +
|
|
1692
|
-
typeAnnotation: deserializeOptionBoxTSTypeAnnotation(pos +
|
|
1689
|
+
computed: deserializeBool(pos + 32),
|
|
1690
|
+
optional: deserializeBool(pos + 33),
|
|
1691
|
+
readonly: deserializeBool(pos + 34),
|
|
1692
|
+
key: deserializePropertyKey(pos + 8),
|
|
1693
|
+
typeAnnotation: deserializeOptionBoxTSTypeAnnotation(pos + 24),
|
|
1693
1694
|
accessibility: null,
|
|
1694
1695
|
static: false,
|
|
1695
1696
|
};
|
|
@@ -1701,9 +1702,9 @@ function deserializeTSIndexSignature(pos) {
|
|
|
1701
1702
|
start: deserializeU32(pos),
|
|
1702
1703
|
end: deserializeU32(pos + 4),
|
|
1703
1704
|
parameters: deserializeVecTSIndexSignatureName(pos + 8),
|
|
1704
|
-
typeAnnotation: deserializeBoxTSTypeAnnotation(pos +
|
|
1705
|
-
readonly: deserializeBool(pos +
|
|
1706
|
-
static: deserializeBool(pos +
|
|
1705
|
+
typeAnnotation: deserializeBoxTSTypeAnnotation(pos + 32),
|
|
1706
|
+
readonly: deserializeBool(pos + 40),
|
|
1707
|
+
static: deserializeBool(pos + 41),
|
|
1707
1708
|
accessibility: null,
|
|
1708
1709
|
};
|
|
1709
1710
|
}
|
|
@@ -1723,20 +1724,20 @@ function deserializeTSCallSignatureDeclaration(pos) {
|
|
|
1723
1724
|
}
|
|
1724
1725
|
|
|
1725
1726
|
function deserializeTSMethodSignature(pos) {
|
|
1726
|
-
const params = deserializeBoxFormalParameters(pos +
|
|
1727
|
-
const thisParam = deserializeOptionBoxTSThisParameter(pos +
|
|
1727
|
+
const params = deserializeBoxFormalParameters(pos + 40);
|
|
1728
|
+
const thisParam = deserializeOptionBoxTSThisParameter(pos + 32);
|
|
1728
1729
|
if (thisParam !== null) params.unshift(thisParam);
|
|
1729
1730
|
return {
|
|
1730
1731
|
type: 'TSMethodSignature',
|
|
1731
1732
|
start: deserializeU32(pos),
|
|
1732
1733
|
end: deserializeU32(pos + 4),
|
|
1733
1734
|
key: deserializePropertyKey(pos + 8),
|
|
1734
|
-
computed: deserializeBool(pos +
|
|
1735
|
-
optional: deserializeBool(pos +
|
|
1736
|
-
kind: deserializeTSMethodSignatureKind(pos +
|
|
1737
|
-
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos +
|
|
1735
|
+
computed: deserializeBool(pos + 60),
|
|
1736
|
+
optional: deserializeBool(pos + 61),
|
|
1737
|
+
kind: deserializeTSMethodSignatureKind(pos + 62),
|
|
1738
|
+
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos + 24),
|
|
1738
1739
|
params,
|
|
1739
|
-
returnType: deserializeOptionBoxTSTypeAnnotation(pos +
|
|
1740
|
+
returnType: deserializeOptionBoxTSTypeAnnotation(pos + 48),
|
|
1740
1741
|
accessibility: null,
|
|
1741
1742
|
readonly: false,
|
|
1742
1743
|
static: false,
|
|
@@ -1782,17 +1783,17 @@ function deserializeTSTypePredicate(pos) {
|
|
|
1782
1783
|
start: deserializeU32(pos),
|
|
1783
1784
|
end: deserializeU32(pos + 4),
|
|
1784
1785
|
parameterName: deserializeTSTypePredicateName(pos + 8),
|
|
1785
|
-
asserts: deserializeBool(pos +
|
|
1786
|
-
typeAnnotation: deserializeOptionBoxTSTypeAnnotation(pos +
|
|
1786
|
+
asserts: deserializeBool(pos + 32),
|
|
1787
|
+
typeAnnotation: deserializeOptionBoxTSTypeAnnotation(pos + 24),
|
|
1787
1788
|
};
|
|
1788
1789
|
}
|
|
1789
1790
|
|
|
1790
1791
|
function deserializeTSModuleDeclaration(pos) {
|
|
1791
|
-
const kind = deserializeTSModuleDeclarationKind(pos +
|
|
1792
|
+
const kind = deserializeTSModuleDeclarationKind(pos + 84),
|
|
1792
1793
|
global = kind === 'global',
|
|
1793
1794
|
start = deserializeU32(pos),
|
|
1794
1795
|
end = deserializeU32(pos + 4),
|
|
1795
|
-
declare = deserializeBool(pos +
|
|
1796
|
+
declare = deserializeBool(pos + 85);
|
|
1796
1797
|
let id = deserializeTSModuleDeclarationName(pos + 8),
|
|
1797
1798
|
body = deserializeOptionTSModuleDeclarationBody(pos + 64);
|
|
1798
1799
|
|
|
@@ -1836,7 +1837,7 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
1836
1837
|
|
|
1837
1838
|
function deserializeTSModuleBlock(pos) {
|
|
1838
1839
|
const body = deserializeVecDirective(pos + 8);
|
|
1839
|
-
body.push(...deserializeVecStatement(pos +
|
|
1840
|
+
body.push(...deserializeVecStatement(pos + 32));
|
|
1840
1841
|
return {
|
|
1841
1842
|
type: 'TSModuleBlock',
|
|
1842
1843
|
start: deserializeU32(pos),
|
|
@@ -1904,15 +1905,15 @@ function deserializeTSConstructorType(pos) {
|
|
|
1904
1905
|
type: 'TSConstructorType',
|
|
1905
1906
|
start: deserializeU32(pos),
|
|
1906
1907
|
end: deserializeU32(pos + 4),
|
|
1907
|
-
abstract: deserializeBool(pos +
|
|
1908
|
-
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos +
|
|
1909
|
-
params: deserializeBoxFormalParameters(pos +
|
|
1910
|
-
returnType: deserializeBoxTSTypeAnnotation(pos +
|
|
1908
|
+
abstract: deserializeBool(pos + 32),
|
|
1909
|
+
typeParameters: deserializeOptionBoxTSTypeParameterDeclaration(pos + 8),
|
|
1910
|
+
params: deserializeBoxFormalParameters(pos + 16),
|
|
1911
|
+
returnType: deserializeBoxTSTypeAnnotation(pos + 24),
|
|
1911
1912
|
};
|
|
1912
1913
|
}
|
|
1913
1914
|
|
|
1914
1915
|
function deserializeTSMappedType(pos) {
|
|
1915
|
-
let optional = deserializeOptionTSMappedTypeModifierOperator(pos +
|
|
1916
|
+
let optional = deserializeOptionTSMappedTypeModifierOperator(pos + 52);
|
|
1916
1917
|
if (optional === null) optional = false;
|
|
1917
1918
|
const typeParameter = deserializeBoxTSTypeParameter(pos + 8);
|
|
1918
1919
|
return {
|
|
@@ -1922,7 +1923,7 @@ function deserializeTSMappedType(pos) {
|
|
|
1922
1923
|
nameType: deserializeOptionTSType(pos + 16),
|
|
1923
1924
|
typeAnnotation: deserializeOptionTSType(pos + 32),
|
|
1924
1925
|
optional,
|
|
1925
|
-
readonly: deserializeOptionTSMappedTypeModifierOperator(pos +
|
|
1926
|
+
readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 53),
|
|
1926
1927
|
key: typeParameter.name,
|
|
1927
1928
|
constraint: typeParameter.constraint,
|
|
1928
1929
|
};
|
|
@@ -1934,7 +1935,7 @@ function deserializeTSTemplateLiteralType(pos) {
|
|
|
1934
1935
|
start: deserializeU32(pos),
|
|
1935
1936
|
end: deserializeU32(pos + 4),
|
|
1936
1937
|
quasis: deserializeVecTemplateElement(pos + 8),
|
|
1937
|
-
types: deserializeVecTSType(pos +
|
|
1938
|
+
types: deserializeVecTSType(pos + 32),
|
|
1938
1939
|
};
|
|
1939
1940
|
}
|
|
1940
1941
|
|
|
@@ -2077,9 +2078,9 @@ function deserializeComment(pos) {
|
|
|
2077
2078
|
|
|
2078
2079
|
function deserializeNameSpan(pos) {
|
|
2079
2080
|
return {
|
|
2080
|
-
value: deserializeStr(pos),
|
|
2081
|
-
start: deserializeU32(pos
|
|
2082
|
-
end: deserializeU32(pos +
|
|
2081
|
+
value: deserializeStr(pos + 8),
|
|
2082
|
+
start: deserializeU32(pos),
|
|
2083
|
+
end: deserializeU32(pos + 4),
|
|
2083
2084
|
};
|
|
2084
2085
|
}
|
|
2085
2086
|
|
|
@@ -2093,8 +2094,8 @@ function deserializeImportEntry(pos) {
|
|
|
2093
2094
|
|
|
2094
2095
|
function deserializeExportEntry(pos) {
|
|
2095
2096
|
return {
|
|
2096
|
-
start: deserializeU32(pos
|
|
2097
|
-
end: deserializeU32(pos +
|
|
2097
|
+
start: deserializeU32(pos),
|
|
2098
|
+
end: deserializeU32(pos + 4),
|
|
2098
2099
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
2099
2100
|
importName: deserializeExportImportName(pos + 40),
|
|
2100
2101
|
exportName: deserializeExportExportName(pos + 72),
|
|
@@ -2127,36 +2128,36 @@ function deserializeSourceType(pos) {
|
|
|
2127
2128
|
function deserializeRawTransferData(pos) {
|
|
2128
2129
|
return {
|
|
2129
2130
|
program: deserializeProgram(pos),
|
|
2130
|
-
comments: deserializeVecComment(pos +
|
|
2131
|
-
module: deserializeEcmaScriptModule(pos +
|
|
2132
|
-
errors: deserializeVecError(pos +
|
|
2131
|
+
comments: deserializeVecComment(pos + 128),
|
|
2132
|
+
module: deserializeEcmaScriptModule(pos + 152),
|
|
2133
|
+
errors: deserializeVecError(pos + 256),
|
|
2133
2134
|
};
|
|
2134
2135
|
}
|
|
2135
2136
|
|
|
2136
2137
|
function deserializeError(pos) {
|
|
2137
2138
|
return {
|
|
2138
|
-
severity: deserializeErrorSeverity(pos),
|
|
2139
|
-
message: deserializeStr(pos
|
|
2140
|
-
labels: deserializeVecErrorLabel(pos +
|
|
2141
|
-
helpMessage: deserializeOptionStr(pos +
|
|
2139
|
+
severity: deserializeErrorSeverity(pos + 56),
|
|
2140
|
+
message: deserializeStr(pos),
|
|
2141
|
+
labels: deserializeVecErrorLabel(pos + 16),
|
|
2142
|
+
helpMessage: deserializeOptionStr(pos + 40),
|
|
2142
2143
|
};
|
|
2143
2144
|
}
|
|
2144
2145
|
|
|
2145
2146
|
function deserializeErrorLabel(pos) {
|
|
2146
2147
|
return {
|
|
2147
|
-
message: deserializeOptionStr(pos),
|
|
2148
|
-
start: deserializeU32(pos
|
|
2149
|
-
end: deserializeU32(pos +
|
|
2148
|
+
message: deserializeOptionStr(pos + 8),
|
|
2149
|
+
start: deserializeU32(pos),
|
|
2150
|
+
end: deserializeU32(pos + 4),
|
|
2150
2151
|
};
|
|
2151
2152
|
}
|
|
2152
2153
|
|
|
2153
2154
|
function deserializeEcmaScriptModule(pos) {
|
|
2154
2155
|
return {
|
|
2155
|
-
hasModuleSyntax: deserializeBool(pos),
|
|
2156
|
-
staticImports: deserializeVecStaticImport(pos
|
|
2157
|
-
staticExports: deserializeVecStaticExport(pos +
|
|
2158
|
-
dynamicImports: deserializeVecDynamicImport(pos +
|
|
2159
|
-
importMetas: deserializeVecSpan(pos +
|
|
2156
|
+
hasModuleSyntax: deserializeBool(pos + 96),
|
|
2157
|
+
staticImports: deserializeVecStaticImport(pos),
|
|
2158
|
+
staticExports: deserializeVecStaticExport(pos + 24),
|
|
2159
|
+
dynamicImports: deserializeVecDynamicImport(pos + 48),
|
|
2160
|
+
importMetas: deserializeVecSpan(pos + 72),
|
|
2160
2161
|
};
|
|
2161
2162
|
}
|
|
2162
2163
|
|
|
@@ -4051,11 +4052,11 @@ function deserializeStr(pos) {
|
|
|
4051
4052
|
function deserializeVecComment(pos) {
|
|
4052
4053
|
const arr = [],
|
|
4053
4054
|
pos32 = pos >> 2,
|
|
4054
|
-
len = uint32[pos32 +
|
|
4055
|
+
len = uint32[pos32 + 2];
|
|
4055
4056
|
pos = uint32[pos32];
|
|
4056
4057
|
for (let i = 0; i < len; i++) {
|
|
4057
4058
|
arr.push(deserializeComment(pos));
|
|
4058
|
-
pos +=
|
|
4059
|
+
pos += 16;
|
|
4059
4060
|
}
|
|
4060
4061
|
return arr;
|
|
4061
4062
|
}
|
|
@@ -4068,7 +4069,7 @@ function deserializeOptionHashbang(pos) {
|
|
|
4068
4069
|
function deserializeVecDirective(pos) {
|
|
4069
4070
|
const arr = [],
|
|
4070
4071
|
pos32 = pos >> 2,
|
|
4071
|
-
len = uint32[pos32 +
|
|
4072
|
+
len = uint32[pos32 + 2];
|
|
4072
4073
|
pos = uint32[pos32];
|
|
4073
4074
|
for (let i = 0; i < len; i++) {
|
|
4074
4075
|
arr.push(deserializeDirective(pos));
|
|
@@ -4080,7 +4081,7 @@ function deserializeVecDirective(pos) {
|
|
|
4080
4081
|
function deserializeVecStatement(pos) {
|
|
4081
4082
|
const arr = [],
|
|
4082
4083
|
pos32 = pos >> 2,
|
|
4083
|
-
len = uint32[pos32 +
|
|
4084
|
+
len = uint32[pos32 + 2];
|
|
4084
4085
|
pos = uint32[pos32];
|
|
4085
4086
|
for (let i = 0; i < len; i++) {
|
|
4086
4087
|
arr.push(deserializeStatement(pos));
|
|
@@ -4267,7 +4268,7 @@ function deserializeOptionSymbolId(pos) {
|
|
|
4267
4268
|
function deserializeVecArrayExpressionElement(pos) {
|
|
4268
4269
|
const arr = [],
|
|
4269
4270
|
pos32 = pos >> 2,
|
|
4270
|
-
len = uint32[pos32 +
|
|
4271
|
+
len = uint32[pos32 + 2];
|
|
4271
4272
|
pos = uint32[pos32];
|
|
4272
4273
|
for (let i = 0; i < len; i++) {
|
|
4273
4274
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
@@ -4283,7 +4284,7 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
4283
4284
|
function deserializeVecObjectPropertyKind(pos) {
|
|
4284
4285
|
const arr = [],
|
|
4285
4286
|
pos32 = pos >> 2,
|
|
4286
|
-
len = uint32[pos32 +
|
|
4287
|
+
len = uint32[pos32 + 2];
|
|
4287
4288
|
pos = uint32[pos32];
|
|
4288
4289
|
for (let i = 0; i < len; i++) {
|
|
4289
4290
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
@@ -4311,7 +4312,7 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
4311
4312
|
function deserializeVecTemplateElement(pos) {
|
|
4312
4313
|
const arr = [],
|
|
4313
4314
|
pos32 = pos >> 2,
|
|
4314
|
-
len = uint32[pos32 +
|
|
4315
|
+
len = uint32[pos32 + 2];
|
|
4315
4316
|
pos = uint32[pos32];
|
|
4316
4317
|
for (let i = 0; i < len; i++) {
|
|
4317
4318
|
arr.push(deserializeTemplateElement(pos));
|
|
@@ -4323,7 +4324,7 @@ function deserializeVecTemplateElement(pos) {
|
|
|
4323
4324
|
function deserializeVecExpression(pos) {
|
|
4324
4325
|
const arr = [],
|
|
4325
4326
|
pos32 = pos >> 2,
|
|
4326
|
-
len = uint32[pos32 +
|
|
4327
|
+
len = uint32[pos32 + 2];
|
|
4327
4328
|
pos = uint32[pos32];
|
|
4328
4329
|
for (let i = 0; i < len; i++) {
|
|
4329
4330
|
arr.push(deserializeExpression(pos));
|
|
@@ -4361,7 +4362,7 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
4361
4362
|
function deserializeVecArgument(pos) {
|
|
4362
4363
|
const arr = [],
|
|
4363
4364
|
pos32 = pos >> 2,
|
|
4364
|
-
len = uint32[pos32 +
|
|
4365
|
+
len = uint32[pos32 + 2];
|
|
4365
4366
|
pos = uint32[pos32];
|
|
4366
4367
|
for (let i = 0; i < len; i++) {
|
|
4367
4368
|
arr.push(deserializeArgument(pos));
|
|
@@ -4386,7 +4387,7 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
4386
4387
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
4387
4388
|
const arr = [],
|
|
4388
4389
|
pos32 = pos >> 2,
|
|
4389
|
-
len = uint32[pos32 +
|
|
4390
|
+
len = uint32[pos32 + 2];
|
|
4390
4391
|
pos = uint32[pos32];
|
|
4391
4392
|
for (let i = 0; i < len; i++) {
|
|
4392
4393
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
@@ -4403,7 +4404,7 @@ function deserializeOptionAssignmentTargetRest(pos) {
|
|
|
4403
4404
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
4404
4405
|
const arr = [],
|
|
4405
4406
|
pos32 = pos >> 2,
|
|
4406
|
-
len = uint32[pos32 +
|
|
4407
|
+
len = uint32[pos32 + 2];
|
|
4407
4408
|
pos = uint32[pos32];
|
|
4408
4409
|
for (let i = 0; i < len; i++) {
|
|
4409
4410
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
@@ -4528,11 +4529,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
4528
4529
|
function deserializeVecVariableDeclarator(pos) {
|
|
4529
4530
|
const arr = [],
|
|
4530
4531
|
pos32 = pos >> 2,
|
|
4531
|
-
len = uint32[pos32 +
|
|
4532
|
+
len = uint32[pos32 + 2];
|
|
4532
4533
|
pos = uint32[pos32];
|
|
4533
4534
|
for (let i = 0; i < len; i++) {
|
|
4534
4535
|
arr.push(deserializeVariableDeclarator(pos));
|
|
4535
|
-
pos +=
|
|
4536
|
+
pos += 64;
|
|
4536
4537
|
}
|
|
4537
4538
|
return arr;
|
|
4538
4539
|
}
|
|
@@ -4555,11 +4556,11 @@ function deserializeOptionLabelIdentifier(pos) {
|
|
|
4555
4556
|
function deserializeVecSwitchCase(pos) {
|
|
4556
4557
|
const arr = [],
|
|
4557
4558
|
pos32 = pos >> 2,
|
|
4558
|
-
len = uint32[pos32 +
|
|
4559
|
+
len = uint32[pos32 + 2];
|
|
4559
4560
|
pos = uint32[pos32];
|
|
4560
4561
|
for (let i = 0; i < len; i++) {
|
|
4561
4562
|
arr.push(deserializeSwitchCase(pos));
|
|
4562
|
-
pos +=
|
|
4563
|
+
pos += 48;
|
|
4563
4564
|
}
|
|
4564
4565
|
return arr;
|
|
4565
4566
|
}
|
|
@@ -4611,7 +4612,7 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
4611
4612
|
function deserializeVecBindingProperty(pos) {
|
|
4612
4613
|
const arr = [],
|
|
4613
4614
|
pos32 = pos >> 2,
|
|
4614
|
-
len = uint32[pos32 +
|
|
4615
|
+
len = uint32[pos32 + 2];
|
|
4615
4616
|
pos = uint32[pos32];
|
|
4616
4617
|
for (let i = 0; i < len; i++) {
|
|
4617
4618
|
arr.push(deserializeBindingProperty(pos));
|
|
@@ -4637,7 +4638,7 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
4637
4638
|
function deserializeVecOptionBindingPattern(pos) {
|
|
4638
4639
|
const arr = [],
|
|
4639
4640
|
pos32 = pos >> 2,
|
|
4640
|
-
len = uint32[pos32 +
|
|
4641
|
+
len = uint32[pos32 + 2];
|
|
4641
4642
|
pos = uint32[pos32];
|
|
4642
4643
|
for (let i = 0; i < len; i++) {
|
|
4643
4644
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
@@ -4685,11 +4686,11 @@ function deserializeOptionBoxFunctionBody(pos) {
|
|
|
4685
4686
|
function deserializeVecFormalParameter(pos) {
|
|
4686
4687
|
const arr = [],
|
|
4687
4688
|
pos32 = pos >> 2,
|
|
4688
|
-
len = uint32[pos32 +
|
|
4689
|
+
len = uint32[pos32 + 2];
|
|
4689
4690
|
pos = uint32[pos32];
|
|
4690
4691
|
for (let i = 0; i < len; i++) {
|
|
4691
4692
|
arr.push(deserializeFormalParameter(pos));
|
|
4692
|
-
pos +=
|
|
4693
|
+
pos += 72;
|
|
4693
4694
|
}
|
|
4694
4695
|
return arr;
|
|
4695
4696
|
}
|
|
@@ -4697,7 +4698,7 @@ function deserializeVecFormalParameter(pos) {
|
|
|
4697
4698
|
function deserializeVecDecorator(pos) {
|
|
4698
4699
|
const arr = [],
|
|
4699
4700
|
pos32 = pos >> 2,
|
|
4700
|
-
len = uint32[pos32 +
|
|
4701
|
+
len = uint32[pos32 + 2];
|
|
4701
4702
|
pos = uint32[pos32];
|
|
4702
4703
|
for (let i = 0; i < len; i++) {
|
|
4703
4704
|
arr.push(deserializeDecorator(pos));
|
|
@@ -4714,7 +4715,7 @@ function deserializeOptionTSAccessibility(pos) {
|
|
|
4714
4715
|
function deserializeVecTSClassImplements(pos) {
|
|
4715
4716
|
const arr = [],
|
|
4716
4717
|
pos32 = pos >> 2,
|
|
4717
|
-
len = uint32[pos32 +
|
|
4718
|
+
len = uint32[pos32 + 2];
|
|
4718
4719
|
pos = uint32[pos32];
|
|
4719
4720
|
for (let i = 0; i < len; i++) {
|
|
4720
4721
|
arr.push(deserializeTSClassImplements(pos));
|
|
@@ -4730,7 +4731,7 @@ function deserializeBoxClassBody(pos) {
|
|
|
4730
4731
|
function deserializeVecClassElement(pos) {
|
|
4731
4732
|
const arr = [],
|
|
4732
4733
|
pos32 = pos >> 2,
|
|
4733
|
-
len = uint32[pos32 +
|
|
4734
|
+
len = uint32[pos32 + 2];
|
|
4734
4735
|
pos = uint32[pos32];
|
|
4735
4736
|
for (let i = 0; i < len; i++) {
|
|
4736
4737
|
arr.push(deserializeClassElement(pos));
|
|
@@ -4791,7 +4792,7 @@ function deserializeOptionImportPhase(pos) {
|
|
|
4791
4792
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
4792
4793
|
const arr = [],
|
|
4793
4794
|
pos32 = pos >> 2,
|
|
4794
|
-
len = uint32[pos32 +
|
|
4795
|
+
len = uint32[pos32 + 2];
|
|
4795
4796
|
pos = uint32[pos32];
|
|
4796
4797
|
for (let i = 0; i < len; i++) {
|
|
4797
4798
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
@@ -4829,7 +4830,7 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
4829
4830
|
function deserializeVecImportAttribute(pos) {
|
|
4830
4831
|
const arr = [],
|
|
4831
4832
|
pos32 = pos >> 2,
|
|
4832
|
-
len = uint32[pos32 +
|
|
4833
|
+
len = uint32[pos32 + 2];
|
|
4833
4834
|
pos = uint32[pos32];
|
|
4834
4835
|
for (let i = 0; i < len; i++) {
|
|
4835
4836
|
arr.push(deserializeImportAttribute(pos));
|
|
@@ -4846,7 +4847,7 @@ function deserializeOptionDeclaration(pos) {
|
|
|
4846
4847
|
function deserializeVecExportSpecifier(pos) {
|
|
4847
4848
|
const arr = [],
|
|
4848
4849
|
pos32 = pos >> 2,
|
|
4849
|
-
len = uint32[pos32 +
|
|
4850
|
+
len = uint32[pos32 + 2];
|
|
4850
4851
|
pos = uint32[pos32];
|
|
4851
4852
|
for (let i = 0; i < len; i++) {
|
|
4852
4853
|
arr.push(deserializeExportSpecifier(pos));
|
|
@@ -4889,7 +4890,7 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
4889
4890
|
function deserializeVecJSXChild(pos) {
|
|
4890
4891
|
const arr = [],
|
|
4891
4892
|
pos32 = pos >> 2,
|
|
4892
|
-
len = uint32[pos32 +
|
|
4893
|
+
len = uint32[pos32 + 2];
|
|
4893
4894
|
pos = uint32[pos32];
|
|
4894
4895
|
for (let i = 0; i < len; i++) {
|
|
4895
4896
|
arr.push(deserializeJSXChild(pos));
|
|
@@ -4910,7 +4911,7 @@ function deserializeOptionBoxJSXClosingElement(pos) {
|
|
|
4910
4911
|
function deserializeVecJSXAttributeItem(pos) {
|
|
4911
4912
|
const arr = [],
|
|
4912
4913
|
pos32 = pos >> 2,
|
|
4913
|
-
len = uint32[pos32 +
|
|
4914
|
+
len = uint32[pos32 + 2];
|
|
4914
4915
|
pos = uint32[pos32];
|
|
4915
4916
|
for (let i = 0; i < len; i++) {
|
|
4916
4917
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
@@ -4959,7 +4960,7 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
4959
4960
|
function deserializeVecTSEnumMember(pos) {
|
|
4960
4961
|
const arr = [],
|
|
4961
4962
|
pos32 = pos >> 2,
|
|
4962
|
-
len = uint32[pos32 +
|
|
4963
|
+
len = uint32[pos32 + 2];
|
|
4963
4964
|
pos = uint32[pos32];
|
|
4964
4965
|
for (let i = 0; i < len; i++) {
|
|
4965
4966
|
arr.push(deserializeTSEnumMember(pos));
|
|
@@ -5119,7 +5120,7 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
5119
5120
|
function deserializeVecTSType(pos) {
|
|
5120
5121
|
const arr = [],
|
|
5121
5122
|
pos32 = pos >> 2,
|
|
5122
|
-
len = uint32[pos32 +
|
|
5123
|
+
len = uint32[pos32 + 2];
|
|
5123
5124
|
pos = uint32[pos32];
|
|
5124
5125
|
for (let i = 0; i < len; i++) {
|
|
5125
5126
|
arr.push(deserializeTSType(pos));
|
|
@@ -5131,7 +5132,7 @@ function deserializeVecTSType(pos) {
|
|
|
5131
5132
|
function deserializeVecTSTupleElement(pos) {
|
|
5132
5133
|
const arr = [],
|
|
5133
5134
|
pos32 = pos >> 2,
|
|
5134
|
-
len = uint32[pos32 +
|
|
5135
|
+
len = uint32[pos32 + 2];
|
|
5135
5136
|
pos = uint32[pos32];
|
|
5136
5137
|
for (let i = 0; i < len; i++) {
|
|
5137
5138
|
arr.push(deserializeTSTupleElement(pos));
|
|
@@ -5160,7 +5161,7 @@ function deserializeOptionTSType(pos) {
|
|
|
5160
5161
|
function deserializeVecTSTypeParameter(pos) {
|
|
5161
5162
|
const arr = [],
|
|
5162
5163
|
pos32 = pos >> 2,
|
|
5163
|
-
len = uint32[pos32 +
|
|
5164
|
+
len = uint32[pos32 + 2];
|
|
5164
5165
|
pos = uint32[pos32];
|
|
5165
5166
|
for (let i = 0; i < len; i++) {
|
|
5166
5167
|
arr.push(deserializeTSTypeParameter(pos));
|
|
@@ -5172,7 +5173,7 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
5172
5173
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
5173
5174
|
const arr = [],
|
|
5174
5175
|
pos32 = pos >> 2,
|
|
5175
|
-
len = uint32[pos32 +
|
|
5176
|
+
len = uint32[pos32 + 2];
|
|
5176
5177
|
pos = uint32[pos32];
|
|
5177
5178
|
for (let i = 0; i < len; i++) {
|
|
5178
5179
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
@@ -5188,7 +5189,7 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
5188
5189
|
function deserializeVecTSSignature(pos) {
|
|
5189
5190
|
const arr = [],
|
|
5190
5191
|
pos32 = pos >> 2,
|
|
5191
|
-
len = uint32[pos32 +
|
|
5192
|
+
len = uint32[pos32 + 2];
|
|
5192
5193
|
pos = uint32[pos32];
|
|
5193
5194
|
for (let i = 0; i < len; i++) {
|
|
5194
5195
|
arr.push(deserializeTSSignature(pos));
|
|
@@ -5216,7 +5217,7 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
5216
5217
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
5217
5218
|
const arr = [],
|
|
5218
5219
|
pos32 = pos >> 2,
|
|
5219
|
-
len = uint32[pos32 +
|
|
5220
|
+
len = uint32[pos32 + 2];
|
|
5220
5221
|
pos = uint32[pos32];
|
|
5221
5222
|
for (let i = 0; i < len; i++) {
|
|
5222
5223
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
@@ -5262,18 +5263,18 @@ function deserializeU32(pos) {
|
|
|
5262
5263
|
}
|
|
5263
5264
|
|
|
5264
5265
|
function deserializeOptionNameSpan(pos) {
|
|
5265
|
-
if (uint32[pos >> 2] === 0 && uint32[(pos +
|
|
5266
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5266
5267
|
return deserializeNameSpan(pos);
|
|
5267
5268
|
}
|
|
5268
5269
|
|
|
5269
5270
|
function deserializeVecAlternative(pos) {
|
|
5270
5271
|
const arr = [],
|
|
5271
5272
|
pos32 = pos >> 2,
|
|
5272
|
-
len = uint32[pos32 +
|
|
5273
|
+
len = uint32[pos32 + 2];
|
|
5273
5274
|
pos = uint32[pos32];
|
|
5274
5275
|
for (let i = 0; i < len; i++) {
|
|
5275
5276
|
arr.push(deserializeAlternative(pos));
|
|
5276
|
-
pos +=
|
|
5277
|
+
pos += 32;
|
|
5277
5278
|
}
|
|
5278
5279
|
return arr;
|
|
5279
5280
|
}
|
|
@@ -5281,7 +5282,7 @@ function deserializeVecAlternative(pos) {
|
|
|
5281
5282
|
function deserializeVecTerm(pos) {
|
|
5282
5283
|
const arr = [],
|
|
5283
5284
|
pos32 = pos >> 2,
|
|
5284
|
-
len = uint32[pos32 +
|
|
5285
|
+
len = uint32[pos32 + 2];
|
|
5285
5286
|
pos = uint32[pos32];
|
|
5286
5287
|
for (let i = 0; i < len; i++) {
|
|
5287
5288
|
arr.push(deserializeTerm(pos));
|
|
@@ -5347,7 +5348,7 @@ function deserializeOptionU64(pos) {
|
|
|
5347
5348
|
function deserializeVecCharacterClassContents(pos) {
|
|
5348
5349
|
const arr = [],
|
|
5349
5350
|
pos32 = pos >> 2,
|
|
5350
|
-
len = uint32[pos32 +
|
|
5351
|
+
len = uint32[pos32 + 2];
|
|
5351
5352
|
pos = uint32[pos32];
|
|
5352
5353
|
for (let i = 0; i < len; i++) {
|
|
5353
5354
|
arr.push(deserializeCharacterClassContents(pos));
|
|
@@ -5367,11 +5368,11 @@ function deserializeBoxClassStringDisjunction(pos) {
|
|
|
5367
5368
|
function deserializeVecClassString(pos) {
|
|
5368
5369
|
const arr = [],
|
|
5369
5370
|
pos32 = pos >> 2,
|
|
5370
|
-
len = uint32[pos32 +
|
|
5371
|
+
len = uint32[pos32 + 2];
|
|
5371
5372
|
pos = uint32[pos32];
|
|
5372
5373
|
for (let i = 0; i < len; i++) {
|
|
5373
5374
|
arr.push(deserializeClassString(pos));
|
|
5374
|
-
pos +=
|
|
5375
|
+
pos += 40;
|
|
5375
5376
|
}
|
|
5376
5377
|
return arr;
|
|
5377
5378
|
}
|
|
@@ -5379,7 +5380,7 @@ function deserializeVecClassString(pos) {
|
|
|
5379
5380
|
function deserializeVecCharacter(pos) {
|
|
5380
5381
|
const arr = [],
|
|
5381
5382
|
pos32 = pos >> 2,
|
|
5382
|
-
len = uint32[pos32 +
|
|
5383
|
+
len = uint32[pos32 + 2];
|
|
5383
5384
|
pos = uint32[pos32];
|
|
5384
5385
|
for (let i = 0; i < len; i++) {
|
|
5385
5386
|
arr.push(deserializeCharacter(pos));
|
|
@@ -5389,23 +5390,18 @@ function deserializeVecCharacter(pos) {
|
|
|
5389
5390
|
}
|
|
5390
5391
|
|
|
5391
5392
|
function deserializeOptionModifiers(pos) {
|
|
5392
|
-
if (uint8[pos
|
|
5393
|
-
return deserializeModifiers(pos);
|
|
5394
|
-
}
|
|
5395
|
-
|
|
5396
|
-
function deserializeOptionModifier(pos) {
|
|
5397
|
-
if (uint8[pos] === 2) return null;
|
|
5398
|
-
return deserializeModifier(pos);
|
|
5393
|
+
if (uint8[pos] === 0) return null;
|
|
5394
|
+
return deserializeModifiers(pos + 8);
|
|
5399
5395
|
}
|
|
5400
5396
|
|
|
5401
5397
|
function deserializeVecError(pos) {
|
|
5402
5398
|
const arr = [],
|
|
5403
5399
|
pos32 = pos >> 2,
|
|
5404
|
-
len = uint32[pos32 +
|
|
5400
|
+
len = uint32[pos32 + 2];
|
|
5405
5401
|
pos = uint32[pos32];
|
|
5406
5402
|
for (let i = 0; i < len; i++) {
|
|
5407
5403
|
arr.push(deserializeError(pos));
|
|
5408
|
-
pos +=
|
|
5404
|
+
pos += 64;
|
|
5409
5405
|
}
|
|
5410
5406
|
return arr;
|
|
5411
5407
|
}
|
|
@@ -5413,7 +5409,7 @@ function deserializeVecError(pos) {
|
|
|
5413
5409
|
function deserializeVecErrorLabel(pos) {
|
|
5414
5410
|
const arr = [],
|
|
5415
5411
|
pos32 = pos >> 2,
|
|
5416
|
-
len = uint32[pos32 +
|
|
5412
|
+
len = uint32[pos32 + 2];
|
|
5417
5413
|
pos = uint32[pos32];
|
|
5418
5414
|
for (let i = 0; i < len; i++) {
|
|
5419
5415
|
arr.push(deserializeErrorLabel(pos));
|
|
@@ -5425,11 +5421,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
5425
5421
|
function deserializeVecStaticImport(pos) {
|
|
5426
5422
|
const arr = [],
|
|
5427
5423
|
pos32 = pos >> 2,
|
|
5428
|
-
len = uint32[pos32 +
|
|
5424
|
+
len = uint32[pos32 + 2];
|
|
5429
5425
|
pos = uint32[pos32];
|
|
5430
5426
|
for (let i = 0; i < len; i++) {
|
|
5431
5427
|
arr.push(deserializeStaticImport(pos));
|
|
5432
|
-
pos +=
|
|
5428
|
+
pos += 56;
|
|
5433
5429
|
}
|
|
5434
5430
|
return arr;
|
|
5435
5431
|
}
|
|
@@ -5437,11 +5433,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
5437
5433
|
function deserializeVecStaticExport(pos) {
|
|
5438
5434
|
const arr = [],
|
|
5439
5435
|
pos32 = pos >> 2,
|
|
5440
|
-
len = uint32[pos32 +
|
|
5436
|
+
len = uint32[pos32 + 2];
|
|
5441
5437
|
pos = uint32[pos32];
|
|
5442
5438
|
for (let i = 0; i < len; i++) {
|
|
5443
5439
|
arr.push(deserializeStaticExport(pos));
|
|
5444
|
-
pos +=
|
|
5440
|
+
pos += 32;
|
|
5445
5441
|
}
|
|
5446
5442
|
return arr;
|
|
5447
5443
|
}
|
|
@@ -5449,7 +5445,7 @@ function deserializeVecStaticExport(pos) {
|
|
|
5449
5445
|
function deserializeVecDynamicImport(pos) {
|
|
5450
5446
|
const arr = [],
|
|
5451
5447
|
pos32 = pos >> 2,
|
|
5452
|
-
len = uint32[pos32 +
|
|
5448
|
+
len = uint32[pos32 + 2];
|
|
5453
5449
|
pos = uint32[pos32];
|
|
5454
5450
|
for (let i = 0; i < len; i++) {
|
|
5455
5451
|
arr.push(deserializeDynamicImport(pos));
|
|
@@ -5461,7 +5457,7 @@ function deserializeVecDynamicImport(pos) {
|
|
|
5461
5457
|
function deserializeVecSpan(pos) {
|
|
5462
5458
|
const arr = [],
|
|
5463
5459
|
pos32 = pos >> 2,
|
|
5464
|
-
len = uint32[pos32 +
|
|
5460
|
+
len = uint32[pos32 + 2];
|
|
5465
5461
|
pos = uint32[pos32];
|
|
5466
5462
|
for (let i = 0; i < len; i++) {
|
|
5467
5463
|
arr.push(deserializeSpan(pos));
|
|
@@ -5473,7 +5469,7 @@ function deserializeVecSpan(pos) {
|
|
|
5473
5469
|
function deserializeVecImportEntry(pos) {
|
|
5474
5470
|
const arr = [],
|
|
5475
5471
|
pos32 = pos >> 2,
|
|
5476
|
-
len = uint32[pos32 +
|
|
5472
|
+
len = uint32[pos32 + 2];
|
|
5477
5473
|
pos = uint32[pos32];
|
|
5478
5474
|
for (let i = 0; i < len; i++) {
|
|
5479
5475
|
arr.push(deserializeImportEntry(pos));
|
|
@@ -5485,7 +5481,7 @@ function deserializeVecImportEntry(pos) {
|
|
|
5485
5481
|
function deserializeVecExportEntry(pos) {
|
|
5486
5482
|
const arr = [],
|
|
5487
5483
|
pos32 = pos >> 2,
|
|
5488
|
-
len = uint32[pos32 +
|
|
5484
|
+
len = uint32[pos32 + 2];
|
|
5489
5485
|
pos = uint32[pos32];
|
|
5490
5486
|
for (let i = 0; i < len; i++) {
|
|
5491
5487
|
arr.push(deserializeExportEntry(pos));
|