oxlint 1.59.0 → 1.60.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/lint.js CHANGED
@@ -359,7 +359,7 @@ function getLineColumnFromOffset(offset) {
359
359
  if (lines.length === 0 && initLines(), offset > sourceText.length) throw RangeError(`Index out of range (requested index ${offset}, but source text has length ${sourceText.length}).`);
360
360
  let low = 0, high = lineStartIndices.length, mid;
361
361
  do
362
- mid = low + high >>> 1, offset < lineStartIndices[mid] ? high = mid : low = mid + 1;
362
+ mid = low + high >> 1, offset < lineStartIndices[mid] ? high = mid : low = mid + 1;
363
363
  while (low < high);
364
364
  return {
365
365
  line: low,
@@ -455,14 +455,14 @@ function computeLoc(start, end) {
455
455
  }), activeLocationsCount++;
456
456
  let linesLen = lineStartIndices.length, line = 0, high = linesLen, mid;
457
457
  do
458
- mid = line + high >>> 1, start < lineStartIndices[mid] ? high = mid : line = mid + 1;
458
+ mid = line + high >> 1, start < lineStartIndices[mid] ? high = mid : line = mid + 1;
459
459
  while (line < high);
460
460
  let lineStart = lineStartIndices[line - 1], locStart = loc.start;
461
461
  locStart.line = line, locStart.column = start - lineStart;
462
462
  let locEnd = loc.end;
463
463
  if (line === linesLen || end < lineStartIndices[line]) locEnd.line = line, locEnd.column = end - lineStart;
464
464
  else {
465
- for (line++, high = linesLen; line < high;) mid = line + high >>> 1, end < lineStartIndices[mid] ? high = mid : line = mid + 1;
465
+ for (line++, high = linesLen; line < high;) mid = line + high >> 1, end < lineStartIndices[mid] ? high = mid : line = mid + 1;
466
466
  locEnd.line = line, locEnd.column = end - lineStartIndices[line - 1];
467
467
  }
468
468
  return loc;
@@ -503,16 +503,16 @@ function traverse(node) {
503
503
  }
504
504
  //#endregion
505
505
  //#region src-js/utils/typed_arrays.ts
506
- const EMPTY_UINT8_ARRAY = new Uint8Array(), EMPTY_UINT32_ARRAY = new Uint32Array();
506
+ const EMPTY_UINT8_ARRAY = new Uint8Array(), EMPTY_INT32_ARRAY = new Int32Array();
507
507
  //#endregion
508
508
  //#region src-js/plugins/tokens.ts
509
- let tokens = null, tokensUint8 = null, tokensUint32 = null, tokensLen = 0, allTokensDeserialized = !1;
509
+ let tokens = null, tokensUint8 = null, tokensInt32 = null, tokensLen = 0, allTokensDeserialized = !1;
510
510
  const cachedTokens = [];
511
511
  let previousTokens = [];
512
512
  const tokensWithLoc = [];
513
513
  let activeTokensWithLocCount = 0;
514
514
  const regexObjects = [];
515
- let tokensWithRegexIndexes = EMPTY_UINT32_ARRAY, activeTokensWithRegexCount = 0, deserializedTokenIndexes = EMPTY_UINT32_ARRAY, deserializedTokensLen = 0, resetLoc;
515
+ let tokensWithRegexIndexes = EMPTY_INT32_ARRAY, activeTokensWithRegexCount = 0, deserializedTokenIndexes = EMPTY_INT32_ARRAY, deserializedTokensLen = 0, resetLoc;
516
516
  /**
517
517
  * Token implementation with lazy `loc` caching via private field.
518
518
  *
@@ -571,27 +571,27 @@ function initTokens() {
571
571
  * Does NOT build the `tokens` array - use `initTokens` for that.
572
572
  */
573
573
  function deserializeTokens() {
574
- tokensUint32 === null && initTokensBuffer();
574
+ tokensInt32 === null && initTokensBuffer();
575
575
  for (let i = 0; i < tokensLen; i++) deserializeTokenIfNeeded(i);
576
576
  allTokensDeserialized = !0, deserializedTokensLen = 0;
577
577
  }
578
578
  /**
579
579
  * Initialize typed array views over the tokens region of the buffer.
580
580
  *
581
- * Populates `tokensUint8`, `tokensUint32`, and `tokensLen`, and grows `cachedTokens` if needed.
581
+ * Populates `tokensUint8`, `tokensInt32`, and `tokensLen`, and grows `cachedTokens` if needed.
582
582
  * Does NOT deserialize tokens - they are deserialized lazily via `deserializeTokenIfNeeded`.
583
583
  */
584
584
  function initTokensBuffer() {
585
585
  sourceText === null && initSourceText();
586
- let { uint32 } = buffer, tokensPos = uint32[536870901];
587
- tokensLen = uint32[536870902];
586
+ let { int32 } = buffer, tokensPos = int32[536870901];
587
+ tokensLen = int32[536870902];
588
588
  let arrayBuffer = buffer.buffer, absolutePos = buffer.byteOffset + tokensPos;
589
- if (tokensUint8 = new Uint8Array(arrayBuffer, absolutePos, tokensLen << 4), tokensUint32 = new Uint32Array(arrayBuffer, absolutePos, tokensLen << 2), cachedTokens.length < tokensLen) {
589
+ if (tokensUint8 = new Uint8Array(arrayBuffer, absolutePos, tokensLen << 4), tokensInt32 = new Int32Array(arrayBuffer, absolutePos, tokensLen << 2), cachedTokens.length < tokensLen) {
590
590
  do
591
591
  cachedTokens.push(new Token());
592
592
  while (cachedTokens.length < tokensLen);
593
593
  let indexesLen = deserializedTokenIndexes.length;
594
- indexesLen < tokensLen && (deserializedTokenIndexes = new Uint32Array(MathMax(tokensLen, indexesLen === 0 ? 16 : indexesLen << 1)));
594
+ indexesLen < tokensLen && (deserializedTokenIndexes = new Int32Array(MathMax(tokensLen, indexesLen === 0 ? 16 : indexesLen << 1)));
595
595
  }
596
596
  }
597
597
  /**
@@ -621,7 +621,7 @@ function deserializeTokenIfNeeded(index) {
621
621
  let pos = index << 4, flagPos = pos + 15;
622
622
  if (tokensUint8[flagPos] !== 0) return null;
623
623
  tokensUint8[flagPos] = 1;
624
- let token = cachedTokens[index], kind = tokensUint8[pos + 8], pos32 = pos >> 2, start = tokensUint32[pos32], end = tokensUint32[pos32 + 1], value = sourceText.slice(start + +(kind === 2), end);
624
+ let token = cachedTokens[index], kind = tokensUint8[pos + 8], pos32 = pos >> 2, start = tokensInt32[pos32], end = tokensInt32[pos32 + 1], value = sourceText.slice(start + +(kind === 2), end);
625
625
  if (kind <= 2) tokensUint8[pos + 10] === 1 && (value = unescapeIdentifier(value));
626
626
  else if (kind === 8) {
627
627
  let regex;
@@ -633,7 +633,7 @@ function deserializeTokenIfNeeded(index) {
633
633
  });
634
634
  let indexesLen = tokensWithRegexIndexes.length;
635
635
  if (indexesLen === activeTokensWithRegexCount) {
636
- let newArr = new Uint32Array(indexesLen === 0 ? 16 : indexesLen << 1);
636
+ let newArr = new Int32Array(indexesLen === 0 ? 16 : indexesLen << 1);
637
637
  newArr.set(tokensWithRegexIndexes, 0), tokensWithRegexIndexes = newArr;
638
638
  }
639
639
  }
@@ -662,7 +662,7 @@ function unescapeIdentifier(name) {
662
662
  * will recalculate it when the token is reused for a different file.
663
663
  */
664
664
  function resetTokens() {
665
- if (tokensUint32 !== null) {
665
+ if (tokensInt32 !== null) {
666
666
  if (allTokensDeserialized === !1) {
667
667
  for (let i = 0; i < deserializedTokensLen; i++) cachedTokens[deserializedTokenIndexes[i]].value = null;
668
668
  deserializedTokensLen = 0;
@@ -676,16 +676,16 @@ function resetTokens() {
676
676
  let token = cachedTokens[tokensWithRegexIndexes[i]], regex = token.regex;
677
677
  regex.pattern = null, regex.flags = null, token.regex = void 0;
678
678
  }
679
- activeTokensWithRegexCount = 0, tokens = null, tokensUint8 = null, tokensUint32 = null, tokensLen = 0;
679
+ activeTokensWithRegexCount = 0, tokens = null, tokensUint8 = null, tokensInt32 = null, tokensLen = 0;
680
680
  }
681
681
  }
682
682
  //#endregion
683
683
  //#region src-js/plugins/comments.ts
684
- let comments = null, commentsUint8 = null, commentsUint32 = null, commentsLen = 0, allCommentsDeserialized = !1;
684
+ let comments = null, commentsUint8 = null, commentsInt32 = null, commentsLen = 0, allCommentsDeserialized = !1;
685
685
  const cachedComments = [];
686
686
  let previousComments = [];
687
687
  const commentsWithLoc = [];
688
- let activeCommentsWithLocCount = 0, deserializedCommentIndexes = EMPTY_UINT32_ARRAY, deserializedCommentsLen = 0;
688
+ let activeCommentsWithLocCount = 0, deserializedCommentIndexes = EMPTY_INT32_ARRAY, deserializedCommentsLen = 0;
689
689
  const EMPTY_COMMENTS = ObjectFreeze([]);
690
690
  let resetCommentLoc;
691
691
  /**
@@ -732,34 +732,34 @@ function initComments() {
732
732
  * Does NOT build the `comments` array - use `initComments` for that.
733
733
  */
734
734
  function deserializeComments() {
735
- commentsUint32 === null && initCommentsBuffer();
735
+ commentsInt32 === null && initCommentsBuffer();
736
736
  for (let i = 0; i < commentsLen; i++) deserializeCommentIfNeeded(i);
737
737
  allCommentsDeserialized = !0, deserializedCommentsLen = 0;
738
738
  }
739
739
  /**
740
740
  * Initialize typed array views over the comments region of the buffer.
741
741
  *
742
- * Populates `commentsUint8`, `commentsUint32`, and `commentsLen`, and grows `cachedComments` if needed.
742
+ * Populates `commentsUint8`, `commentsInt32`, and `commentsLen`, and grows `cachedComments` if needed.
743
743
  * Does NOT deserialize comments - they are deserialized lazily via `deserializeCommentIfNeeded`.
744
744
  *
745
745
  * Exception: If the file has a hashbang, eagerly deserializes the first comment and sets its type to `Shebang`.
746
746
  */
747
747
  function initCommentsBuffer() {
748
748
  sourceText === null && initSourceText();
749
- let { uint32 } = buffer, programPos32 = uint32[DATA_POINTER_POS_32] >> 2, commentsPos = uint32[programPos32 + 8];
750
- if (commentsLen = uint32[programPos32 + 10], commentsLen === 0) {
751
- comments = EMPTY_COMMENTS, commentsUint8 = EMPTY_UINT8_ARRAY, commentsUint32 = EMPTY_UINT32_ARRAY, allCommentsDeserialized = !0;
749
+ let { int32 } = buffer, programPos32 = int32[DATA_POINTER_POS_32] >> 2, commentsPos = int32[programPos32 + 8];
750
+ if (commentsLen = int32[programPos32 + 10], commentsLen === 0) {
751
+ comments = EMPTY_COMMENTS, commentsUint8 = EMPTY_UINT8_ARRAY, commentsInt32 = EMPTY_INT32_ARRAY, allCommentsDeserialized = !0;
752
752
  return;
753
753
  }
754
754
  let arrayBuffer = buffer.buffer, absolutePos = buffer.byteOffset + commentsPos;
755
- if (commentsUint8 = new Uint8Array(arrayBuffer, absolutePos, commentsLen * 16), commentsUint32 = new Uint32Array(arrayBuffer, absolutePos, commentsLen * 4), cachedComments.length < commentsLen) {
755
+ if (commentsUint8 = new Uint8Array(arrayBuffer, absolutePos, commentsLen * 16), commentsInt32 = new Int32Array(arrayBuffer, absolutePos, commentsLen * 4), cachedComments.length < commentsLen) {
756
756
  do
757
757
  cachedComments.push(new Comment());
758
758
  while (cachedComments.length < commentsLen);
759
759
  let indexesLen = deserializedCommentIndexes.length;
760
- indexesLen < commentsLen && (deserializedCommentIndexes = new Uint32Array(MathMax(commentsLen, indexesLen === 0 ? 16 : indexesLen << 1)));
760
+ indexesLen < commentsLen && (deserializedCommentIndexes = new Int32Array(MathMax(commentsLen, indexesLen === 0 ? 16 : indexesLen << 1)));
761
761
  }
762
- commentsUint32[0] === 0 && sourceText.startsWith("#!") && (getComment(0).type = "Shebang");
762
+ commentsInt32[0] === 0 && sourceText.startsWith("#!") && (getComment(0).type = "Shebang");
763
763
  }
764
764
  /**
765
765
  * Get comment at `index`, deserializing if needed.
@@ -788,7 +788,7 @@ function deserializeCommentIfNeeded(index) {
788
788
  let pos = index << 4, flagPos = pos + 15;
789
789
  if (commentsUint8[flagPos] !== 0) return null;
790
790
  commentsUint8[flagPos] = 1;
791
- let comment = cachedComments[index], isBlock = commentsUint8[pos + 12] !== 0, pos32 = pos >> 2, start = commentsUint32[pos32], end = commentsUint32[pos32 + 1];
791
+ let comment = cachedComments[index], isBlock = commentsUint8[pos + 12] !== 0, pos32 = pos >> 2, start = commentsInt32[pos32], end = commentsInt32[pos32 + 1];
792
792
  return comment.type = isBlock ? "Block" : "Line", comment.value = sourceText.slice(start + 2, end - (isBlock << 1)), comment.range[0] = comment.start = start, comment.range[1] = comment.end = end, comment;
793
793
  }
794
794
  /**
@@ -798,7 +798,7 @@ function deserializeCommentIfNeeded(index) {
798
798
  * will recalculate it when the comment is reused for a different file.
799
799
  */
800
800
  function resetComments() {
801
- if (commentsUint32 !== null) {
801
+ if (commentsInt32 !== null) {
802
802
  if (allCommentsDeserialized === !1) {
803
803
  for (let i = 0; i < deserializedCommentsLen; i++) cachedComments[deserializedCommentIndexes[i]].value = null;
804
804
  deserializedCommentsLen = 0;
@@ -807,12 +807,12 @@ function resetComments() {
807
807
  allCommentsDeserialized = !1;
808
808
  }
809
809
  for (let i = 0; i < activeCommentsWithLocCount; i++) resetCommentLoc(commentsWithLoc[i]);
810
- activeCommentsWithLocCount = 0, comments = null, commentsUint8 = null, commentsUint32 = null, commentsLen = 0;
810
+ activeCommentsWithLocCount = 0, comments = null, commentsUint8 = null, commentsInt32 = null, commentsLen = 0;
811
811
  }
812
812
  }
813
813
  //#endregion
814
814
  //#region src-js/generated/deserialize.js
815
- let uint8, uint32, float64, sourceText$1, sourceTextLatin, sourceStartPos$1 = 0, firstNonAsciiPos = 0, parent = null;
815
+ let uint8, int32, float64, sourceText$1, sourceTextLatin, sourceStartPos$1 = 0, firstNonAsciiPos = 0, parent = null;
816
816
  const { fromCharCode } = String, { utf8Slice: utf8Slice$1, latin1Slice } = Buffer.prototype, stringDecodeArrays = Array(65).fill(null);
817
817
  for (let i = 0; i <= 64; i++) stringDecodeArrays[i] = Array(i).fill(0);
818
818
  const NodeProto = ObjectCreate(ObjectPrototype, { loc: {
@@ -825,20 +825,20 @@ function deserializeProgramOnly(buffer, sourceText, sourceStartPosInput, sourceB
825
825
  return sourceStartPos$1 = sourceStartPosInput, deserializeWith(buffer, sourceText, sourceByteLen, deserializeProgram);
826
826
  }
827
827
  function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
828
- if (uint8 = buffer, uint32 = buffer.uint32, float64 = buffer.float64, sourceText$1 = sourceTextInput, sourceText$1.length === sourceByteLen) firstNonAsciiPos = sourceStartPos$1 + sourceByteLen, sourceTextLatin = sourceText$1;
828
+ if (uint8 = buffer, int32 = buffer.int32, float64 = buffer.float64, sourceText$1 = sourceTextInput, sourceText$1.length === sourceByteLen) firstNonAsciiPos = sourceStartPos$1 + sourceByteLen, sourceTextLatin = sourceText$1;
829
829
  else {
830
830
  let i = sourceStartPos$1, sourceEndPos = sourceStartPos$1 + sourceByteLen;
831
831
  for (; i < sourceEndPos && uint8[i] < 128; i++);
832
832
  firstNonAsciiPos = i, sourceTextLatin = latin1Slice.call(uint8, sourceStartPos$1, sourceEndPos);
833
833
  }
834
- let data = deserialize(uint32[536870900]);
834
+ let data = deserialize(int32[536870900]);
835
835
  return resetBuffer(), data;
836
836
  }
837
837
  function resetBuffer() {
838
- uint8 = uint32 = float64 = sourceText$1 = sourceTextLatin = void 0;
838
+ uint8 = int32 = float64 = sourceText$1 = sourceTextLatin = void 0;
839
839
  }
840
840
  function deserializeProgram(pos) {
841
- let end = deserializeU32(pos + 4), program = parent = {
841
+ let end = deserializeI32(pos + 4), program = parent = {
842
842
  __proto__: NodeProto,
843
843
  type: "Program",
844
844
  body: null,
@@ -920,72 +920,72 @@ function deserializeExpression(pos) {
920
920
  }
921
921
  }
922
922
  function deserializeIdentifierName(pos) {
923
- let start, end, previousParent = parent, node = parent = {
923
+ let start, end;
924
+ return {
924
925
  __proto__: NodeProto,
925
926
  type: "Identifier",
926
- decorators: null,
927
+ decorators: [],
927
928
  name: deserializeStr(pos + 16),
928
- optional: null,
929
+ optional: !1,
929
930
  typeAnnotation: null,
930
- start: start = deserializeU32(pos),
931
- end: end = deserializeU32(pos + 4),
931
+ start: start = deserializeI32(pos),
932
+ end: end = deserializeI32(pos + 4),
932
933
  range: [start, end],
933
934
  parent
934
935
  };
935
- return node.decorators = [], node.optional = !1, parent = previousParent, node;
936
936
  }
937
937
  function deserializeIdentifierReference(pos) {
938
- let start, end, previousParent = parent, node = parent = {
938
+ let start, end;
939
+ return {
939
940
  __proto__: NodeProto,
940
941
  type: "Identifier",
941
- decorators: null,
942
+ decorators: [],
942
943
  name: deserializeStr(pos + 16),
943
- optional: null,
944
+ optional: !1,
944
945
  typeAnnotation: null,
945
- start: start = deserializeU32(pos),
946
- end: end = deserializeU32(pos + 4),
946
+ start: start = deserializeI32(pos),
947
+ end: end = deserializeI32(pos + 4),
947
948
  range: [start, end],
948
949
  parent
949
950
  };
950
- return node.decorators = [], node.optional = !1, parent = previousParent, node;
951
951
  }
952
952
  function deserializeBindingIdentifier(pos) {
953
- let start, end, previousParent = parent, node = parent = {
953
+ let start, end;
954
+ return {
954
955
  __proto__: NodeProto,
955
956
  type: "Identifier",
956
- decorators: null,
957
+ decorators: [],
957
958
  name: deserializeStr(pos + 16),
958
- optional: null,
959
+ optional: !1,
959
960
  typeAnnotation: null,
960
- start: start = deserializeU32(pos),
961
- end: end = deserializeU32(pos + 4),
961
+ start: start = deserializeI32(pos),
962
+ end: end = deserializeI32(pos + 4),
962
963
  range: [start, end],
963
964
  parent
964
965
  };
965
- return node.decorators = [], node.optional = !1, parent = previousParent, node;
966
966
  }
967
967
  function deserializeLabelIdentifier(pos) {
968
- let start, end, previousParent = parent, node = parent = {
968
+ let start, end;
969
+ return {
969
970
  __proto__: NodeProto,
970
971
  type: "Identifier",
971
- decorators: null,
972
+ decorators: [],
972
973
  name: deserializeStr(pos + 16),
973
- optional: null,
974
+ optional: !1,
974
975
  typeAnnotation: null,
975
- start: start = deserializeU32(pos),
976
- end: end = deserializeU32(pos + 4),
976
+ start: start = deserializeI32(pos),
977
+ end: end = deserializeI32(pos + 4),
977
978
  range: [start, end],
978
979
  parent
979
980
  };
980
- return node.decorators = [], node.optional = !1, parent = previousParent, node;
981
981
  }
982
982
  function deserializeThisExpression(pos) {
983
983
  let start, end;
984
984
  return {
985
985
  __proto__: NodeProto,
986
986
  type: "ThisExpression",
987
- start: start = deserializeU32(pos),
988
- end: end = deserializeU32(pos + 4),
987
+ start: start = deserializeI32(pos),
988
+ end: end = deserializeI32(pos + 4),
989
989
  range: [start, end],
990
990
  parent
991
991
  };
@@ -995,8 +995,8 @@ function deserializeArrayExpression(pos) {
995
995
  __proto__: NodeProto,
996
996
  type: "ArrayExpression",
997
997
  elements: null,
998
- start: start = deserializeU32(pos),
999
- end: end = deserializeU32(pos + 4),
998
+ start: start = deserializeI32(pos),
999
+ end: end = deserializeI32(pos + 4),
1000
1000
  range: [start, end],
1001
1001
  parent
1002
1002
  };
@@ -1060,8 +1060,8 @@ function deserializeObjectExpression(pos) {
1060
1060
  __proto__: NodeProto,
1061
1061
  type: "ObjectExpression",
1062
1062
  properties: null,
1063
- start: start = deserializeU32(pos),
1064
- end: end = deserializeU32(pos + 4),
1063
+ start: start = deserializeI32(pos),
1064
+ end: end = deserializeI32(pos + 4),
1065
1065
  range: [start, end],
1066
1066
  parent
1067
1067
  };
@@ -1084,13 +1084,13 @@ function deserializeObjectProperty(pos) {
1084
1084
  method: deserializeBool(pos + 13),
1085
1085
  shorthand: deserializeBool(pos + 14),
1086
1086
  computed: deserializeBool(pos + 15),
1087
- optional: null,
1088
- start: start = deserializeU32(pos),
1089
- end: end = deserializeU32(pos + 4),
1087
+ optional: !1,
1088
+ start: start = deserializeI32(pos),
1089
+ end: end = deserializeI32(pos + 4),
1090
1090
  range: [start, end],
1091
1091
  parent
1092
1092
  };
1093
- return node.key = deserializePropertyKey(pos + 16), node.value = deserializeExpression(pos + 32), node.optional = !1, parent = previousParent, node;
1093
+ return node.key = deserializePropertyKey(pos + 16), node.value = deserializeExpression(pos + 32), parent = previousParent, node;
1094
1094
  }
1095
1095
  function deserializePropertyKey(pos) {
1096
1096
  switch (uint8[pos]) {
@@ -1156,8 +1156,8 @@ function deserializeTemplateLiteral(pos) {
1156
1156
  type: "TemplateLiteral",
1157
1157
  quasis: null,
1158
1158
  expressions: null,
1159
- start: start = deserializeU32(pos),
1160
- end: end = deserializeU32(pos + 4),
1159
+ start: start = deserializeI32(pos),
1160
+ end: end = deserializeI32(pos + 4),
1161
1161
  range: [start, end],
1162
1162
  parent
1163
1163
  };
@@ -1170,15 +1170,15 @@ function deserializeTaggedTemplateExpression(pos) {
1170
1170
  tag: null,
1171
1171
  typeArguments: null,
1172
1172
  quasi: null,
1173
- start: start = deserializeU32(pos),
1174
- end: end = deserializeU32(pos + 4),
1173
+ start: start = deserializeI32(pos),
1174
+ end: end = deserializeI32(pos + 4),
1175
1175
  range: [start, end],
1176
1176
  parent
1177
1177
  };
1178
1178
  return node.tag = deserializeExpression(pos + 16), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), node.quasi = deserializeTemplateLiteral(pos + 40), parent = previousParent, node;
1179
1179
  }
1180
1180
  function deserializeTemplateElement(pos) {
1181
- let tail = deserializeBool(pos + 12), start = deserializeU32(pos) - 1, end = deserializeU32(pos + 4) + 2 - tail, value = deserializeTemplateElementValue(pos + 16);
1181
+ let tail = deserializeBool(pos + 12), start = deserializeI32(pos) - 1, end = deserializeI32(pos + 4) + 2 - tail, value = deserializeTemplateElementValue(pos + 16);
1182
1182
  return value.cooked !== null && deserializeBool(pos + 13) && (value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => StringFromCodePoint(parseInt(hex, 16)))), {
1183
1183
  __proto__: NodeProto,
1184
1184
  type: "TemplateElement",
@@ -1203,13 +1203,13 @@ function deserializeComputedMemberExpression(pos) {
1203
1203
  object: null,
1204
1204
  property: null,
1205
1205
  optional: deserializeBool(pos + 12),
1206
- computed: null,
1207
- start: start = deserializeU32(pos),
1208
- end: end = deserializeU32(pos + 4),
1206
+ computed: !0,
1207
+ start: start = deserializeI32(pos),
1208
+ end: end = deserializeI32(pos + 4),
1209
1209
  range: [start, end],
1210
1210
  parent
1211
1211
  };
1212
- return node.object = deserializeExpression(pos + 16), node.property = deserializeExpression(pos + 32), node.computed = !0, parent = previousParent, node;
1212
+ return node.object = deserializeExpression(pos + 16), node.property = deserializeExpression(pos + 32), parent = previousParent, node;
1213
1213
  }
1214
1214
  function deserializeStaticMemberExpression(pos) {
1215
1215
  let start, end, previousParent = parent, node = parent = {
@@ -1218,13 +1218,13 @@ function deserializeStaticMemberExpression(pos) {
1218
1218
  object: null,
1219
1219
  property: null,
1220
1220
  optional: deserializeBool(pos + 12),
1221
- computed: null,
1222
- start: start = deserializeU32(pos),
1223
- end: end = deserializeU32(pos + 4),
1221
+ computed: !1,
1222
+ start: start = deserializeI32(pos),
1223
+ end: end = deserializeI32(pos + 4),
1224
1224
  range: [start, end],
1225
1225
  parent
1226
1226
  };
1227
- return node.object = deserializeExpression(pos + 16), node.property = deserializeIdentifierName(pos + 32), node.computed = !1, parent = previousParent, node;
1227
+ return node.object = deserializeExpression(pos + 16), node.property = deserializeIdentifierName(pos + 32), parent = previousParent, node;
1228
1228
  }
1229
1229
  function deserializePrivateFieldExpression(pos) {
1230
1230
  let start, end, previousParent = parent, node = parent = {
@@ -1233,13 +1233,13 @@ function deserializePrivateFieldExpression(pos) {
1233
1233
  object: null,
1234
1234
  property: null,
1235
1235
  optional: deserializeBool(pos + 12),
1236
- computed: null,
1237
- start: start = deserializeU32(pos),
1238
- end: end = deserializeU32(pos + 4),
1236
+ computed: !1,
1237
+ start: start = deserializeI32(pos),
1238
+ end: end = deserializeI32(pos + 4),
1239
1239
  range: [start, end],
1240
1240
  parent
1241
1241
  };
1242
- return node.object = deserializeExpression(pos + 16), node.property = deserializePrivateIdentifier(pos + 32), node.computed = !1, parent = previousParent, node;
1242
+ return node.object = deserializeExpression(pos + 16), node.property = deserializePrivateIdentifier(pos + 32), parent = previousParent, node;
1243
1243
  }
1244
1244
  function deserializeCallExpression(pos) {
1245
1245
  let start, end, previousParent = parent, node = parent = {
@@ -1249,8 +1249,8 @@ function deserializeCallExpression(pos) {
1249
1249
  typeArguments: null,
1250
1250
  arguments: null,
1251
1251
  optional: deserializeBool(pos + 12),
1252
- start: start = deserializeU32(pos),
1253
- end: end = deserializeU32(pos + 4),
1252
+ start: start = deserializeI32(pos),
1253
+ end: end = deserializeI32(pos + 4),
1254
1254
  range: [start, end],
1255
1255
  parent
1256
1256
  };
@@ -1263,8 +1263,8 @@ function deserializeNewExpression(pos) {
1263
1263
  callee: null,
1264
1264
  typeArguments: null,
1265
1265
  arguments: null,
1266
- start: start = deserializeU32(pos),
1267
- end: end = deserializeU32(pos + 4),
1266
+ start: start = deserializeI32(pos),
1267
+ end: end = deserializeI32(pos + 4),
1268
1268
  range: [start, end],
1269
1269
  parent
1270
1270
  };
@@ -1276,8 +1276,8 @@ function deserializeMetaProperty(pos) {
1276
1276
  type: "MetaProperty",
1277
1277
  meta: null,
1278
1278
  property: null,
1279
- start: start = deserializeU32(pos),
1280
- end: end = deserializeU32(pos + 4),
1279
+ start: start = deserializeI32(pos),
1280
+ end: end = deserializeI32(pos + 4),
1281
1281
  range: [start, end],
1282
1282
  parent
1283
1283
  };
@@ -1288,8 +1288,8 @@ function deserializeSpreadElement(pos) {
1288
1288
  __proto__: NodeProto,
1289
1289
  type: "SpreadElement",
1290
1290
  argument: null,
1291
- start: start = deserializeU32(pos),
1292
- end: end = deserializeU32(pos + 4),
1291
+ start: start = deserializeI32(pos),
1292
+ end: end = deserializeI32(pos + 4),
1293
1293
  range: [start, end],
1294
1294
  parent
1295
1295
  };
@@ -1351,8 +1351,8 @@ function deserializeUpdateExpression(pos) {
1351
1351
  operator: deserializeUpdateOperator(pos + 12),
1352
1352
  prefix: deserializeBool(pos + 13),
1353
1353
  argument: null,
1354
- start: start = deserializeU32(pos),
1355
- end: end = deserializeU32(pos + 4),
1354
+ start: start = deserializeI32(pos),
1355
+ end: end = deserializeI32(pos + 4),
1356
1356
  range: [start, end],
1357
1357
  parent
1358
1358
  };
@@ -1364,13 +1364,13 @@ function deserializeUnaryExpression(pos) {
1364
1364
  type: "UnaryExpression",
1365
1365
  operator: deserializeUnaryOperator(pos + 12),
1366
1366
  argument: null,
1367
- prefix: null,
1368
- start: start = deserializeU32(pos),
1369
- end: end = deserializeU32(pos + 4),
1367
+ prefix: !0,
1368
+ start: start = deserializeI32(pos),
1369
+ end: end = deserializeI32(pos + 4),
1370
1370
  range: [start, end],
1371
1371
  parent
1372
1372
  };
1373
- return node.argument = deserializeExpression(pos + 16), node.prefix = !0, parent = previousParent, node;
1373
+ return node.argument = deserializeExpression(pos + 16), parent = previousParent, node;
1374
1374
  }
1375
1375
  function deserializeBinaryExpression(pos) {
1376
1376
  let start, end, previousParent = parent, node = parent = {
@@ -1379,8 +1379,8 @@ function deserializeBinaryExpression(pos) {
1379
1379
  left: null,
1380
1380
  operator: deserializeBinaryOperator(pos + 12),
1381
1381
  right: null,
1382
- start: start = deserializeU32(pos),
1383
- end: end = deserializeU32(pos + 4),
1382
+ start: start = deserializeI32(pos),
1383
+ end: end = deserializeI32(pos + 4),
1384
1384
  range: [start, end],
1385
1385
  parent
1386
1386
  };
@@ -1391,14 +1391,14 @@ function deserializePrivateInExpression(pos) {
1391
1391
  __proto__: NodeProto,
1392
1392
  type: "BinaryExpression",
1393
1393
  left: null,
1394
- operator: null,
1394
+ operator: "in",
1395
1395
  right: null,
1396
- start: start = deserializeU32(pos),
1397
- end: end = deserializeU32(pos + 4),
1396
+ start: start = deserializeI32(pos),
1397
+ end: end = deserializeI32(pos + 4),
1398
1398
  range: [start, end],
1399
1399
  parent
1400
1400
  };
1401
- return node.left = deserializePrivateIdentifier(pos + 16), node.operator = "in", node.right = deserializeExpression(pos + 48), parent = previousParent, node;
1401
+ return node.left = deserializePrivateIdentifier(pos + 16), node.right = deserializeExpression(pos + 48), parent = previousParent, node;
1402
1402
  }
1403
1403
  function deserializeLogicalExpression(pos) {
1404
1404
  let start, end, previousParent = parent, node = parent = {
@@ -1407,8 +1407,8 @@ function deserializeLogicalExpression(pos) {
1407
1407
  left: null,
1408
1408
  operator: deserializeLogicalOperator(pos + 12),
1409
1409
  right: null,
1410
- start: start = deserializeU32(pos),
1411
- end: end = deserializeU32(pos + 4),
1410
+ start: start = deserializeI32(pos),
1411
+ end: end = deserializeI32(pos + 4),
1412
1412
  range: [start, end],
1413
1413
  parent
1414
1414
  };
@@ -1421,8 +1421,8 @@ function deserializeConditionalExpression(pos) {
1421
1421
  test: null,
1422
1422
  consequent: null,
1423
1423
  alternate: null,
1424
- start: start = deserializeU32(pos),
1425
- end: end = deserializeU32(pos + 4),
1424
+ start: start = deserializeI32(pos),
1425
+ end: end = deserializeI32(pos + 4),
1426
1426
  range: [start, end],
1427
1427
  parent
1428
1428
  };
@@ -1435,8 +1435,8 @@ function deserializeAssignmentExpression(pos) {
1435
1435
  operator: deserializeAssignmentOperator(pos + 12),
1436
1436
  left: null,
1437
1437
  right: null,
1438
- start: start = deserializeU32(pos),
1439
- end: end = deserializeU32(pos + 4),
1438
+ start: start = deserializeI32(pos),
1439
+ end: end = deserializeI32(pos + 4),
1440
1440
  range: [start, end],
1441
1441
  parent
1442
1442
  };
@@ -1474,47 +1474,47 @@ function deserializeArrayAssignmentTarget(pos) {
1474
1474
  let start, end, previousParent = parent, node = parent = {
1475
1475
  __proto__: NodeProto,
1476
1476
  type: "ArrayPattern",
1477
- decorators: null,
1477
+ decorators: [],
1478
1478
  elements: null,
1479
- optional: null,
1479
+ optional: !1,
1480
1480
  typeAnnotation: null,
1481
- start: start = deserializeU32(pos),
1482
- end: end = deserializeU32(pos + 4),
1481
+ start: start = deserializeI32(pos),
1482
+ end: end = deserializeI32(pos + 4),
1483
1483
  range: [start, end],
1484
1484
  parent
1485
1485
  }, elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 16), rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
1486
- return rest !== null && elements.push(rest), node.decorators = [], node.elements = elements, node.optional = !1, parent = previousParent, node;
1486
+ return rest !== null && elements.push(rest), node.elements = elements, parent = previousParent, node;
1487
1487
  }
1488
1488
  function deserializeObjectAssignmentTarget(pos) {
1489
1489
  let start, end, previousParent = parent, node = parent = {
1490
1490
  __proto__: NodeProto,
1491
1491
  type: "ObjectPattern",
1492
- decorators: null,
1492
+ decorators: [],
1493
1493
  properties: null,
1494
- optional: null,
1494
+ optional: !1,
1495
1495
  typeAnnotation: null,
1496
- start: start = deserializeU32(pos),
1497
- end: end = deserializeU32(pos + 4),
1496
+ start: start = deserializeI32(pos),
1497
+ end: end = deserializeI32(pos + 4),
1498
1498
  range: [start, end],
1499
1499
  parent
1500
1500
  }, properties = deserializeVecAssignmentTargetProperty(pos + 16), rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
1501
- return rest !== null && properties.push(rest), node.decorators = [], node.properties = properties, node.optional = !1, parent = previousParent, node;
1501
+ return rest !== null && properties.push(rest), node.properties = properties, parent = previousParent, node;
1502
1502
  }
1503
1503
  function deserializeAssignmentTargetRest(pos) {
1504
1504
  let start, end, previousParent = parent, node = parent = {
1505
1505
  __proto__: NodeProto,
1506
1506
  type: "RestElement",
1507
- decorators: null,
1507
+ decorators: [],
1508
1508
  argument: null,
1509
- optional: null,
1509
+ optional: !1,
1510
1510
  typeAnnotation: null,
1511
1511
  value: null,
1512
- start: start = deserializeU32(pos),
1513
- end: end = deserializeU32(pos + 4),
1512
+ start: start = deserializeI32(pos),
1513
+ end: end = deserializeI32(pos + 4),
1514
1514
  range: [start, end],
1515
1515
  parent
1516
1516
  };
1517
- return node.decorators = [], node.argument = deserializeAssignmentTarget(pos + 16), node.optional = !1, parent = previousParent, node;
1517
+ return node.argument = deserializeAssignmentTarget(pos + 16), parent = previousParent, node;
1518
1518
  }
1519
1519
  function deserializeAssignmentTargetMaybeDefault(pos) {
1520
1520
  switch (uint8[pos]) {
@@ -1536,17 +1536,17 @@ function deserializeAssignmentTargetWithDefault(pos) {
1536
1536
  let start, end, previousParent = parent, node = parent = {
1537
1537
  __proto__: NodeProto,
1538
1538
  type: "AssignmentPattern",
1539
- decorators: null,
1539
+ decorators: [],
1540
1540
  left: null,
1541
1541
  right: null,
1542
- optional: null,
1542
+ optional: !1,
1543
1543
  typeAnnotation: null,
1544
- start: start = deserializeU32(pos),
1545
- end: end = deserializeU32(pos + 4),
1544
+ start: start = deserializeI32(pos),
1545
+ end: end = deserializeI32(pos + 4),
1546
1546
  range: [start, end],
1547
1547
  parent
1548
1548
  };
1549
- return node.decorators = [], node.left = deserializeAssignmentTarget(pos + 16), node.right = deserializeExpression(pos + 32), node.optional = !1, parent = previousParent, node;
1549
+ return node.left = deserializeAssignmentTarget(pos + 16), node.right = deserializeExpression(pos + 32), parent = previousParent, node;
1550
1550
  }
1551
1551
  function deserializeAssignmentTargetProperty(pos) {
1552
1552
  switch (uint8[pos]) {
@@ -1556,16 +1556,16 @@ function deserializeAssignmentTargetProperty(pos) {
1556
1556
  }
1557
1557
  }
1558
1558
  function deserializeAssignmentTargetPropertyIdentifier(pos) {
1559
- let start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
1559
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4), previousParent = parent, node = parent = {
1560
1560
  __proto__: NodeProto,
1561
1561
  type: "Property",
1562
- kind: null,
1562
+ kind: "init",
1563
1563
  key: null,
1564
1564
  value: null,
1565
- method: null,
1566
- shorthand: null,
1567
- computed: null,
1568
- optional: null,
1565
+ method: !1,
1566
+ shorthand: !0,
1567
+ computed: !1,
1568
+ optional: !1,
1569
1569
  start,
1570
1570
  end,
1571
1571
  range: [start, end],
@@ -1598,33 +1598,33 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
1598
1598
  parent
1599
1599
  }, left.parent = value, init.parent = value;
1600
1600
  }
1601
- return node.kind = "init", node.key = key, node.value = value, node.method = !1, node.shorthand = !0, node.computed = !1, node.optional = !1, parent = previousParent, node;
1601
+ return node.key = key, node.value = value, parent = previousParent, node;
1602
1602
  }
1603
1603
  function deserializeAssignmentTargetPropertyProperty(pos) {
1604
1604
  let start, end, previousParent = parent, node = parent = {
1605
1605
  __proto__: NodeProto,
1606
1606
  type: "Property",
1607
- kind: null,
1607
+ kind: "init",
1608
1608
  key: null,
1609
1609
  value: null,
1610
- method: null,
1611
- shorthand: null,
1610
+ method: !1,
1611
+ shorthand: !1,
1612
1612
  computed: deserializeBool(pos + 12),
1613
- optional: null,
1614
- start: start = deserializeU32(pos),
1615
- end: end = deserializeU32(pos + 4),
1613
+ optional: !1,
1614
+ start: start = deserializeI32(pos),
1615
+ end: end = deserializeI32(pos + 4),
1616
1616
  range: [start, end],
1617
1617
  parent
1618
1618
  };
1619
- return node.kind = "init", node.key = deserializePropertyKey(pos + 16), node.value = deserializeAssignmentTargetMaybeDefault(pos + 32), node.method = !1, node.shorthand = !1, node.optional = !1, parent = previousParent, node;
1619
+ return node.key = deserializePropertyKey(pos + 16), node.value = deserializeAssignmentTargetMaybeDefault(pos + 32), parent = previousParent, node;
1620
1620
  }
1621
1621
  function deserializeSequenceExpression(pos) {
1622
1622
  let start, end, previousParent = parent, node = parent = {
1623
1623
  __proto__: NodeProto,
1624
1624
  type: "SequenceExpression",
1625
1625
  expressions: null,
1626
- start: start = deserializeU32(pos),
1627
- end: end = deserializeU32(pos + 4),
1626
+ start: start = deserializeI32(pos),
1627
+ end: end = deserializeI32(pos + 4),
1628
1628
  range: [start, end],
1629
1629
  parent
1630
1630
  };
@@ -1635,8 +1635,8 @@ function deserializeSuper(pos) {
1635
1635
  return {
1636
1636
  __proto__: NodeProto,
1637
1637
  type: "Super",
1638
- start: start = deserializeU32(pos),
1639
- end: end = deserializeU32(pos + 4),
1638
+ start: start = deserializeI32(pos),
1639
+ end: end = deserializeI32(pos + 4),
1640
1640
  range: [start, end],
1641
1641
  parent
1642
1642
  };
@@ -1646,8 +1646,8 @@ function deserializeAwaitExpression(pos) {
1646
1646
  __proto__: NodeProto,
1647
1647
  type: "AwaitExpression",
1648
1648
  argument: null,
1649
- start: start = deserializeU32(pos),
1650
- end: end = deserializeU32(pos + 4),
1649
+ start: start = deserializeI32(pos),
1650
+ end: end = deserializeI32(pos + 4),
1651
1651
  range: [start, end],
1652
1652
  parent
1653
1653
  };
@@ -1658,8 +1658,8 @@ function deserializeChainExpression(pos) {
1658
1658
  __proto__: NodeProto,
1659
1659
  type: "ChainExpression",
1660
1660
  expression: null,
1661
- start: start = deserializeU32(pos),
1662
- end: end = deserializeU32(pos + 4),
1661
+ start: start = deserializeI32(pos),
1662
+ end: end = deserializeI32(pos + 4),
1663
1663
  range: [start, end],
1664
1664
  parent
1665
1665
  };
@@ -1723,8 +1723,8 @@ function deserializeDirective(pos) {
1723
1723
  type: "ExpressionStatement",
1724
1724
  expression: null,
1725
1725
  directive: deserializeStr(pos + 64),
1726
- start: start = deserializeU32(pos),
1727
- end: end = deserializeU32(pos + 4),
1726
+ start: start = deserializeI32(pos),
1727
+ end: end = deserializeI32(pos + 4),
1728
1728
  range: [start, end],
1729
1729
  parent
1730
1730
  };
@@ -1735,8 +1735,8 @@ function deserializeBlockStatement(pos) {
1735
1735
  __proto__: NodeProto,
1736
1736
  type: "BlockStatement",
1737
1737
  body: null,
1738
- start: start = deserializeU32(pos),
1739
- end: end = deserializeU32(pos + 4),
1738
+ start: start = deserializeI32(pos),
1739
+ end: end = deserializeI32(pos + 4),
1740
1740
  range: [start, end],
1741
1741
  parent
1742
1742
  };
@@ -1763,8 +1763,8 @@ function deserializeVariableDeclaration(pos) {
1763
1763
  kind: deserializeVariableDeclarationKind(pos + 12),
1764
1764
  declarations: null,
1765
1765
  declare: deserializeBool(pos + 13),
1766
- start: start = deserializeU32(pos),
1767
- end: end = deserializeU32(pos + 4),
1766
+ start: start = deserializeI32(pos),
1767
+ end: end = deserializeI32(pos + 4),
1768
1768
  range: [start, end],
1769
1769
  parent
1770
1770
  };
@@ -1787,8 +1787,8 @@ function deserializeVariableDeclarator(pos) {
1787
1787
  id: null,
1788
1788
  init: null,
1789
1789
  definite: deserializeBool(pos + 13),
1790
- start: start = deserializeU32(pos),
1791
- end: end = deserializeU32(pos + 4),
1790
+ start: start = deserializeI32(pos),
1791
+ end: end = deserializeI32(pos + 4),
1792
1792
  range: [start, end],
1793
1793
  parent
1794
1794
  }, pattern = deserializeBindingPattern(pos + 16);
@@ -1805,8 +1805,8 @@ function deserializeEmptyStatement(pos) {
1805
1805
  return {
1806
1806
  __proto__: NodeProto,
1807
1807
  type: "EmptyStatement",
1808
- start: start = deserializeU32(pos),
1809
- end: end = deserializeU32(pos + 4),
1808
+ start: start = deserializeI32(pos),
1809
+ end: end = deserializeI32(pos + 4),
1810
1810
  range: [start, end],
1811
1811
  parent
1812
1812
  };
@@ -1817,8 +1817,8 @@ function deserializeExpressionStatement(pos) {
1817
1817
  type: "ExpressionStatement",
1818
1818
  expression: null,
1819
1819
  directive: null,
1820
- start: start = deserializeU32(pos),
1821
- end: end = deserializeU32(pos + 4),
1820
+ start: start = deserializeI32(pos),
1821
+ end: end = deserializeI32(pos + 4),
1822
1822
  range: [start, end],
1823
1823
  parent
1824
1824
  };
@@ -1831,8 +1831,8 @@ function deserializeIfStatement(pos) {
1831
1831
  test: null,
1832
1832
  consequent: null,
1833
1833
  alternate: null,
1834
- start: start = deserializeU32(pos),
1835
- end: end = deserializeU32(pos + 4),
1834
+ start: start = deserializeI32(pos),
1835
+ end: end = deserializeI32(pos + 4),
1836
1836
  range: [start, end],
1837
1837
  parent
1838
1838
  };
@@ -1844,8 +1844,8 @@ function deserializeDoWhileStatement(pos) {
1844
1844
  type: "DoWhileStatement",
1845
1845
  body: null,
1846
1846
  test: null,
1847
- start: start = deserializeU32(pos),
1848
- end: end = deserializeU32(pos + 4),
1847
+ start: start = deserializeI32(pos),
1848
+ end: end = deserializeI32(pos + 4),
1849
1849
  range: [start, end],
1850
1850
  parent
1851
1851
  };
@@ -1857,8 +1857,8 @@ function deserializeWhileStatement(pos) {
1857
1857
  type: "WhileStatement",
1858
1858
  test: null,
1859
1859
  body: null,
1860
- start: start = deserializeU32(pos),
1861
- end: end = deserializeU32(pos + 4),
1860
+ start: start = deserializeI32(pos),
1861
+ end: end = deserializeI32(pos + 4),
1862
1862
  range: [start, end],
1863
1863
  parent
1864
1864
  };
@@ -1872,8 +1872,8 @@ function deserializeForStatement(pos) {
1872
1872
  test: null,
1873
1873
  update: null,
1874
1874
  body: null,
1875
- start: start = deserializeU32(pos),
1876
- end: end = deserializeU32(pos + 4),
1875
+ start: start = deserializeI32(pos),
1876
+ end: end = deserializeI32(pos + 4),
1877
1877
  range: [start, end],
1878
1878
  parent
1879
1879
  };
@@ -1935,8 +1935,8 @@ function deserializeForInStatement(pos) {
1935
1935
  left: null,
1936
1936
  right: null,
1937
1937
  body: null,
1938
- start: start = deserializeU32(pos),
1939
- end: end = deserializeU32(pos + 4),
1938
+ start: start = deserializeI32(pos),
1939
+ end: end = deserializeI32(pos + 4),
1940
1940
  range: [start, end],
1941
1941
  parent
1942
1942
  };
@@ -1966,8 +1966,8 @@ function deserializeForOfStatement(pos) {
1966
1966
  left: null,
1967
1967
  right: null,
1968
1968
  body: null,
1969
- start: start = deserializeU32(pos),
1970
- end: end = deserializeU32(pos + 4),
1969
+ start: start = deserializeI32(pos),
1970
+ end: end = deserializeI32(pos + 4),
1971
1971
  range: [start, end],
1972
1972
  parent
1973
1973
  };
@@ -1978,8 +1978,8 @@ function deserializeContinueStatement(pos) {
1978
1978
  __proto__: NodeProto,
1979
1979
  type: "ContinueStatement",
1980
1980
  label: null,
1981
- start: start = deserializeU32(pos),
1982
- end: end = deserializeU32(pos + 4),
1981
+ start: start = deserializeI32(pos),
1982
+ end: end = deserializeI32(pos + 4),
1983
1983
  range: [start, end],
1984
1984
  parent
1985
1985
  };
@@ -1990,8 +1990,8 @@ function deserializeBreakStatement(pos) {
1990
1990
  __proto__: NodeProto,
1991
1991
  type: "BreakStatement",
1992
1992
  label: null,
1993
- start: start = deserializeU32(pos),
1994
- end: end = deserializeU32(pos + 4),
1993
+ start: start = deserializeI32(pos),
1994
+ end: end = deserializeI32(pos + 4),
1995
1995
  range: [start, end],
1996
1996
  parent
1997
1997
  };
@@ -2002,8 +2002,8 @@ function deserializeReturnStatement(pos) {
2002
2002
  __proto__: NodeProto,
2003
2003
  type: "ReturnStatement",
2004
2004
  argument: null,
2005
- start: start = deserializeU32(pos),
2006
- end: end = deserializeU32(pos + 4),
2005
+ start: start = deserializeI32(pos),
2006
+ end: end = deserializeI32(pos + 4),
2007
2007
  range: [start, end],
2008
2008
  parent
2009
2009
  };
@@ -2015,8 +2015,8 @@ function deserializeWithStatement(pos) {
2015
2015
  type: "WithStatement",
2016
2016
  object: null,
2017
2017
  body: null,
2018
- start: start = deserializeU32(pos),
2019
- end: end = deserializeU32(pos + 4),
2018
+ start: start = deserializeI32(pos),
2019
+ end: end = deserializeI32(pos + 4),
2020
2020
  range: [start, end],
2021
2021
  parent
2022
2022
  };
@@ -2028,8 +2028,8 @@ function deserializeSwitchStatement(pos) {
2028
2028
  type: "SwitchStatement",
2029
2029
  discriminant: null,
2030
2030
  cases: null,
2031
- start: start = deserializeU32(pos),
2032
- end: end = deserializeU32(pos + 4),
2031
+ start: start = deserializeI32(pos),
2032
+ end: end = deserializeI32(pos + 4),
2033
2033
  range: [start, end],
2034
2034
  parent
2035
2035
  };
@@ -2041,8 +2041,8 @@ function deserializeSwitchCase(pos) {
2041
2041
  type: "SwitchCase",
2042
2042
  test: null,
2043
2043
  consequent: null,
2044
- start: start = deserializeU32(pos),
2045
- end: end = deserializeU32(pos + 4),
2044
+ start: start = deserializeI32(pos),
2045
+ end: end = deserializeI32(pos + 4),
2046
2046
  range: [start, end],
2047
2047
  parent
2048
2048
  };
@@ -2054,8 +2054,8 @@ function deserializeLabeledStatement(pos) {
2054
2054
  type: "LabeledStatement",
2055
2055
  label: null,
2056
2056
  body: null,
2057
- start: start = deserializeU32(pos),
2058
- end: end = deserializeU32(pos + 4),
2057
+ start: start = deserializeI32(pos),
2058
+ end: end = deserializeI32(pos + 4),
2059
2059
  range: [start, end],
2060
2060
  parent
2061
2061
  };
@@ -2066,8 +2066,8 @@ function deserializeThrowStatement(pos) {
2066
2066
  __proto__: NodeProto,
2067
2067
  type: "ThrowStatement",
2068
2068
  argument: null,
2069
- start: start = deserializeU32(pos),
2070
- end: end = deserializeU32(pos + 4),
2069
+ start: start = deserializeI32(pos),
2070
+ end: end = deserializeI32(pos + 4),
2071
2071
  range: [start, end],
2072
2072
  parent
2073
2073
  };
@@ -2080,8 +2080,8 @@ function deserializeTryStatement(pos) {
2080
2080
  block: null,
2081
2081
  handler: null,
2082
2082
  finalizer: null,
2083
- start: start = deserializeU32(pos),
2084
- end: end = deserializeU32(pos + 4),
2083
+ start: start = deserializeI32(pos),
2084
+ end: end = deserializeI32(pos + 4),
2085
2085
  range: [start, end],
2086
2086
  parent
2087
2087
  };
@@ -2093,8 +2093,8 @@ function deserializeCatchClause(pos) {
2093
2093
  type: "CatchClause",
2094
2094
  param: null,
2095
2095
  body: null,
2096
- start: start = deserializeU32(pos),
2097
- end: end = deserializeU32(pos + 4),
2096
+ start: start = deserializeI32(pos),
2097
+ end: end = deserializeI32(pos + 4),
2098
2098
  range: [start, end],
2099
2099
  parent
2100
2100
  };
@@ -2114,8 +2114,8 @@ function deserializeDebuggerStatement(pos) {
2114
2114
  return {
2115
2115
  __proto__: NodeProto,
2116
2116
  type: "DebuggerStatement",
2117
- start: start = deserializeU32(pos),
2118
- end: end = deserializeU32(pos + 4),
2117
+ start: start = deserializeI32(pos),
2118
+ end: end = deserializeI32(pos + 4),
2119
2119
  range: [start, end],
2120
2120
  parent
2121
2121
  };
@@ -2133,81 +2133,81 @@ function deserializeAssignmentPattern(pos) {
2133
2133
  let start, end, previousParent = parent, node = parent = {
2134
2134
  __proto__: NodeProto,
2135
2135
  type: "AssignmentPattern",
2136
- decorators: null,
2136
+ decorators: [],
2137
2137
  left: null,
2138
2138
  right: null,
2139
- optional: null,
2139
+ optional: !1,
2140
2140
  typeAnnotation: null,
2141
- start: start = deserializeU32(pos),
2142
- end: end = deserializeU32(pos + 4),
2141
+ start: start = deserializeI32(pos),
2142
+ end: end = deserializeI32(pos + 4),
2143
2143
  range: [start, end],
2144
2144
  parent
2145
2145
  };
2146
- return node.decorators = [], node.left = deserializeBindingPattern(pos + 16), node.right = deserializeExpression(pos + 32), node.optional = !1, parent = previousParent, node;
2146
+ return node.left = deserializeBindingPattern(pos + 16), node.right = deserializeExpression(pos + 32), parent = previousParent, node;
2147
2147
  }
2148
2148
  function deserializeObjectPattern(pos) {
2149
2149
  let start, end, previousParent = parent, node = parent = {
2150
2150
  __proto__: NodeProto,
2151
2151
  type: "ObjectPattern",
2152
- decorators: null,
2152
+ decorators: [],
2153
2153
  properties: null,
2154
- optional: null,
2154
+ optional: !1,
2155
2155
  typeAnnotation: null,
2156
- start: start = deserializeU32(pos),
2157
- end: end = deserializeU32(pos + 4),
2156
+ start: start = deserializeI32(pos),
2157
+ end: end = deserializeI32(pos + 4),
2158
2158
  range: [start, end],
2159
2159
  parent
2160
2160
  }, properties = deserializeVecBindingProperty(pos + 16), rest = deserializeOptionBoxBindingRestElement(pos + 40);
2161
- return rest !== null && properties.push(rest), node.decorators = [], node.properties = properties, node.optional = !1, parent = previousParent, node;
2161
+ return rest !== null && properties.push(rest), node.properties = properties, parent = previousParent, node;
2162
2162
  }
2163
2163
  function deserializeBindingProperty(pos) {
2164
2164
  let start, end, previousParent = parent, node = parent = {
2165
2165
  __proto__: NodeProto,
2166
2166
  type: "Property",
2167
- kind: null,
2167
+ kind: "init",
2168
2168
  key: null,
2169
2169
  value: null,
2170
- method: null,
2170
+ method: !1,
2171
2171
  shorthand: deserializeBool(pos + 12),
2172
2172
  computed: deserializeBool(pos + 13),
2173
- optional: null,
2174
- start: start = deserializeU32(pos),
2175
- end: end = deserializeU32(pos + 4),
2173
+ optional: !1,
2174
+ start: start = deserializeI32(pos),
2175
+ end: end = deserializeI32(pos + 4),
2176
2176
  range: [start, end],
2177
2177
  parent
2178
2178
  };
2179
- return node.kind = "init", node.key = deserializePropertyKey(pos + 16), node.value = deserializeBindingPattern(pos + 32), node.method = !1, node.optional = !1, parent = previousParent, node;
2179
+ return node.key = deserializePropertyKey(pos + 16), node.value = deserializeBindingPattern(pos + 32), parent = previousParent, node;
2180
2180
  }
2181
2181
  function deserializeArrayPattern(pos) {
2182
2182
  let start, end, previousParent = parent, node = parent = {
2183
2183
  __proto__: NodeProto,
2184
2184
  type: "ArrayPattern",
2185
- decorators: null,
2185
+ decorators: [],
2186
2186
  elements: null,
2187
- optional: null,
2187
+ optional: !1,
2188
2188
  typeAnnotation: null,
2189
- start: start = deserializeU32(pos),
2190
- end: end = deserializeU32(pos + 4),
2189
+ start: start = deserializeI32(pos),
2190
+ end: end = deserializeI32(pos + 4),
2191
2191
  range: [start, end],
2192
2192
  parent
2193
2193
  }, elements = deserializeVecOptionBindingPattern(pos + 16), rest = deserializeOptionBoxBindingRestElement(pos + 40);
2194
- return rest !== null && elements.push(rest), node.decorators = [], node.elements = elements, node.optional = !1, parent = previousParent, node;
2194
+ return rest !== null && elements.push(rest), node.elements = elements, parent = previousParent, node;
2195
2195
  }
2196
2196
  function deserializeBindingRestElement(pos) {
2197
2197
  let start, end, previousParent = parent, node = parent = {
2198
2198
  __proto__: NodeProto,
2199
2199
  type: "RestElement",
2200
- decorators: null,
2200
+ decorators: [],
2201
2201
  argument: null,
2202
- optional: null,
2202
+ optional: !1,
2203
2203
  typeAnnotation: null,
2204
2204
  value: null,
2205
- start: start = deserializeU32(pos),
2206
- end: end = deserializeU32(pos + 4),
2205
+ start: start = deserializeI32(pos),
2206
+ end: end = deserializeI32(pos + 4),
2207
2207
  range: [start, end],
2208
2208
  parent
2209
2209
  };
2210
- return node.decorators = [], node.argument = deserializeBindingPattern(pos + 16), node.optional = !1, parent = previousParent, node;
2210
+ return node.argument = deserializeBindingPattern(pos + 16), parent = previousParent, node;
2211
2211
  }
2212
2212
  function deserializeFunction(pos) {
2213
2213
  let start, end, previousParent = parent, node = parent = {
@@ -2221,9 +2221,9 @@ function deserializeFunction(pos) {
2221
2221
  params: null,
2222
2222
  returnType: null,
2223
2223
  body: null,
2224
- expression: null,
2225
- start: start = deserializeU32(pos),
2226
- end: end = deserializeU32(pos + 4),
2224
+ expression: !1,
2225
+ start: start = deserializeI32(pos),
2226
+ end: end = deserializeI32(pos + 4),
2227
2227
  range: [start, end],
2228
2228
  parent
2229
2229
  }, params = deserializeBoxFormalParameters(pos + 64);
@@ -2231,7 +2231,7 @@ function deserializeFunction(pos) {
2231
2231
  let thisParam = deserializeOptionBoxTSThisParameter(pos + 56);
2232
2232
  thisParam !== null && params.unshift(thisParam);
2233
2233
  }
2234
- return node.id = deserializeOptionBindingIdentifier(pos + 16), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48), node.params = params, node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 72), node.body = deserializeOptionBoxFunctionBody(pos + 80), node.expression = !1, parent = previousParent, node;
2234
+ return node.id = deserializeOptionBindingIdentifier(pos + 16), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48), node.params = params, node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 72), node.body = deserializeOptionBoxFunctionBody(pos + 80), parent = previousParent, node;
2235
2235
  }
2236
2236
  function deserializeFunctionType(pos) {
2237
2237
  switch (uint8[pos]) {
@@ -2243,9 +2243,9 @@ function deserializeFunctionType(pos) {
2243
2243
  }
2244
2244
  }
2245
2245
  function deserializeFormalParameters(pos) {
2246
- let params = deserializeVecFormalParameter(pos + 16);
2247
- if (uint32[pos + 40 >> 2] !== 0 && uint32[pos + 44 >> 2] !== 0) {
2248
- pos = uint32[pos + 40 >> 2];
2246
+ let params = deserializeVecFormalParameter(pos + 16), restFieldPos32 = (pos >> 2) + 10;
2247
+ if (int32[restFieldPos32] !== 0 && int32[restFieldPos32 + 1] !== 0) {
2248
+ pos = int32[restFieldPos32];
2249
2249
  let start, end, previousParent = parent, rest = parent = {
2250
2250
  __proto__: NodeProto,
2251
2251
  type: "RestElement",
@@ -2254,8 +2254,8 @@ function deserializeFormalParameters(pos) {
2254
2254
  optional: !1,
2255
2255
  typeAnnotation: null,
2256
2256
  value: null,
2257
- start: start = deserializeU32(pos + 40),
2258
- end: end = deserializeU32(pos + 44),
2257
+ start: start = deserializeI32(pos + 40),
2258
+ end: end = deserializeI32(pos + 44),
2259
2259
  range: [start, end],
2260
2260
  parent: previousParent
2261
2261
  };
@@ -2264,7 +2264,7 @@ function deserializeFormalParameters(pos) {
2264
2264
  return params;
2265
2265
  }
2266
2266
  function deserializeFormalParameter(pos) {
2267
- let param, previousParent = parent, hasInitializer = uint32[pos + 64 >> 2] !== 0 && uint32[pos + 68 >> 2] !== 0;
2267
+ let param, previousParent = parent, initializerFieldPos32 = (pos >> 2) + 16, hasInitializer = int32[initializerFieldPos32] !== 0 && int32[initializerFieldPos32 + 1] !== 0;
2268
2268
  {
2269
2269
  let accessibility = deserializeOptionTSAccessibility(pos + 13), readonly = deserializeBool(pos + 14), override = deserializeBool(pos + 15);
2270
2270
  if (accessibility === null && !readonly && !override) {
@@ -2279,8 +2279,8 @@ function deserializeFormalParameter(pos) {
2279
2279
  right: null,
2280
2280
  optional,
2281
2281
  typeAnnotation: null,
2282
- start: start = deserializeU32(pos),
2283
- end: end = deserializeU32(pos + 4),
2282
+ start: start = deserializeI32(pos),
2283
+ end: end = deserializeI32(pos + 4),
2284
2284
  range: [start, end],
2285
2285
  parent: previousParent
2286
2286
  }, param.decorators = deserializeVecDecorator(pos + 16), param.left = deserializeBindingPattern(pos + 40), param.left.decorators = [], param.left.optional = !1, parent = param.left;
@@ -2289,7 +2289,7 @@ function deserializeFormalParameter(pos) {
2289
2289
  } else {
2290
2290
  param = deserializeBindingPattern(pos + 40), param.parent = previousParent, parent = param, param.decorators = deserializeVecDecorator(pos + 16), param.optional = optional;
2291
2291
  let typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56);
2292
- param.typeAnnotation = typeAnnotation, typeAnnotation === null ? optional && (param.end = deserializeU32(pos + 4), param.range[1] = deserializeU32(pos + 4)) : (param.end = typeAnnotation.end, param.range[1] = typeAnnotation.end), parent = previousParent;
2292
+ param.typeAnnotation = typeAnnotation, typeAnnotation === null ? optional && (param.end = deserializeI32(pos + 4), param.range[1] = deserializeI32(pos + 4)) : (param.end = typeAnnotation.end, param.range[1] = typeAnnotation.end), parent = previousParent;
2293
2293
  }
2294
2294
  } else {
2295
2295
  let start, end;
@@ -2302,8 +2302,8 @@ function deserializeFormalParameter(pos) {
2302
2302
  parameter: null,
2303
2303
  readonly,
2304
2304
  static: !1,
2305
- start: start = deserializeU32(pos),
2306
- end: end = deserializeU32(pos + 4),
2305
+ start: start = deserializeI32(pos),
2306
+ end: end = deserializeI32(pos + 4),
2307
2307
  range: [start, end],
2308
2308
  parent: previousParent
2309
2309
  }, param.decorators = deserializeVecDecorator(pos + 16), hasInitializer) {
@@ -2330,7 +2330,7 @@ function deserializeFormalParameter(pos) {
2330
2330
  let paramTypeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56);
2331
2331
  if (param.parameter.typeAnnotation = paramTypeAnnotation, paramTypeAnnotation !== null) param.parameter.end = paramTypeAnnotation.end, param.parameter.range[1] = paramTypeAnnotation.end;
2332
2332
  else if (paramOptional) {
2333
- let paramEnd = deserializeU32(pos + 4);
2333
+ let paramEnd = deserializeI32(pos + 4);
2334
2334
  param.parameter.end = paramEnd, param.parameter.range[1] = paramEnd;
2335
2335
  }
2336
2336
  parent = param;
@@ -2344,8 +2344,8 @@ function deserializeFunctionBody(pos) {
2344
2344
  __proto__: NodeProto,
2345
2345
  type: "BlockStatement",
2346
2346
  body: null,
2347
- start: start = deserializeU32(pos),
2348
- end: end = deserializeU32(pos + 4),
2347
+ start: start = deserializeI32(pos),
2348
+ end: end = deserializeI32(pos + 4),
2349
2349
  range: [start, end],
2350
2350
  parent
2351
2351
  }, body = deserializeVecDirective(pos + 16);
@@ -2362,13 +2362,13 @@ function deserializeArrowFunctionExpression(pos) {
2362
2362
  returnType: null,
2363
2363
  body: null,
2364
2364
  id: null,
2365
- generator: null,
2366
- start: start = deserializeU32(pos),
2367
- end: end = deserializeU32(pos + 4),
2365
+ generator: !1,
2366
+ start: start = deserializeI32(pos),
2367
+ end: end = deserializeI32(pos + 4),
2368
2368
  range: [start, end],
2369
2369
  parent
2370
2370
  }, body = deserializeBoxFunctionBody(pos + 40);
2371
- return expression === !0 && (body = body.body[0].expression, body.parent = parent), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16), node.params = deserializeBoxFormalParameters(pos + 24), node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 32), node.body = body, node.generator = !1, parent = previousParent, node;
2371
+ return expression === !0 && (body = body.body[0].expression, body.parent = parent), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16), node.params = deserializeBoxFormalParameters(pos + 24), node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 32), node.body = body, parent = previousParent, node;
2372
2372
  }
2373
2373
  function deserializeYieldExpression(pos) {
2374
2374
  let start, end, previousParent = parent, node = parent = {
@@ -2376,8 +2376,8 @@ function deserializeYieldExpression(pos) {
2376
2376
  type: "YieldExpression",
2377
2377
  delegate: deserializeBool(pos + 12),
2378
2378
  argument: null,
2379
- start: start = deserializeU32(pos),
2380
- end: end = deserializeU32(pos + 4),
2379
+ start: start = deserializeI32(pos),
2380
+ end: end = deserializeI32(pos + 4),
2381
2381
  range: [start, end],
2382
2382
  parent
2383
2383
  };
@@ -2396,8 +2396,8 @@ function deserializeClass(pos) {
2396
2396
  body: null,
2397
2397
  abstract: deserializeBool(pos + 137),
2398
2398
  declare: deserializeBool(pos + 138),
2399
- start: start = deserializeU32(pos),
2400
- end: end = deserializeU32(pos + 4),
2399
+ start: start = deserializeI32(pos),
2400
+ end: end = deserializeI32(pos + 4),
2401
2401
  range: [start, end],
2402
2402
  parent
2403
2403
  };
@@ -2415,8 +2415,8 @@ function deserializeClassBody(pos) {
2415
2415
  __proto__: NodeProto,
2416
2416
  type: "ClassBody",
2417
2417
  body: null,
2418
- start: start = deserializeU32(pos),
2419
- end: end = deserializeU32(pos + 4),
2418
+ start: start = deserializeI32(pos),
2419
+ end: end = deserializeI32(pos + 4),
2420
2420
  range: [start, end],
2421
2421
  parent
2422
2422
  };
@@ -2445,8 +2445,8 @@ function deserializeMethodDefinition(pos) {
2445
2445
  override: deserializeBool(pos + 64),
2446
2446
  optional: deserializeBool(pos + 65),
2447
2447
  accessibility: deserializeOptionTSAccessibility(pos + 66),
2448
- start: start = deserializeU32(pos),
2449
- end: end = deserializeU32(pos + 4),
2448
+ start: start = deserializeI32(pos),
2449
+ end: end = deserializeI32(pos + 4),
2450
2450
  range: [start, end],
2451
2451
  parent
2452
2452
  };
@@ -2475,8 +2475,8 @@ function deserializePropertyDefinition(pos) {
2475
2475
  definite: deserializeBool(pos + 82),
2476
2476
  readonly: deserializeBool(pos + 83),
2477
2477
  accessibility: deserializeOptionTSAccessibility(pos + 84),
2478
- start: start = deserializeU32(pos),
2479
- end: end = deserializeU32(pos + 4),
2478
+ start: start = deserializeI32(pos),
2479
+ end: end = deserializeI32(pos + 4),
2480
2480
  range: [start, end],
2481
2481
  parent
2482
2482
  };
@@ -2504,8 +2504,8 @@ function deserializePrivateIdentifier(pos) {
2504
2504
  __proto__: NodeProto,
2505
2505
  type: "PrivateIdentifier",
2506
2506
  name: deserializeStr(pos + 16),
2507
- start: start = deserializeU32(pos),
2508
- end: end = deserializeU32(pos + 4),
2507
+ start: start = deserializeI32(pos),
2508
+ end: end = deserializeI32(pos + 4),
2509
2509
  range: [start, end],
2510
2510
  parent
2511
2511
  };
@@ -2515,8 +2515,8 @@ function deserializeStaticBlock(pos) {
2515
2515
  __proto__: NodeProto,
2516
2516
  type: "StaticBlock",
2517
2517
  body: null,
2518
- start: start = deserializeU32(pos),
2519
- end: end = deserializeU32(pos + 4),
2518
+ start: start = deserializeI32(pos),
2519
+ end: end = deserializeI32(pos + 4),
2520
2520
  range: [start, end],
2521
2521
  parent
2522
2522
  };
@@ -2542,15 +2542,15 @@ function deserializeAccessorProperty(pos) {
2542
2542
  override: deserializeBool(pos + 15),
2543
2543
  definite: deserializeBool(pos + 80),
2544
2544
  accessibility: deserializeOptionTSAccessibility(pos + 81),
2545
- declare: null,
2546
- optional: null,
2547
- readonly: null,
2548
- start: start = deserializeU32(pos),
2549
- end: end = deserializeU32(pos + 4),
2545
+ declare: !1,
2546
+ optional: !1,
2547
+ readonly: !1,
2548
+ start: start = deserializeI32(pos),
2549
+ end: end = deserializeI32(pos + 4),
2550
2550
  range: [start, end],
2551
2551
  parent
2552
2552
  };
2553
- return node.decorators = deserializeVecDecorator(pos + 16), node.key = deserializePropertyKey(pos + 40), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56), node.value = deserializeOptionExpression(pos + 64), node.declare = !1, node.optional = !1, node.readonly = !1, parent = previousParent, node;
2553
+ return node.decorators = deserializeVecDecorator(pos + 16), node.key = deserializePropertyKey(pos + 40), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56), node.value = deserializeOptionExpression(pos + 64), parent = previousParent, node;
2554
2554
  }
2555
2555
  function deserializeImportExpression(pos) {
2556
2556
  let start, end, previousParent = parent, node = parent = {
@@ -2559,8 +2559,8 @@ function deserializeImportExpression(pos) {
2559
2559
  source: null,
2560
2560
  options: null,
2561
2561
  phase: deserializeOptionImportPhase(pos + 12),
2562
- start: start = deserializeU32(pos),
2563
- end: end = deserializeU32(pos + 4),
2562
+ start: start = deserializeI32(pos),
2563
+ end: end = deserializeI32(pos + 4),
2564
2564
  range: [start, end],
2565
2565
  parent
2566
2566
  };
@@ -2575,8 +2575,8 @@ function deserializeImportDeclaration(pos) {
2575
2575
  phase: deserializeOptionImportPhase(pos + 12),
2576
2576
  attributes: null,
2577
2577
  importKind: deserializeImportOrExportKind(pos + 13),
2578
- start: start = deserializeU32(pos),
2579
- end: end = deserializeU32(pos + 4),
2578
+ start: start = deserializeI32(pos),
2579
+ end: end = deserializeI32(pos + 4),
2580
2580
  range: [start, end],
2581
2581
  parent
2582
2582
  }, specifiers = deserializeOptionVecImportDeclarationSpecifier(pos + 16);
@@ -2606,8 +2606,8 @@ function deserializeImportSpecifier(pos) {
2606
2606
  imported: null,
2607
2607
  local: null,
2608
2608
  importKind: deserializeImportOrExportKind(pos + 12),
2609
- start: start = deserializeU32(pos),
2610
- end: end = deserializeU32(pos + 4),
2609
+ start: start = deserializeI32(pos),
2610
+ end: end = deserializeI32(pos + 4),
2611
2611
  range: [start, end],
2612
2612
  parent
2613
2613
  };
@@ -2618,8 +2618,8 @@ function deserializeImportDefaultSpecifier(pos) {
2618
2618
  __proto__: NodeProto,
2619
2619
  type: "ImportDefaultSpecifier",
2620
2620
  local: null,
2621
- start: start = deserializeU32(pos),
2622
- end: end = deserializeU32(pos + 4),
2621
+ start: start = deserializeI32(pos),
2622
+ end: end = deserializeI32(pos + 4),
2623
2623
  range: [start, end],
2624
2624
  parent
2625
2625
  };
@@ -2630,8 +2630,8 @@ function deserializeImportNamespaceSpecifier(pos) {
2630
2630
  __proto__: NodeProto,
2631
2631
  type: "ImportNamespaceSpecifier",
2632
2632
  local: null,
2633
- start: start = deserializeU32(pos),
2634
- end: end = deserializeU32(pos + 4),
2633
+ start: start = deserializeI32(pos),
2634
+ end: end = deserializeI32(pos + 4),
2635
2635
  range: [start, end],
2636
2636
  parent
2637
2637
  };
@@ -2646,8 +2646,8 @@ function deserializeImportAttribute(pos) {
2646
2646
  type: "ImportAttribute",
2647
2647
  key: null,
2648
2648
  value: null,
2649
- start: start = deserializeU32(pos),
2650
- end: end = deserializeU32(pos + 4),
2649
+ start: start = deserializeI32(pos),
2650
+ end: end = deserializeI32(pos + 4),
2651
2651
  range: [start, end],
2652
2652
  parent
2653
2653
  };
@@ -2669,8 +2669,8 @@ function deserializeExportNamedDeclaration(pos) {
2669
2669
  source: null,
2670
2670
  exportKind: deserializeImportOrExportKind(pos + 12),
2671
2671
  attributes: null,
2672
- start: start = deserializeU32(pos),
2673
- end: end = deserializeU32(pos + 4),
2672
+ start: start = deserializeI32(pos),
2673
+ end: end = deserializeI32(pos + 4),
2674
2674
  range: [start, end],
2675
2675
  parent
2676
2676
  }, withClause = deserializeOptionBoxWithClause(pos + 104);
@@ -2681,13 +2681,13 @@ function deserializeExportDefaultDeclaration(pos) {
2681
2681
  __proto__: NodeProto,
2682
2682
  type: "ExportDefaultDeclaration",
2683
2683
  declaration: null,
2684
- exportKind: null,
2685
- start: start = deserializeU32(pos),
2686
- end: end = deserializeU32(pos + 4),
2684
+ exportKind: "value",
2685
+ start: start = deserializeI32(pos),
2686
+ end: end = deserializeI32(pos + 4),
2687
2687
  range: [start, end],
2688
2688
  parent
2689
2689
  };
2690
- return node.declaration = deserializeExportDefaultDeclarationKind(pos + 16), node.exportKind = "value", parent = previousParent, node;
2690
+ return node.declaration = deserializeExportDefaultDeclarationKind(pos + 16), parent = previousParent, node;
2691
2691
  }
2692
2692
  function deserializeExportAllDeclaration(pos) {
2693
2693
  let start, end, previousParent = parent, node = parent = {
@@ -2697,8 +2697,8 @@ function deserializeExportAllDeclaration(pos) {
2697
2697
  source: null,
2698
2698
  attributes: null,
2699
2699
  exportKind: deserializeImportOrExportKind(pos + 12),
2700
- start: start = deserializeU32(pos),
2701
- end: end = deserializeU32(pos + 4),
2700
+ start: start = deserializeI32(pos),
2701
+ end: end = deserializeI32(pos + 4),
2702
2702
  range: [start, end],
2703
2703
  parent
2704
2704
  }, withClause = deserializeOptionBoxWithClause(pos + 120);
@@ -2711,8 +2711,8 @@ function deserializeExportSpecifier(pos) {
2711
2711
  local: null,
2712
2712
  exported: null,
2713
2713
  exportKind: deserializeImportOrExportKind(pos + 12),
2714
- start: start = deserializeU32(pos),
2715
- end: end = deserializeU32(pos + 4),
2714
+ start: start = deserializeI32(pos),
2715
+ end: end = deserializeI32(pos + 4),
2716
2716
  range: [start, end],
2717
2717
  parent
2718
2718
  };
@@ -2783,15 +2783,15 @@ function deserializeV8IntrinsicExpression(pos) {
2783
2783
  type: "V8IntrinsicExpression",
2784
2784
  name: null,
2785
2785
  arguments: null,
2786
- start: start = deserializeU32(pos),
2787
- end: end = deserializeU32(pos + 4),
2786
+ start: start = deserializeI32(pos),
2787
+ end: end = deserializeI32(pos + 4),
2788
2788
  range: [start, end],
2789
2789
  parent
2790
2790
  };
2791
2791
  return node.name = deserializeIdentifierName(pos + 16), node.arguments = deserializeVecArgument(pos + 48), parent = previousParent, node;
2792
2792
  }
2793
2793
  function deserializeBooleanLiteral(pos) {
2794
- let value = deserializeBool(pos + 12), start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2794
+ let value = deserializeBool(pos + 12), start = deserializeI32(pos), end = deserializeI32(pos + 4), previousParent = parent, node = parent = {
2795
2795
  __proto__: NodeProto,
2796
2796
  type: "Literal",
2797
2797
  value,
@@ -2804,25 +2804,25 @@ function deserializeBooleanLiteral(pos) {
2804
2804
  return node.raw = start === 0 && end === 0 ? null : value + "", parent = previousParent, node;
2805
2805
  }
2806
2806
  function deserializeNullLiteral(pos) {
2807
- let start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2807
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4);
2808
+ return {
2808
2809
  __proto__: NodeProto,
2809
2810
  type: "Literal",
2810
2811
  value: null,
2811
- raw: null,
2812
+ raw: start === 0 && end === 0 ? null : "null",
2812
2813
  start,
2813
2814
  end,
2814
2815
  range: [start, end],
2815
2816
  parent
2816
2817
  };
2817
- return node.raw = start === 0 && end === 0 ? null : "null", parent = previousParent, node;
2818
2818
  }
2819
2819
  function deserializeNumericLiteral(pos) {
2820
- let start = deserializeU32(pos), end = deserializeU32(pos + 4);
2820
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4);
2821
2821
  return {
2822
2822
  __proto__: NodeProto,
2823
2823
  type: "Literal",
2824
2824
  value: deserializeF64(pos + 32),
2825
- raw: uint32[pos + 16 >> 2] === 0 && uint32[pos + 20 >> 2] === 0 ? null : sourceText$1.slice(start, end),
2825
+ raw: int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0 ? null : sourceText$1.slice(start, end),
2826
2826
  start,
2827
2827
  end,
2828
2828
  range: [start, end],
@@ -2830,11 +2830,11 @@ function deserializeNumericLiteral(pos) {
2830
2830
  };
2831
2831
  }
2832
2832
  function deserializeStringLiteral(pos) {
2833
- let start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2833
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4), previousParent = parent, node = parent = {
2834
2834
  __proto__: NodeProto,
2835
2835
  type: "Literal",
2836
2836
  value: null,
2837
- raw: uint32[pos + 32 >> 2] === 0 && uint32[pos + 36 >> 2] === 0 ? null : sourceText$1.slice(start, end),
2837
+ raw: int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0 ? null : sourceText$1.slice(start, end),
2838
2838
  start,
2839
2839
  end,
2840
2840
  range: [start, end],
@@ -2843,25 +2843,25 @@ function deserializeStringLiteral(pos) {
2843
2843
  return deserializeBool(pos + 12) && (value = value.replace(/\uFFFD(.{4})/g, (_, hex) => StringFromCodePoint(parseInt(hex, 16)))), node.value = value, parent = previousParent, node;
2844
2844
  }
2845
2845
  function deserializeBigIntLiteral(pos) {
2846
- let start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2846
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4), bigint = deserializeStr(pos + 16);
2847
+ return {
2847
2848
  __proto__: NodeProto,
2848
2849
  type: "Literal",
2849
- value: null,
2850
- raw: uint32[pos + 32 >> 2] === 0 && uint32[pos + 36 >> 2] === 0 ? null : sourceText$1.slice(start, end),
2851
- bigint: null,
2850
+ value: BigInt(bigint),
2851
+ raw: int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0 ? null : sourceText$1.slice(start, end),
2852
+ bigint,
2852
2853
  start,
2853
2854
  end,
2854
2855
  range: [start, end],
2855
2856
  parent
2856
- }, bigint = deserializeStr(pos + 16);
2857
- return node.value = BigInt(bigint), node.bigint = bigint, parent = previousParent, node;
2857
+ };
2858
2858
  }
2859
2859
  function deserializeRegExpLiteral(pos) {
2860
- let start = deserializeU32(pos), end = deserializeU32(pos + 4), previousParent = parent, node = parent = {
2860
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4), previousParent = parent, node = parent = {
2861
2861
  __proto__: NodeProto,
2862
2862
  type: "Literal",
2863
2863
  value: null,
2864
- raw: uint32[pos + 48 >> 2] === 0 && uint32[pos + 52 >> 2] === 0 ? null : sourceText$1.slice(start, end),
2864
+ raw: int32[(pos >> 2) + 12] === 0 && int32[(pos >> 2) + 13] === 0 ? null : sourceText$1.slice(start, end),
2865
2865
  regex: null,
2866
2866
  start,
2867
2867
  end,
@@ -2890,8 +2890,8 @@ function deserializeJSXElement(pos) {
2890
2890
  openingElement: null,
2891
2891
  children: null,
2892
2892
  closingElement: null,
2893
- start: start = deserializeU32(pos),
2894
- end: end = deserializeU32(pos + 4),
2893
+ start: start = deserializeI32(pos),
2894
+ end: end = deserializeI32(pos + 4),
2895
2895
  range: [start, end],
2896
2896
  parent
2897
2897
  }, closingElement = deserializeOptionBoxJSXClosingElement(pos + 48), openingElement = deserializeBoxJSXOpeningElement(pos + 16);
@@ -2904,21 +2904,21 @@ function deserializeJSXOpeningElement(pos) {
2904
2904
  name: null,
2905
2905
  typeArguments: null,
2906
2906
  attributes: null,
2907
- selfClosing: null,
2908
- start: start = deserializeU32(pos),
2909
- end: end = deserializeU32(pos + 4),
2907
+ selfClosing: !1,
2908
+ start: start = deserializeI32(pos),
2909
+ end: end = deserializeI32(pos + 4),
2910
2910
  range: [start, end],
2911
2911
  parent
2912
2912
  };
2913
- return node.name = deserializeJSXElementName(pos + 16), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), node.attributes = deserializeVecJSXAttributeItem(pos + 40), node.selfClosing = !1, parent = previousParent, node;
2913
+ return node.name = deserializeJSXElementName(pos + 16), node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32), node.attributes = deserializeVecJSXAttributeItem(pos + 40), parent = previousParent, node;
2914
2914
  }
2915
2915
  function deserializeJSXClosingElement(pos) {
2916
2916
  let start, end, previousParent = parent, node = parent = {
2917
2917
  __proto__: NodeProto,
2918
2918
  type: "JSXClosingElement",
2919
2919
  name: null,
2920
- start: start = deserializeU32(pos),
2921
- end: end = deserializeU32(pos + 4),
2920
+ start: start = deserializeI32(pos),
2921
+ end: end = deserializeI32(pos + 4),
2922
2922
  range: [start, end],
2923
2923
  parent
2924
2924
  };
@@ -2931,31 +2931,31 @@ function deserializeJSXFragment(pos) {
2931
2931
  openingFragment: null,
2932
2932
  children: null,
2933
2933
  closingFragment: null,
2934
- start: start = deserializeU32(pos),
2935
- end: end = deserializeU32(pos + 4),
2934
+ start: start = deserializeI32(pos),
2935
+ end: end = deserializeI32(pos + 4),
2936
2936
  range: [start, end],
2937
2937
  parent
2938
2938
  };
2939
2939
  return node.openingFragment = deserializeJSXOpeningFragment(pos + 16), node.children = deserializeVecJSXChild(pos + 32), node.closingFragment = deserializeJSXClosingFragment(pos + 56), parent = previousParent, node;
2940
2940
  }
2941
2941
  function deserializeJSXOpeningFragment(pos) {
2942
- let start, end, previousParent = parent, node = parent = {
2942
+ let start, end;
2943
+ return {
2943
2944
  __proto__: NodeProto,
2944
2945
  type: "JSXOpeningFragment",
2945
- start: start = deserializeU32(pos),
2946
- end: end = deserializeU32(pos + 4),
2946
+ start: start = deserializeI32(pos),
2947
+ end: end = deserializeI32(pos + 4),
2947
2948
  range: [start, end],
2948
2949
  parent
2949
2950
  };
2950
- return parent = previousParent, node;
2951
2951
  }
2952
2952
  function deserializeJSXClosingFragment(pos) {
2953
2953
  let start, end;
2954
2954
  return {
2955
2955
  __proto__: NodeProto,
2956
2956
  type: "JSXClosingFragment",
2957
- start: start = deserializeU32(pos),
2958
- end: end = deserializeU32(pos + 4),
2957
+ start: start = deserializeI32(pos),
2958
+ end: end = deserializeI32(pos + 4),
2959
2959
  range: [start, end],
2960
2960
  parent
2961
2961
  };
@@ -2996,8 +2996,8 @@ function deserializeJSXNamespacedName(pos) {
2996
2996
  type: "JSXNamespacedName",
2997
2997
  namespace: null,
2998
2998
  name: null,
2999
- start: start = deserializeU32(pos),
3000
- end: end = deserializeU32(pos + 4),
2999
+ start: start = deserializeI32(pos),
3000
+ end: end = deserializeI32(pos + 4),
3001
3001
  range: [start, end],
3002
3002
  parent
3003
3003
  };
@@ -3009,8 +3009,8 @@ function deserializeJSXMemberExpression(pos) {
3009
3009
  type: "JSXMemberExpression",
3010
3010
  object: null,
3011
3011
  property: null,
3012
- start: start = deserializeU32(pos),
3013
- end: end = deserializeU32(pos + 4),
3012
+ start: start = deserializeI32(pos),
3013
+ end: end = deserializeI32(pos + 4),
3014
3014
  range: [start, end],
3015
3015
  parent
3016
3016
  };
@@ -3049,8 +3049,8 @@ function deserializeJSXExpressionContainer(pos) {
3049
3049
  __proto__: NodeProto,
3050
3050
  type: "JSXExpressionContainer",
3051
3051
  expression: null,
3052
- start: start = deserializeU32(pos),
3053
- end: end = deserializeU32(pos + 4),
3052
+ start: start = deserializeI32(pos),
3053
+ end: end = deserializeI32(pos + 4),
3054
3054
  range: [start, end],
3055
3055
  parent
3056
3056
  };
@@ -3110,8 +3110,8 @@ function deserializeJSXEmptyExpression(pos) {
3110
3110
  return {
3111
3111
  __proto__: NodeProto,
3112
3112
  type: "JSXEmptyExpression",
3113
- start: start = deserializeU32(pos),
3114
- end: end = deserializeU32(pos + 4),
3113
+ start: start = deserializeI32(pos),
3114
+ end: end = deserializeI32(pos + 4),
3115
3115
  range: [start, end],
3116
3116
  parent
3117
3117
  };
@@ -3129,8 +3129,8 @@ function deserializeJSXAttribute(pos) {
3129
3129
  type: "JSXAttribute",
3130
3130
  name: null,
3131
3131
  value: null,
3132
- start: start = deserializeU32(pos),
3133
- end: end = deserializeU32(pos + 4),
3132
+ start: start = deserializeI32(pos),
3133
+ end: end = deserializeI32(pos + 4),
3134
3134
  range: [start, end],
3135
3135
  parent
3136
3136
  };
@@ -3141,8 +3141,8 @@ function deserializeJSXSpreadAttribute(pos) {
3141
3141
  __proto__: NodeProto,
3142
3142
  type: "JSXSpreadAttribute",
3143
3143
  argument: null,
3144
- start: start = deserializeU32(pos),
3145
- end: end = deserializeU32(pos + 4),
3144
+ start: start = deserializeI32(pos),
3145
+ end: end = deserializeI32(pos + 4),
3146
3146
  range: [start, end],
3147
3147
  parent
3148
3148
  };
@@ -3170,8 +3170,8 @@ function deserializeJSXIdentifier(pos) {
3170
3170
  __proto__: NodeProto,
3171
3171
  type: "JSXIdentifier",
3172
3172
  name: deserializeStr(pos + 16),
3173
- start: start = deserializeU32(pos),
3174
- end: end = deserializeU32(pos + 4),
3173
+ start: start = deserializeI32(pos),
3174
+ end: end = deserializeI32(pos + 4),
3175
3175
  range: [start, end],
3176
3176
  parent
3177
3177
  };
@@ -3191,20 +3191,20 @@ function deserializeJSXSpreadChild(pos) {
3191
3191
  __proto__: NodeProto,
3192
3192
  type: "JSXSpreadChild",
3193
3193
  expression: null,
3194
- start: start = deserializeU32(pos),
3195
- end: end = deserializeU32(pos + 4),
3194
+ start: start = deserializeI32(pos),
3195
+ end: end = deserializeI32(pos + 4),
3196
3196
  range: [start, end],
3197
3197
  parent
3198
3198
  };
3199
3199
  return node.expression = deserializeExpression(pos + 16), parent = previousParent, node;
3200
3200
  }
3201
3201
  function deserializeJSXText(pos) {
3202
- let start = deserializeU32(pos), end = deserializeU32(pos + 4);
3202
+ let start = deserializeI32(pos), end = deserializeI32(pos + 4);
3203
3203
  return {
3204
3204
  __proto__: NodeProto,
3205
3205
  type: "JSXText",
3206
3206
  value: deserializeStr(pos + 16),
3207
- raw: uint32[pos + 32 >> 2] === 0 && uint32[pos + 36 >> 2] === 0 ? null : sourceText$1.slice(start, end),
3207
+ raw: int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0 ? null : sourceText$1.slice(start, end),
3208
3208
  start,
3209
3209
  end,
3210
3210
  range: [start, end],
@@ -3215,16 +3215,16 @@ function deserializeTSThisParameter(pos) {
3215
3215
  let start, end, previousParent = parent, node = parent = {
3216
3216
  __proto__: NodeProto,
3217
3217
  type: "Identifier",
3218
- decorators: null,
3219
- name: null,
3220
- optional: null,
3218
+ decorators: [],
3219
+ name: "this",
3220
+ optional: !1,
3221
3221
  typeAnnotation: null,
3222
- start: start = deserializeU32(pos),
3223
- end: end = deserializeU32(pos + 4),
3222
+ start: start = deserializeI32(pos),
3223
+ end: end = deserializeI32(pos + 4),
3224
3224
  range: [start, end],
3225
3225
  parent
3226
3226
  };
3227
- return node.decorators = [], node.name = "this", node.optional = !1, node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24), parent = previousParent, node;
3227
+ return node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24), parent = previousParent, node;
3228
3228
  }
3229
3229
  function deserializeTSEnumDeclaration(pos) {
3230
3230
  let start, end, previousParent = parent, node = parent = {
@@ -3234,8 +3234,8 @@ function deserializeTSEnumDeclaration(pos) {
3234
3234
  body: null,
3235
3235
  const: deserializeBool(pos + 12),
3236
3236
  declare: deserializeBool(pos + 13),
3237
- start: start = deserializeU32(pos),
3238
- end: end = deserializeU32(pos + 4),
3237
+ start: start = deserializeI32(pos),
3238
+ end: end = deserializeI32(pos + 4),
3239
3239
  range: [start, end],
3240
3240
  parent
3241
3241
  };
@@ -3246,8 +3246,8 @@ function deserializeTSEnumBody(pos) {
3246
3246
  __proto__: NodeProto,
3247
3247
  type: "TSEnumBody",
3248
3248
  members: null,
3249
- start: start = deserializeU32(pos),
3250
- end: end = deserializeU32(pos + 4),
3249
+ start: start = deserializeI32(pos),
3250
+ end: end = deserializeI32(pos + 4),
3251
3251
  range: [start, end],
3252
3252
  parent
3253
3253
  };
@@ -3259,13 +3259,13 @@ function deserializeTSEnumMember(pos) {
3259
3259
  type: "TSEnumMember",
3260
3260
  id: null,
3261
3261
  initializer: null,
3262
- computed: null,
3263
- start: start = deserializeU32(pos),
3264
- end: end = deserializeU32(pos + 4),
3262
+ computed: deserializeU8(pos + 16) > 1,
3263
+ start: start = deserializeI32(pos),
3264
+ end: end = deserializeI32(pos + 4),
3265
3265
  range: [start, end],
3266
3266
  parent
3267
3267
  };
3268
- return node.id = deserializeTSEnumMemberName(pos + 16), node.initializer = deserializeOptionExpression(pos + 32), node.computed = deserializeU8(pos + 16) > 1, parent = previousParent, node;
3268
+ return node.id = deserializeTSEnumMemberName(pos + 16), node.initializer = deserializeOptionExpression(pos + 32), parent = previousParent, node;
3269
3269
  }
3270
3270
  function deserializeTSEnumMemberName(pos) {
3271
3271
  switch (uint8[pos]) {
@@ -3281,8 +3281,8 @@ function deserializeTSTypeAnnotation(pos) {
3281
3281
  __proto__: NodeProto,
3282
3282
  type: "TSTypeAnnotation",
3283
3283
  typeAnnotation: null,
3284
- start: start = deserializeU32(pos),
3285
- end: end = deserializeU32(pos + 4),
3284
+ start: start = deserializeI32(pos),
3285
+ end: end = deserializeI32(pos + 4),
3286
3286
  range: [start, end],
3287
3287
  parent
3288
3288
  };
@@ -3293,8 +3293,8 @@ function deserializeTSLiteralType(pos) {
3293
3293
  __proto__: NodeProto,
3294
3294
  type: "TSLiteralType",
3295
3295
  literal: null,
3296
- start: start = deserializeU32(pos),
3297
- end: end = deserializeU32(pos + 4),
3296
+ start: start = deserializeI32(pos),
3297
+ end: end = deserializeI32(pos + 4),
3298
3298
  range: [start, end],
3299
3299
  parent
3300
3300
  };
@@ -3361,8 +3361,8 @@ function deserializeTSConditionalType(pos) {
3361
3361
  extendsType: null,
3362
3362
  trueType: null,
3363
3363
  falseType: null,
3364
- start: start = deserializeU32(pos),
3365
- end: end = deserializeU32(pos + 4),
3364
+ start: start = deserializeI32(pos),
3365
+ end: end = deserializeI32(pos + 4),
3366
3366
  range: [start, end],
3367
3367
  parent
3368
3368
  };
@@ -3373,8 +3373,8 @@ function deserializeTSUnionType(pos) {
3373
3373
  __proto__: NodeProto,
3374
3374
  type: "TSUnionType",
3375
3375
  types: null,
3376
- start: start = deserializeU32(pos),
3377
- end: end = deserializeU32(pos + 4),
3376
+ start: start = deserializeI32(pos),
3377
+ end: end = deserializeI32(pos + 4),
3378
3378
  range: [start, end],
3379
3379
  parent
3380
3380
  };
@@ -3385,8 +3385,8 @@ function deserializeTSIntersectionType(pos) {
3385
3385
  __proto__: NodeProto,
3386
3386
  type: "TSIntersectionType",
3387
3387
  types: null,
3388
- start: start = deserializeU32(pos),
3389
- end: end = deserializeU32(pos + 4),
3388
+ start: start = deserializeI32(pos),
3389
+ end: end = deserializeI32(pos + 4),
3390
3390
  range: [start, end],
3391
3391
  parent
3392
3392
  };
@@ -3402,8 +3402,8 @@ function deserializeTSTypeOperator(pos) {
3402
3402
  type: "TSTypeOperator",
3403
3403
  operator: deserializeTSTypeOperatorOperator(pos + 12),
3404
3404
  typeAnnotation: null,
3405
- start: start = deserializeU32(pos),
3406
- end: end = deserializeU32(pos + 4),
3405
+ start: start = deserializeI32(pos),
3406
+ end: end = deserializeI32(pos + 4),
3407
3407
  range: [start, end],
3408
3408
  parent
3409
3409
  };
@@ -3422,8 +3422,8 @@ function deserializeTSArrayType(pos) {
3422
3422
  __proto__: NodeProto,
3423
3423
  type: "TSArrayType",
3424
3424
  elementType: null,
3425
- start: start = deserializeU32(pos),
3426
- end: end = deserializeU32(pos + 4),
3425
+ start: start = deserializeI32(pos),
3426
+ end: end = deserializeI32(pos + 4),
3427
3427
  range: [start, end],
3428
3428
  parent
3429
3429
  };
@@ -3435,8 +3435,8 @@ function deserializeTSIndexedAccessType(pos) {
3435
3435
  type: "TSIndexedAccessType",
3436
3436
  objectType: null,
3437
3437
  indexType: null,
3438
- start: start = deserializeU32(pos),
3439
- end: end = deserializeU32(pos + 4),
3438
+ start: start = deserializeI32(pos),
3439
+ end: end = deserializeI32(pos + 4),
3440
3440
  range: [start, end],
3441
3441
  parent
3442
3442
  };
@@ -3447,8 +3447,8 @@ function deserializeTSTupleType(pos) {
3447
3447
  __proto__: NodeProto,
3448
3448
  type: "TSTupleType",
3449
3449
  elementTypes: null,
3450
- start: start = deserializeU32(pos),
3451
- end: end = deserializeU32(pos + 4),
3450
+ start: start = deserializeI32(pos),
3451
+ end: end = deserializeI32(pos + 4),
3452
3452
  range: [start, end],
3453
3453
  parent
3454
3454
  };
@@ -3461,8 +3461,8 @@ function deserializeTSNamedTupleMember(pos) {
3461
3461
  label: null,
3462
3462
  elementType: null,
3463
3463
  optional: deserializeBool(pos + 12),
3464
- start: start = deserializeU32(pos),
3465
- end: end = deserializeU32(pos + 4),
3464
+ start: start = deserializeI32(pos),
3465
+ end: end = deserializeI32(pos + 4),
3466
3466
  range: [start, end],
3467
3467
  parent
3468
3468
  };
@@ -3473,8 +3473,8 @@ function deserializeTSOptionalType(pos) {
3473
3473
  __proto__: NodeProto,
3474
3474
  type: "TSOptionalType",
3475
3475
  typeAnnotation: null,
3476
- start: start = deserializeU32(pos),
3477
- end: end = deserializeU32(pos + 4),
3476
+ start: start = deserializeI32(pos),
3477
+ end: end = deserializeI32(pos + 4),
3478
3478
  range: [start, end],
3479
3479
  parent
3480
3480
  };
@@ -3485,8 +3485,8 @@ function deserializeTSRestType(pos) {
3485
3485
  __proto__: NodeProto,
3486
3486
  type: "TSRestType",
3487
3487
  typeAnnotation: null,
3488
- start: start = deserializeU32(pos),
3489
- end: end = deserializeU32(pos + 4),
3488
+ start: start = deserializeI32(pos),
3489
+ end: end = deserializeI32(pos + 4),
3490
3490
  range: [start, end],
3491
3491
  parent
3492
3492
  };
@@ -3541,8 +3541,8 @@ function deserializeTSAnyKeyword(pos) {
3541
3541
  return {
3542
3542
  __proto__: NodeProto,
3543
3543
  type: "TSAnyKeyword",
3544
- start: start = deserializeU32(pos),
3545
- end: end = deserializeU32(pos + 4),
3544
+ start: start = deserializeI32(pos),
3545
+ end: end = deserializeI32(pos + 4),
3546
3546
  range: [start, end],
3547
3547
  parent
3548
3548
  };
@@ -3552,8 +3552,8 @@ function deserializeTSStringKeyword(pos) {
3552
3552
  return {
3553
3553
  __proto__: NodeProto,
3554
3554
  type: "TSStringKeyword",
3555
- start: start = deserializeU32(pos),
3556
- end: end = deserializeU32(pos + 4),
3555
+ start: start = deserializeI32(pos),
3556
+ end: end = deserializeI32(pos + 4),
3557
3557
  range: [start, end],
3558
3558
  parent
3559
3559
  };
@@ -3563,8 +3563,8 @@ function deserializeTSBooleanKeyword(pos) {
3563
3563
  return {
3564
3564
  __proto__: NodeProto,
3565
3565
  type: "TSBooleanKeyword",
3566
- start: start = deserializeU32(pos),
3567
- end: end = deserializeU32(pos + 4),
3566
+ start: start = deserializeI32(pos),
3567
+ end: end = deserializeI32(pos + 4),
3568
3568
  range: [start, end],
3569
3569
  parent
3570
3570
  };
@@ -3574,8 +3574,8 @@ function deserializeTSNumberKeyword(pos) {
3574
3574
  return {
3575
3575
  __proto__: NodeProto,
3576
3576
  type: "TSNumberKeyword",
3577
- start: start = deserializeU32(pos),
3578
- end: end = deserializeU32(pos + 4),
3577
+ start: start = deserializeI32(pos),
3578
+ end: end = deserializeI32(pos + 4),
3579
3579
  range: [start, end],
3580
3580
  parent
3581
3581
  };
@@ -3585,8 +3585,8 @@ function deserializeTSNeverKeyword(pos) {
3585
3585
  return {
3586
3586
  __proto__: NodeProto,
3587
3587
  type: "TSNeverKeyword",
3588
- start: start = deserializeU32(pos),
3589
- end: end = deserializeU32(pos + 4),
3588
+ start: start = deserializeI32(pos),
3589
+ end: end = deserializeI32(pos + 4),
3590
3590
  range: [start, end],
3591
3591
  parent
3592
3592
  };
@@ -3596,8 +3596,8 @@ function deserializeTSIntrinsicKeyword(pos) {
3596
3596
  return {
3597
3597
  __proto__: NodeProto,
3598
3598
  type: "TSIntrinsicKeyword",
3599
- start: start = deserializeU32(pos),
3600
- end: end = deserializeU32(pos + 4),
3599
+ start: start = deserializeI32(pos),
3600
+ end: end = deserializeI32(pos + 4),
3601
3601
  range: [start, end],
3602
3602
  parent
3603
3603
  };
@@ -3607,8 +3607,8 @@ function deserializeTSUnknownKeyword(pos) {
3607
3607
  return {
3608
3608
  __proto__: NodeProto,
3609
3609
  type: "TSUnknownKeyword",
3610
- start: start = deserializeU32(pos),
3611
- end: end = deserializeU32(pos + 4),
3610
+ start: start = deserializeI32(pos),
3611
+ end: end = deserializeI32(pos + 4),
3612
3612
  range: [start, end],
3613
3613
  parent
3614
3614
  };
@@ -3618,8 +3618,8 @@ function deserializeTSNullKeyword(pos) {
3618
3618
  return {
3619
3619
  __proto__: NodeProto,
3620
3620
  type: "TSNullKeyword",
3621
- start: start = deserializeU32(pos),
3622
- end: end = deserializeU32(pos + 4),
3621
+ start: start = deserializeI32(pos),
3622
+ end: end = deserializeI32(pos + 4),
3623
3623
  range: [start, end],
3624
3624
  parent
3625
3625
  };
@@ -3629,8 +3629,8 @@ function deserializeTSUndefinedKeyword(pos) {
3629
3629
  return {
3630
3630
  __proto__: NodeProto,
3631
3631
  type: "TSUndefinedKeyword",
3632
- start: start = deserializeU32(pos),
3633
- end: end = deserializeU32(pos + 4),
3632
+ start: start = deserializeI32(pos),
3633
+ end: end = deserializeI32(pos + 4),
3634
3634
  range: [start, end],
3635
3635
  parent
3636
3636
  };
@@ -3640,8 +3640,8 @@ function deserializeTSVoidKeyword(pos) {
3640
3640
  return {
3641
3641
  __proto__: NodeProto,
3642
3642
  type: "TSVoidKeyword",
3643
- start: start = deserializeU32(pos),
3644
- end: end = deserializeU32(pos + 4),
3643
+ start: start = deserializeI32(pos),
3644
+ end: end = deserializeI32(pos + 4),
3645
3645
  range: [start, end],
3646
3646
  parent
3647
3647
  };
@@ -3651,8 +3651,8 @@ function deserializeTSSymbolKeyword(pos) {
3651
3651
  return {
3652
3652
  __proto__: NodeProto,
3653
3653
  type: "TSSymbolKeyword",
3654
- start: start = deserializeU32(pos),
3655
- end: end = deserializeU32(pos + 4),
3654
+ start: start = deserializeI32(pos),
3655
+ end: end = deserializeI32(pos + 4),
3656
3656
  range: [start, end],
3657
3657
  parent
3658
3658
  };
@@ -3662,8 +3662,8 @@ function deserializeTSThisType(pos) {
3662
3662
  return {
3663
3663
  __proto__: NodeProto,
3664
3664
  type: "TSThisType",
3665
- start: start = deserializeU32(pos),
3666
- end: end = deserializeU32(pos + 4),
3665
+ start: start = deserializeI32(pos),
3666
+ end: end = deserializeI32(pos + 4),
3667
3667
  range: [start, end],
3668
3668
  parent
3669
3669
  };
@@ -3673,8 +3673,8 @@ function deserializeTSObjectKeyword(pos) {
3673
3673
  return {
3674
3674
  __proto__: NodeProto,
3675
3675
  type: "TSObjectKeyword",
3676
- start: start = deserializeU32(pos),
3677
- end: end = deserializeU32(pos + 4),
3676
+ start: start = deserializeI32(pos),
3677
+ end: end = deserializeI32(pos + 4),
3678
3678
  range: [start, end],
3679
3679
  parent
3680
3680
  };
@@ -3684,8 +3684,8 @@ function deserializeTSBigIntKeyword(pos) {
3684
3684
  return {
3685
3685
  __proto__: NodeProto,
3686
3686
  type: "TSBigIntKeyword",
3687
- start: start = deserializeU32(pos),
3688
- end: end = deserializeU32(pos + 4),
3687
+ start: start = deserializeI32(pos),
3688
+ end: end = deserializeI32(pos + 4),
3689
3689
  range: [start, end],
3690
3690
  parent
3691
3691
  };
@@ -3696,8 +3696,8 @@ function deserializeTSTypeReference(pos) {
3696
3696
  type: "TSTypeReference",
3697
3697
  typeName: null,
3698
3698
  typeArguments: null,
3699
- start: start = deserializeU32(pos),
3700
- end: end = deserializeU32(pos + 4),
3699
+ start: start = deserializeI32(pos),
3700
+ end: end = deserializeI32(pos + 4),
3701
3701
  range: [start, end],
3702
3702
  parent
3703
3703
  };
@@ -3717,8 +3717,8 @@ function deserializeTSQualifiedName(pos) {
3717
3717
  type: "TSQualifiedName",
3718
3718
  left: null,
3719
3719
  right: null,
3720
- start: start = deserializeU32(pos),
3721
- end: end = deserializeU32(pos + 4),
3720
+ start: start = deserializeI32(pos),
3721
+ end: end = deserializeI32(pos + 4),
3722
3722
  range: [start, end],
3723
3723
  parent
3724
3724
  };
@@ -3729,8 +3729,8 @@ function deserializeTSTypeParameterInstantiation(pos) {
3729
3729
  __proto__: NodeProto,
3730
3730
  type: "TSTypeParameterInstantiation",
3731
3731
  params: null,
3732
- start: start = deserializeU32(pos),
3733
- end: end = deserializeU32(pos + 4),
3732
+ start: start = deserializeI32(pos),
3733
+ end: end = deserializeI32(pos + 4),
3734
3734
  range: [start, end],
3735
3735
  parent
3736
3736
  };
@@ -3746,8 +3746,8 @@ function deserializeTSTypeParameter(pos) {
3746
3746
  in: deserializeBool(pos + 12),
3747
3747
  out: deserializeBool(pos + 13),
3748
3748
  const: deserializeBool(pos + 14),
3749
- start: start = deserializeU32(pos),
3750
- end: end = deserializeU32(pos + 4),
3749
+ start: start = deserializeI32(pos),
3750
+ end: end = deserializeI32(pos + 4),
3751
3751
  range: [start, end],
3752
3752
  parent
3753
3753
  };
@@ -3758,8 +3758,8 @@ function deserializeTSTypeParameterDeclaration(pos) {
3758
3758
  __proto__: NodeProto,
3759
3759
  type: "TSTypeParameterDeclaration",
3760
3760
  params: null,
3761
- start: start = deserializeU32(pos),
3762
- end: end = deserializeU32(pos + 4),
3761
+ start: start = deserializeI32(pos),
3762
+ end: end = deserializeI32(pos + 4),
3763
3763
  range: [start, end],
3764
3764
  parent
3765
3765
  };
@@ -3773,8 +3773,8 @@ function deserializeTSTypeAliasDeclaration(pos) {
3773
3773
  typeParameters: null,
3774
3774
  typeAnnotation: null,
3775
3775
  declare: deserializeBool(pos + 72),
3776
- start: start = deserializeU32(pos),
3777
- end: end = deserializeU32(pos + 4),
3776
+ start: start = deserializeI32(pos),
3777
+ end: end = deserializeI32(pos + 4),
3778
3778
  range: [start, end],
3779
3779
  parent
3780
3780
  };
@@ -3794,8 +3794,8 @@ function deserializeTSClassImplements(pos) {
3794
3794
  type: "TSClassImplements",
3795
3795
  expression: null,
3796
3796
  typeArguments: null,
3797
- start: start = deserializeU32(pos),
3798
- end: end = deserializeU32(pos + 4),
3797
+ start: start = deserializeI32(pos),
3798
+ end: end = deserializeI32(pos + 4),
3799
3799
  range: [start, end],
3800
3800
  parent
3801
3801
  }, expression = deserializeTSTypeName(pos + 16);
@@ -3843,8 +3843,8 @@ function deserializeTSInterfaceDeclaration(pos) {
3843
3843
  extends: null,
3844
3844
  body: null,
3845
3845
  declare: deserializeBool(pos + 88),
3846
- start: start = deserializeU32(pos),
3847
- end: end = deserializeU32(pos + 4),
3846
+ start: start = deserializeI32(pos),
3847
+ end: end = deserializeI32(pos + 4),
3848
3848
  range: [start, end],
3849
3849
  parent
3850
3850
  };
@@ -3855,8 +3855,8 @@ function deserializeTSInterfaceBody(pos) {
3855
3855
  __proto__: NodeProto,
3856
3856
  type: "TSInterfaceBody",
3857
3857
  body: null,
3858
- start: start = deserializeU32(pos),
3859
- end: end = deserializeU32(pos + 4),
3858
+ start: start = deserializeI32(pos),
3859
+ end: end = deserializeI32(pos + 4),
3860
3860
  range: [start, end],
3861
3861
  parent
3862
3862
  };
@@ -3872,13 +3872,13 @@ function deserializeTSPropertySignature(pos) {
3872
3872
  key: null,
3873
3873
  typeAnnotation: null,
3874
3874
  accessibility: null,
3875
- static: null,
3876
- start: start = deserializeU32(pos),
3877
- end: end = deserializeU32(pos + 4),
3875
+ static: !1,
3876
+ start: start = deserializeI32(pos),
3877
+ end: end = deserializeI32(pos + 4),
3878
3878
  range: [start, end],
3879
3879
  parent
3880
3880
  };
3881
- return node.key = deserializePropertyKey(pos + 16), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32), node.static = !1, parent = previousParent, node;
3881
+ return node.key = deserializePropertyKey(pos + 16), node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32), parent = previousParent, node;
3882
3882
  }
3883
3883
  function deserializeTSSignature(pos) {
3884
3884
  switch (uint8[pos]) {
@@ -3899,8 +3899,8 @@ function deserializeTSIndexSignature(pos) {
3899
3899
  readonly: deserializeBool(pos + 12),
3900
3900
  static: deserializeBool(pos + 13),
3901
3901
  accessibility: null,
3902
- start: start = deserializeU32(pos),
3903
- end: end = deserializeU32(pos + 4),
3902
+ start: start = deserializeI32(pos),
3903
+ end: end = deserializeI32(pos + 4),
3904
3904
  range: [start, end],
3905
3905
  parent
3906
3906
  };
@@ -3913,8 +3913,8 @@ function deserializeTSCallSignatureDeclaration(pos) {
3913
3913
  typeParameters: null,
3914
3914
  params: null,
3915
3915
  returnType: null,
3916
- start: start = deserializeU32(pos),
3917
- end: end = deserializeU32(pos + 4),
3916
+ start: start = deserializeI32(pos),
3917
+ end: end = deserializeI32(pos + 4),
3918
3918
  range: [start, end],
3919
3919
  parent
3920
3920
  }, params = deserializeBoxFormalParameters(pos + 32), thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
@@ -3940,14 +3940,14 @@ function deserializeTSMethodSignature(pos) {
3940
3940
  params: null,
3941
3941
  returnType: null,
3942
3942
  accessibility: null,
3943
- readonly: null,
3944
- static: null,
3945
- start: start = deserializeU32(pos),
3946
- end: end = deserializeU32(pos + 4),
3943
+ readonly: !1,
3944
+ static: !1,
3945
+ start: start = deserializeI32(pos),
3946
+ end: end = deserializeI32(pos + 4),
3947
3947
  range: [start, end],
3948
3948
  parent
3949
3949
  }, params = deserializeBoxFormalParameters(pos + 48), thisParam = deserializeOptionBoxTSThisParameter(pos + 40);
3950
- return thisParam !== null && params.unshift(thisParam), node.key = deserializePropertyKey(pos + 16), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 32), node.params = params, node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 56), node.readonly = !1, node.static = !1, parent = previousParent, node;
3950
+ return thisParam !== null && params.unshift(thisParam), node.key = deserializePropertyKey(pos + 16), node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 32), node.params = params, node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 56), parent = previousParent, node;
3951
3951
  }
3952
3952
  function deserializeTSConstructSignatureDeclaration(pos) {
3953
3953
  let start, end, previousParent = parent, node = parent = {
@@ -3956,8 +3956,8 @@ function deserializeTSConstructSignatureDeclaration(pos) {
3956
3956
  typeParameters: null,
3957
3957
  params: null,
3958
3958
  returnType: null,
3959
- start: start = deserializeU32(pos),
3960
- end: end = deserializeU32(pos + 4),
3959
+ start: start = deserializeI32(pos),
3960
+ end: end = deserializeI32(pos + 4),
3961
3961
  range: [start, end],
3962
3962
  parent
3963
3963
  };
@@ -3967,16 +3967,16 @@ function deserializeTSIndexSignatureName(pos) {
3967
3967
  let start, end, previousParent = parent, node = parent = {
3968
3968
  __proto__: NodeProto,
3969
3969
  type: "Identifier",
3970
- decorators: null,
3970
+ decorators: [],
3971
3971
  name: deserializeStr(pos + 16),
3972
- optional: null,
3972
+ optional: !1,
3973
3973
  typeAnnotation: null,
3974
- start: start = deserializeU32(pos),
3975
- end: end = deserializeU32(pos + 4),
3974
+ start: start = deserializeI32(pos),
3975
+ end: end = deserializeI32(pos + 4),
3976
3976
  range: [start, end],
3977
3977
  parent
3978
3978
  };
3979
- return node.decorators = [], node.optional = !1, node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32), parent = previousParent, node;
3979
+ return node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32), parent = previousParent, node;
3980
3980
  }
3981
3981
  function deserializeTSInterfaceHeritage(pos) {
3982
3982
  let start, end, previousParent = parent, node = parent = {
@@ -3984,8 +3984,8 @@ function deserializeTSInterfaceHeritage(pos) {
3984
3984
  type: "TSInterfaceHeritage",
3985
3985
  expression: null,
3986
3986
  typeArguments: null,
3987
- start: start = deserializeU32(pos),
3988
- end: end = deserializeU32(pos + 4),
3987
+ start: start = deserializeI32(pos),
3988
+ end: end = deserializeI32(pos + 4),
3989
3989
  range: [start, end],
3990
3990
  parent
3991
3991
  };
@@ -3998,8 +3998,8 @@ function deserializeTSTypePredicate(pos) {
3998
3998
  parameterName: null,
3999
3999
  asserts: deserializeBool(pos + 12),
4000
4000
  typeAnnotation: null,
4001
- start: start = deserializeU32(pos),
4002
- end: end = deserializeU32(pos + 4),
4001
+ start: start = deserializeI32(pos),
4002
+ end: end = deserializeI32(pos + 4),
4003
4003
  range: [start, end],
4004
4004
  parent
4005
4005
  };
@@ -4013,7 +4013,7 @@ function deserializeTSTypePredicateName(pos) {
4013
4013
  }
4014
4014
  }
4015
4015
  function deserializeTSModuleDeclaration(pos) {
4016
- let kind = deserializeTSModuleDeclarationKind(pos + 88), start = deserializeU32(pos), end = deserializeU32(pos + 4), declare = deserializeBool(pos + 89), node, previousParent = parent, body = deserializeOptionTSModuleDeclarationBody(pos + 72);
4016
+ let kind = deserializeTSModuleDeclarationKind(pos + 88), start = deserializeI32(pos), end = deserializeI32(pos + 4), declare = deserializeBool(pos + 89), node, previousParent = parent, body = deserializeOptionTSModuleDeclarationBody(pos + 72);
4017
4017
  if (body === null) node = parent = {
4018
4018
  __proto__: NodeProto,
4019
4019
  type: "TSModuleDeclaration",
@@ -4104,11 +4104,11 @@ function deserializeTSGlobalDeclaration(pos) {
4104
4104
  type: "TSModuleDeclaration",
4105
4105
  id: null,
4106
4106
  body: null,
4107
- kind: null,
4107
+ kind: "global",
4108
4108
  declare: deserializeBool(pos + 88),
4109
- global: null,
4110
- start: start = deserializeU32(pos),
4111
- end: end = deserializeU32(pos + 4),
4109
+ global: !0,
4110
+ start: start = deserializeI32(pos),
4111
+ end: end = deserializeI32(pos + 4),
4112
4112
  range: [start, end],
4113
4113
  parent
4114
4114
  }, keywordStart, keywordEnd;
@@ -4119,19 +4119,19 @@ function deserializeTSGlobalDeclaration(pos) {
4119
4119
  name: "global",
4120
4120
  optional: !1,
4121
4121
  typeAnnotation: null,
4122
- start: keywordStart = deserializeU32(pos + 16),
4123
- end: keywordEnd = deserializeU32(pos + 20),
4122
+ start: keywordStart = deserializeI32(pos + 16),
4123
+ end: keywordEnd = deserializeI32(pos + 20),
4124
4124
  range: [keywordStart, keywordEnd],
4125
4125
  parent
4126
- }, node.body = deserializeTSModuleBlock(pos + 24), node.kind = "global", node.global = !0, parent = previousParent, node;
4126
+ }, node.body = deserializeTSModuleBlock(pos + 24), parent = previousParent, node;
4127
4127
  }
4128
4128
  function deserializeTSModuleBlock(pos) {
4129
4129
  let start, end, previousParent = parent, node = parent = {
4130
4130
  __proto__: NodeProto,
4131
4131
  type: "TSModuleBlock",
4132
4132
  body: null,
4133
- start: start = deserializeU32(pos),
4134
- end: end = deserializeU32(pos + 4),
4133
+ start: start = deserializeI32(pos),
4134
+ end: end = deserializeI32(pos + 4),
4135
4135
  range: [start, end],
4136
4136
  parent
4137
4137
  }, body = deserializeVecDirective(pos + 16);
@@ -4142,8 +4142,8 @@ function deserializeTSTypeLiteral(pos) {
4142
4142
  __proto__: NodeProto,
4143
4143
  type: "TSTypeLiteral",
4144
4144
  members: null,
4145
- start: start = deserializeU32(pos),
4146
- end: end = deserializeU32(pos + 4),
4145
+ start: start = deserializeI32(pos),
4146
+ end: end = deserializeI32(pos + 4),
4147
4147
  range: [start, end],
4148
4148
  parent
4149
4149
  };
@@ -4154,8 +4154,8 @@ function deserializeTSInferType(pos) {
4154
4154
  __proto__: NodeProto,
4155
4155
  type: "TSInferType",
4156
4156
  typeParameter: null,
4157
- start: start = deserializeU32(pos),
4158
- end: end = deserializeU32(pos + 4),
4157
+ start: start = deserializeI32(pos),
4158
+ end: end = deserializeI32(pos + 4),
4159
4159
  range: [start, end],
4160
4160
  parent
4161
4161
  };
@@ -4167,8 +4167,8 @@ function deserializeTSTypeQuery(pos) {
4167
4167
  type: "TSTypeQuery",
4168
4168
  exprName: null,
4169
4169
  typeArguments: null,
4170
- start: start = deserializeU32(pos),
4171
- end: end = deserializeU32(pos + 4),
4170
+ start: start = deserializeI32(pos),
4171
+ end: end = deserializeI32(pos + 4),
4172
4172
  range: [start, end],
4173
4173
  parent
4174
4174
  };
@@ -4191,8 +4191,8 @@ function deserializeTSImportType(pos) {
4191
4191
  options: null,
4192
4192
  qualifier: null,
4193
4193
  typeArguments: null,
4194
- start: start = deserializeU32(pos),
4195
- end: end = deserializeU32(pos + 4),
4194
+ start: start = deserializeI32(pos),
4195
+ end: end = deserializeI32(pos + 4),
4196
4196
  range: [start, end],
4197
4197
  parent
4198
4198
  };
@@ -4211,8 +4211,8 @@ function deserializeTSImportTypeQualifiedName(pos) {
4211
4211
  type: "TSQualifiedName",
4212
4212
  left: null,
4213
4213
  right: null,
4214
- start: start = deserializeU32(pos),
4215
- end: end = deserializeU32(pos + 4),
4214
+ start: start = deserializeI32(pos),
4215
+ end: end = deserializeI32(pos + 4),
4216
4216
  range: [start, end],
4217
4217
  parent
4218
4218
  };
@@ -4225,8 +4225,8 @@ function deserializeTSFunctionType(pos) {
4225
4225
  typeParameters: null,
4226
4226
  params: null,
4227
4227
  returnType: null,
4228
- start: start = deserializeU32(pos),
4229
- end: end = deserializeU32(pos + 4),
4228
+ start: start = deserializeI32(pos),
4229
+ end: end = deserializeI32(pos + 4),
4230
4230
  range: [start, end],
4231
4231
  parent
4232
4232
  }, params = deserializeBoxFormalParameters(pos + 32), thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
@@ -4240,8 +4240,8 @@ function deserializeTSConstructorType(pos) {
4240
4240
  typeParameters: null,
4241
4241
  params: null,
4242
4242
  returnType: null,
4243
- start: start = deserializeU32(pos),
4244
- end: end = deserializeU32(pos + 4),
4243
+ start: start = deserializeI32(pos),
4244
+ end: end = deserializeI32(pos + 4),
4245
4245
  range: [start, end],
4246
4246
  parent
4247
4247
  };
@@ -4257,8 +4257,8 @@ function deserializeTSMappedType(pos) {
4257
4257
  typeAnnotation: null,
4258
4258
  optional: null,
4259
4259
  readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 97),
4260
- start: start = deserializeU32(pos),
4261
- end: end = deserializeU32(pos + 4),
4260
+ start: start = deserializeI32(pos),
4261
+ end: end = deserializeI32(pos + 4),
4262
4262
  range: [start, end],
4263
4263
  parent
4264
4264
  }, optional = deserializeOptionTSMappedTypeModifierOperator(pos + 96);
@@ -4278,8 +4278,8 @@ function deserializeTSTemplateLiteralType(pos) {
4278
4278
  type: "TSTemplateLiteralType",
4279
4279
  quasis: null,
4280
4280
  types: null,
4281
- start: start = deserializeU32(pos),
4282
- end: end = deserializeU32(pos + 4),
4281
+ start: start = deserializeI32(pos),
4282
+ end: end = deserializeI32(pos + 4),
4283
4283
  range: [start, end],
4284
4284
  parent
4285
4285
  };
@@ -4291,8 +4291,8 @@ function deserializeTSAsExpression(pos) {
4291
4291
  type: "TSAsExpression",
4292
4292
  expression: null,
4293
4293
  typeAnnotation: null,
4294
- start: start = deserializeU32(pos),
4295
- end: end = deserializeU32(pos + 4),
4294
+ start: start = deserializeI32(pos),
4295
+ end: end = deserializeI32(pos + 4),
4296
4296
  range: [start, end],
4297
4297
  parent
4298
4298
  };
@@ -4304,8 +4304,8 @@ function deserializeTSSatisfiesExpression(pos) {
4304
4304
  type: "TSSatisfiesExpression",
4305
4305
  expression: null,
4306
4306
  typeAnnotation: null,
4307
- start: start = deserializeU32(pos),
4308
- end: end = deserializeU32(pos + 4),
4307
+ start: start = deserializeI32(pos),
4308
+ end: end = deserializeI32(pos + 4),
4309
4309
  range: [start, end],
4310
4310
  parent
4311
4311
  };
@@ -4317,8 +4317,8 @@ function deserializeTSTypeAssertion(pos) {
4317
4317
  type: "TSTypeAssertion",
4318
4318
  typeAnnotation: null,
4319
4319
  expression: null,
4320
- start: start = deserializeU32(pos),
4321
- end: end = deserializeU32(pos + 4),
4320
+ start: start = deserializeI32(pos),
4321
+ end: end = deserializeI32(pos + 4),
4322
4322
  range: [start, end],
4323
4323
  parent
4324
4324
  };
@@ -4331,8 +4331,8 @@ function deserializeTSImportEqualsDeclaration(pos) {
4331
4331
  id: null,
4332
4332
  moduleReference: null,
4333
4333
  importKind: deserializeImportOrExportKind(pos + 12),
4334
- start: start = deserializeU32(pos),
4335
- end: end = deserializeU32(pos + 4),
4334
+ start: start = deserializeI32(pos),
4335
+ end: end = deserializeI32(pos + 4),
4336
4336
  range: [start, end],
4337
4337
  parent
4338
4338
  };
@@ -4351,8 +4351,8 @@ function deserializeTSExternalModuleReference(pos) {
4351
4351
  __proto__: NodeProto,
4352
4352
  type: "TSExternalModuleReference",
4353
4353
  expression: null,
4354
- start: start = deserializeU32(pos),
4355
- end: end = deserializeU32(pos + 4),
4354
+ start: start = deserializeI32(pos),
4355
+ end: end = deserializeI32(pos + 4),
4356
4356
  range: [start, end],
4357
4357
  parent
4358
4358
  };
@@ -4363,8 +4363,8 @@ function deserializeTSNonNullExpression(pos) {
4363
4363
  __proto__: NodeProto,
4364
4364
  type: "TSNonNullExpression",
4365
4365
  expression: null,
4366
- start: start = deserializeU32(pos),
4367
- end: end = deserializeU32(pos + 4),
4366
+ start: start = deserializeI32(pos),
4367
+ end: end = deserializeI32(pos + 4),
4368
4368
  range: [start, end],
4369
4369
  parent
4370
4370
  };
@@ -4375,8 +4375,8 @@ function deserializeDecorator(pos) {
4375
4375
  __proto__: NodeProto,
4376
4376
  type: "Decorator",
4377
4377
  expression: null,
4378
- start: start = deserializeU32(pos),
4379
- end: end = deserializeU32(pos + 4),
4378
+ start: start = deserializeI32(pos),
4379
+ end: end = deserializeI32(pos + 4),
4380
4380
  range: [start, end],
4381
4381
  parent
4382
4382
  };
@@ -4387,8 +4387,8 @@ function deserializeTSExportAssignment(pos) {
4387
4387
  __proto__: NodeProto,
4388
4388
  type: "TSExportAssignment",
4389
4389
  expression: null,
4390
- start: start = deserializeU32(pos),
4391
- end: end = deserializeU32(pos + 4),
4390
+ start: start = deserializeI32(pos),
4391
+ end: end = deserializeI32(pos + 4),
4392
4392
  range: [start, end],
4393
4393
  parent
4394
4394
  };
@@ -4399,8 +4399,8 @@ function deserializeTSNamespaceExportDeclaration(pos) {
4399
4399
  __proto__: NodeProto,
4400
4400
  type: "TSNamespaceExportDeclaration",
4401
4401
  id: null,
4402
- start: start = deserializeU32(pos),
4403
- end: end = deserializeU32(pos + 4),
4402
+ start: start = deserializeI32(pos),
4403
+ end: end = deserializeI32(pos + 4),
4404
4404
  range: [start, end],
4405
4405
  parent
4406
4406
  };
@@ -4412,8 +4412,8 @@ function deserializeTSInstantiationExpression(pos) {
4412
4412
  type: "TSInstantiationExpression",
4413
4413
  expression: null,
4414
4414
  typeArguments: null,
4415
- start: start = deserializeU32(pos),
4416
- end: end = deserializeU32(pos + 4),
4415
+ start: start = deserializeI32(pos),
4416
+ end: end = deserializeI32(pos + 4),
4417
4417
  range: [start, end],
4418
4418
  parent
4419
4419
  };
@@ -4432,8 +4432,8 @@ function deserializeJSDocNullableType(pos) {
4432
4432
  type: "TSJSDocNullableType",
4433
4433
  typeAnnotation: null,
4434
4434
  postfix: deserializeBool(pos + 12),
4435
- start: start = deserializeU32(pos),
4436
- end: end = deserializeU32(pos + 4),
4435
+ start: start = deserializeI32(pos),
4436
+ end: end = deserializeI32(pos + 4),
4437
4437
  range: [start, end],
4438
4438
  parent
4439
4439
  };
@@ -4445,8 +4445,8 @@ function deserializeJSDocNonNullableType(pos) {
4445
4445
  type: "TSJSDocNonNullableType",
4446
4446
  typeAnnotation: null,
4447
4447
  postfix: deserializeBool(pos + 12),
4448
- start: start = deserializeU32(pos),
4449
- end: end = deserializeU32(pos + 4),
4448
+ start: start = deserializeI32(pos),
4449
+ end: end = deserializeI32(pos + 4),
4450
4450
  range: [start, end],
4451
4451
  parent
4452
4452
  };
@@ -4457,8 +4457,8 @@ function deserializeJSDocUnknownType(pos) {
4457
4457
  return {
4458
4458
  __proto__: NodeProto,
4459
4459
  type: "TSJSDocUnknownType",
4460
- start: start = deserializeU32(pos),
4461
- end: end = deserializeU32(pos + 4),
4460
+ start: start = deserializeI32(pos),
4461
+ end: end = deserializeI32(pos + 4),
4462
4462
  range: [start, end],
4463
4463
  parent
4464
4464
  };
@@ -4547,9 +4547,9 @@ function deserializeUpdateOperator(pos) {
4547
4547
  }
4548
4548
  }
4549
4549
  function deserializeStr(pos) {
4550
- let pos32 = pos >> 2, len = uint32[pos32 + 2];
4550
+ let pos32 = pos >> 2, len = int32[pos32 + 2];
4551
4551
  if (len === 0) return "";
4552
- pos = uint32[pos32];
4552
+ pos = int32[pos32];
4553
4553
  let end = pos + len, isInSourceRegion = pos >= sourceStartPos$1;
4554
4554
  if (isInSourceRegion && end <= firstNonAsciiPos) return sourceTextLatin.substr(pos - sourceStartPos$1, len);
4555
4555
  if (len > 64) return utf8Slice$1.call(uint8, pos, end);
@@ -4567,334 +4567,334 @@ function deserializeStr(pos) {
4567
4567
  }
4568
4568
  function deserializeVecDirective(pos) {
4569
4569
  let arr = [], pos32 = pos >> 2;
4570
- pos = uint32[pos32];
4571
- let endPos = pos + uint32[pos32 + 2] * 80;
4570
+ pos = int32[pos32];
4571
+ let endPos = pos + int32[pos32 + 2] * 80;
4572
4572
  for (; pos !== endPos;) arr.push(deserializeDirective(pos)), pos += 80;
4573
4573
  return arr;
4574
4574
  }
4575
4575
  function deserializeVecStatement(pos) {
4576
4576
  let arr = [], pos32 = pos >> 2;
4577
- pos = uint32[pos32];
4578
- let endPos = pos + uint32[pos32 + 2] * 16;
4577
+ pos = int32[pos32];
4578
+ let endPos = pos + (int32[pos32 + 2] << 4);
4579
4579
  for (; pos !== endPos;) arr.push(deserializeStatement(pos)), pos += 16;
4580
4580
  return arr;
4581
4581
  }
4582
4582
  function deserializeBoxBooleanLiteral(pos) {
4583
- return deserializeBooleanLiteral(uint32[pos >> 2]);
4583
+ return deserializeBooleanLiteral(int32[pos >> 2]);
4584
4584
  }
4585
4585
  function deserializeBoxNullLiteral(pos) {
4586
- return deserializeNullLiteral(uint32[pos >> 2]);
4586
+ return deserializeNullLiteral(int32[pos >> 2]);
4587
4587
  }
4588
4588
  function deserializeBoxNumericLiteral(pos) {
4589
- return deserializeNumericLiteral(uint32[pos >> 2]);
4589
+ return deserializeNumericLiteral(int32[pos >> 2]);
4590
4590
  }
4591
4591
  function deserializeBoxBigIntLiteral(pos) {
4592
- return deserializeBigIntLiteral(uint32[pos >> 2]);
4592
+ return deserializeBigIntLiteral(int32[pos >> 2]);
4593
4593
  }
4594
4594
  function deserializeBoxRegExpLiteral(pos) {
4595
- return deserializeRegExpLiteral(uint32[pos >> 2]);
4595
+ return deserializeRegExpLiteral(int32[pos >> 2]);
4596
4596
  }
4597
4597
  function deserializeBoxStringLiteral(pos) {
4598
- return deserializeStringLiteral(uint32[pos >> 2]);
4598
+ return deserializeStringLiteral(int32[pos >> 2]);
4599
4599
  }
4600
4600
  function deserializeBoxTemplateLiteral(pos) {
4601
- return deserializeTemplateLiteral(uint32[pos >> 2]);
4601
+ return deserializeTemplateLiteral(int32[pos >> 2]);
4602
4602
  }
4603
4603
  function deserializeBoxIdentifierReference(pos) {
4604
- return deserializeIdentifierReference(uint32[pos >> 2]);
4604
+ return deserializeIdentifierReference(int32[pos >> 2]);
4605
4605
  }
4606
4606
  function deserializeBoxMetaProperty(pos) {
4607
- return deserializeMetaProperty(uint32[pos >> 2]);
4607
+ return deserializeMetaProperty(int32[pos >> 2]);
4608
4608
  }
4609
4609
  function deserializeBoxSuper(pos) {
4610
- return deserializeSuper(uint32[pos >> 2]);
4610
+ return deserializeSuper(int32[pos >> 2]);
4611
4611
  }
4612
4612
  function deserializeBoxArrayExpression(pos) {
4613
- return deserializeArrayExpression(uint32[pos >> 2]);
4613
+ return deserializeArrayExpression(int32[pos >> 2]);
4614
4614
  }
4615
4615
  function deserializeBoxArrowFunctionExpression(pos) {
4616
- return deserializeArrowFunctionExpression(uint32[pos >> 2]);
4616
+ return deserializeArrowFunctionExpression(int32[pos >> 2]);
4617
4617
  }
4618
4618
  function deserializeBoxAssignmentExpression(pos) {
4619
- return deserializeAssignmentExpression(uint32[pos >> 2]);
4619
+ return deserializeAssignmentExpression(int32[pos >> 2]);
4620
4620
  }
4621
4621
  function deserializeBoxAwaitExpression(pos) {
4622
- return deserializeAwaitExpression(uint32[pos >> 2]);
4622
+ return deserializeAwaitExpression(int32[pos >> 2]);
4623
4623
  }
4624
4624
  function deserializeBoxBinaryExpression(pos) {
4625
- return deserializeBinaryExpression(uint32[pos >> 2]);
4625
+ return deserializeBinaryExpression(int32[pos >> 2]);
4626
4626
  }
4627
4627
  function deserializeBoxCallExpression(pos) {
4628
- return deserializeCallExpression(uint32[pos >> 2]);
4628
+ return deserializeCallExpression(int32[pos >> 2]);
4629
4629
  }
4630
4630
  function deserializeBoxChainExpression(pos) {
4631
- return deserializeChainExpression(uint32[pos >> 2]);
4631
+ return deserializeChainExpression(int32[pos >> 2]);
4632
4632
  }
4633
4633
  function deserializeBoxClass(pos) {
4634
- return deserializeClass(uint32[pos >> 2]);
4634
+ return deserializeClass(int32[pos >> 2]);
4635
4635
  }
4636
4636
  function deserializeBoxConditionalExpression(pos) {
4637
- return deserializeConditionalExpression(uint32[pos >> 2]);
4637
+ return deserializeConditionalExpression(int32[pos >> 2]);
4638
4638
  }
4639
4639
  function deserializeBoxFunction(pos) {
4640
- return deserializeFunction(uint32[pos >> 2]);
4640
+ return deserializeFunction(int32[pos >> 2]);
4641
4641
  }
4642
4642
  function deserializeBoxImportExpression(pos) {
4643
- return deserializeImportExpression(uint32[pos >> 2]);
4643
+ return deserializeImportExpression(int32[pos >> 2]);
4644
4644
  }
4645
4645
  function deserializeBoxLogicalExpression(pos) {
4646
- return deserializeLogicalExpression(uint32[pos >> 2]);
4646
+ return deserializeLogicalExpression(int32[pos >> 2]);
4647
4647
  }
4648
4648
  function deserializeBoxNewExpression(pos) {
4649
- return deserializeNewExpression(uint32[pos >> 2]);
4649
+ return deserializeNewExpression(int32[pos >> 2]);
4650
4650
  }
4651
4651
  function deserializeBoxObjectExpression(pos) {
4652
- return deserializeObjectExpression(uint32[pos >> 2]);
4652
+ return deserializeObjectExpression(int32[pos >> 2]);
4653
4653
  }
4654
4654
  function deserializeBoxParenthesizedExpression(pos) {
4655
- return deserializeParenthesizedExpression(uint32[pos >> 2]);
4655
+ return deserializeParenthesizedExpression(int32[pos >> 2]);
4656
4656
  }
4657
4657
  function deserializeBoxSequenceExpression(pos) {
4658
- return deserializeSequenceExpression(uint32[pos >> 2]);
4658
+ return deserializeSequenceExpression(int32[pos >> 2]);
4659
4659
  }
4660
4660
  function deserializeBoxTaggedTemplateExpression(pos) {
4661
- return deserializeTaggedTemplateExpression(uint32[pos >> 2]);
4661
+ return deserializeTaggedTemplateExpression(int32[pos >> 2]);
4662
4662
  }
4663
4663
  function deserializeBoxThisExpression(pos) {
4664
- return deserializeThisExpression(uint32[pos >> 2]);
4664
+ return deserializeThisExpression(int32[pos >> 2]);
4665
4665
  }
4666
4666
  function deserializeBoxUnaryExpression(pos) {
4667
- return deserializeUnaryExpression(uint32[pos >> 2]);
4667
+ return deserializeUnaryExpression(int32[pos >> 2]);
4668
4668
  }
4669
4669
  function deserializeBoxUpdateExpression(pos) {
4670
- return deserializeUpdateExpression(uint32[pos >> 2]);
4670
+ return deserializeUpdateExpression(int32[pos >> 2]);
4671
4671
  }
4672
4672
  function deserializeBoxYieldExpression(pos) {
4673
- return deserializeYieldExpression(uint32[pos >> 2]);
4673
+ return deserializeYieldExpression(int32[pos >> 2]);
4674
4674
  }
4675
4675
  function deserializeBoxPrivateInExpression(pos) {
4676
- return deserializePrivateInExpression(uint32[pos >> 2]);
4676
+ return deserializePrivateInExpression(int32[pos >> 2]);
4677
4677
  }
4678
4678
  function deserializeBoxJSXElement(pos) {
4679
- return deserializeJSXElement(uint32[pos >> 2]);
4679
+ return deserializeJSXElement(int32[pos >> 2]);
4680
4680
  }
4681
4681
  function deserializeBoxJSXFragment(pos) {
4682
- return deserializeJSXFragment(uint32[pos >> 2]);
4682
+ return deserializeJSXFragment(int32[pos >> 2]);
4683
4683
  }
4684
4684
  function deserializeBoxTSAsExpression(pos) {
4685
- return deserializeTSAsExpression(uint32[pos >> 2]);
4685
+ return deserializeTSAsExpression(int32[pos >> 2]);
4686
4686
  }
4687
4687
  function deserializeBoxTSSatisfiesExpression(pos) {
4688
- return deserializeTSSatisfiesExpression(uint32[pos >> 2]);
4688
+ return deserializeTSSatisfiesExpression(int32[pos >> 2]);
4689
4689
  }
4690
4690
  function deserializeBoxTSTypeAssertion(pos) {
4691
- return deserializeTSTypeAssertion(uint32[pos >> 2]);
4691
+ return deserializeTSTypeAssertion(int32[pos >> 2]);
4692
4692
  }
4693
4693
  function deserializeBoxTSNonNullExpression(pos) {
4694
- return deserializeTSNonNullExpression(uint32[pos >> 2]);
4694
+ return deserializeTSNonNullExpression(int32[pos >> 2]);
4695
4695
  }
4696
4696
  function deserializeBoxTSInstantiationExpression(pos) {
4697
- return deserializeTSInstantiationExpression(uint32[pos >> 2]);
4697
+ return deserializeTSInstantiationExpression(int32[pos >> 2]);
4698
4698
  }
4699
4699
  function deserializeBoxV8IntrinsicExpression(pos) {
4700
- return deserializeV8IntrinsicExpression(uint32[pos >> 2]);
4700
+ return deserializeV8IntrinsicExpression(int32[pos >> 2]);
4701
4701
  }
4702
4702
  function deserializeVecArrayExpressionElement(pos) {
4703
4703
  let arr = [], pos32 = pos >> 2;
4704
- pos = uint32[pos32];
4705
- let endPos = pos + uint32[pos32 + 2] * 24;
4704
+ pos = int32[pos32];
4705
+ let endPos = pos + int32[pos32 + 2] * 24;
4706
4706
  for (; pos !== endPos;) arr.push(deserializeArrayExpressionElement(pos)), pos += 24;
4707
4707
  return arr;
4708
4708
  }
4709
4709
  function deserializeBoxSpreadElement(pos) {
4710
- return deserializeSpreadElement(uint32[pos >> 2]);
4710
+ return deserializeSpreadElement(int32[pos >> 2]);
4711
4711
  }
4712
4712
  function deserializeVecObjectPropertyKind(pos) {
4713
4713
  let arr = [], pos32 = pos >> 2;
4714
- pos = uint32[pos32];
4715
- let endPos = pos + uint32[pos32 + 2] * 16;
4714
+ pos = int32[pos32];
4715
+ let endPos = pos + (int32[pos32 + 2] << 4);
4716
4716
  for (; pos !== endPos;) arr.push(deserializeObjectPropertyKind(pos)), pos += 16;
4717
4717
  return arr;
4718
4718
  }
4719
4719
  function deserializeBoxObjectProperty(pos) {
4720
- return deserializeObjectProperty(uint32[pos >> 2]);
4720
+ return deserializeObjectProperty(int32[pos >> 2]);
4721
4721
  }
4722
4722
  function deserializeBool(pos) {
4723
4723
  return uint8[pos] === 1;
4724
4724
  }
4725
4725
  function deserializeBoxIdentifierName(pos) {
4726
- return deserializeIdentifierName(uint32[pos >> 2]);
4726
+ return deserializeIdentifierName(int32[pos >> 2]);
4727
4727
  }
4728
4728
  function deserializeBoxPrivateIdentifier(pos) {
4729
- return deserializePrivateIdentifier(uint32[pos >> 2]);
4729
+ return deserializePrivateIdentifier(int32[pos >> 2]);
4730
4730
  }
4731
4731
  function deserializeVecTemplateElement(pos) {
4732
4732
  let arr = [], pos32 = pos >> 2;
4733
- pos = uint32[pos32];
4734
- let endPos = pos + uint32[pos32 + 2] * 48;
4733
+ pos = int32[pos32];
4734
+ let endPos = pos + int32[pos32 + 2] * 48;
4735
4735
  for (; pos !== endPos;) arr.push(deserializeTemplateElement(pos)), pos += 48;
4736
4736
  return arr;
4737
4737
  }
4738
4738
  function deserializeVecExpression(pos) {
4739
4739
  let arr = [], pos32 = pos >> 2;
4740
- pos = uint32[pos32];
4741
- let endPos = pos + uint32[pos32 + 2] * 16;
4740
+ pos = int32[pos32];
4741
+ let endPos = pos + (int32[pos32 + 2] << 4);
4742
4742
  for (; pos !== endPos;) arr.push(deserializeExpression(pos)), pos += 16;
4743
4743
  return arr;
4744
4744
  }
4745
4745
  function deserializeBoxTSTypeParameterInstantiation(pos) {
4746
- return deserializeTSTypeParameterInstantiation(uint32[pos >> 2]);
4746
+ return deserializeTSTypeParameterInstantiation(int32[pos >> 2]);
4747
4747
  }
4748
4748
  function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
4749
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxTSTypeParameterInstantiation(pos);
4749
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSTypeParameterInstantiation(pos);
4750
4750
  }
4751
4751
  function deserializeOptionStr(pos) {
4752
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeStr(pos);
4752
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeStr(pos);
4753
4753
  }
4754
4754
  function deserializeBoxComputedMemberExpression(pos) {
4755
- return deserializeComputedMemberExpression(uint32[pos >> 2]);
4755
+ return deserializeComputedMemberExpression(int32[pos >> 2]);
4756
4756
  }
4757
4757
  function deserializeBoxStaticMemberExpression(pos) {
4758
- return deserializeStaticMemberExpression(uint32[pos >> 2]);
4758
+ return deserializeStaticMemberExpression(int32[pos >> 2]);
4759
4759
  }
4760
4760
  function deserializeBoxPrivateFieldExpression(pos) {
4761
- return deserializePrivateFieldExpression(uint32[pos >> 2]);
4761
+ return deserializePrivateFieldExpression(int32[pos >> 2]);
4762
4762
  }
4763
4763
  function deserializeVecArgument(pos) {
4764
4764
  let arr = [], pos32 = pos >> 2;
4765
- pos = uint32[pos32];
4766
- let endPos = pos + uint32[pos32 + 2] * 16;
4765
+ pos = int32[pos32];
4766
+ let endPos = pos + (int32[pos32 + 2] << 4);
4767
4767
  for (; pos !== endPos;) arr.push(deserializeArgument(pos)), pos += 16;
4768
4768
  return arr;
4769
4769
  }
4770
4770
  function deserializeBoxArrayAssignmentTarget(pos) {
4771
- return deserializeArrayAssignmentTarget(uint32[pos >> 2]);
4771
+ return deserializeArrayAssignmentTarget(int32[pos >> 2]);
4772
4772
  }
4773
4773
  function deserializeBoxObjectAssignmentTarget(pos) {
4774
- return deserializeObjectAssignmentTarget(uint32[pos >> 2]);
4774
+ return deserializeObjectAssignmentTarget(int32[pos >> 2]);
4775
4775
  }
4776
4776
  function deserializeOptionAssignmentTargetMaybeDefault(pos) {
4777
4777
  return uint8[pos] === 51 ? null : deserializeAssignmentTargetMaybeDefault(pos);
4778
4778
  }
4779
4779
  function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
4780
4780
  let arr = [], pos32 = pos >> 2;
4781
- pos = uint32[pos32];
4782
- let endPos = pos + uint32[pos32 + 2] * 16;
4781
+ pos = int32[pos32];
4782
+ let endPos = pos + (int32[pos32 + 2] << 4);
4783
4783
  for (; pos !== endPos;) arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos)), pos += 16;
4784
4784
  return arr;
4785
4785
  }
4786
4786
  function deserializeBoxAssignmentTargetRest(pos) {
4787
- return deserializeAssignmentTargetRest(uint32[pos >> 2]);
4787
+ return deserializeAssignmentTargetRest(int32[pos >> 2]);
4788
4788
  }
4789
4789
  function deserializeOptionBoxAssignmentTargetRest(pos) {
4790
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxAssignmentTargetRest(pos);
4790
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxAssignmentTargetRest(pos);
4791
4791
  }
4792
4792
  function deserializeVecAssignmentTargetProperty(pos) {
4793
4793
  let arr = [], pos32 = pos >> 2;
4794
- pos = uint32[pos32];
4795
- let endPos = pos + uint32[pos32 + 2] * 16;
4794
+ pos = int32[pos32];
4795
+ let endPos = pos + (int32[pos32 + 2] << 4);
4796
4796
  for (; pos !== endPos;) arr.push(deserializeAssignmentTargetProperty(pos)), pos += 16;
4797
4797
  return arr;
4798
4798
  }
4799
4799
  function deserializeBoxAssignmentTargetWithDefault(pos) {
4800
- return deserializeAssignmentTargetWithDefault(uint32[pos >> 2]);
4800
+ return deserializeAssignmentTargetWithDefault(int32[pos >> 2]);
4801
4801
  }
4802
4802
  function deserializeBoxAssignmentTargetPropertyIdentifier(pos) {
4803
- return deserializeAssignmentTargetPropertyIdentifier(uint32[pos >> 2]);
4803
+ return deserializeAssignmentTargetPropertyIdentifier(int32[pos >> 2]);
4804
4804
  }
4805
4805
  function deserializeBoxAssignmentTargetPropertyProperty(pos) {
4806
- return deserializeAssignmentTargetPropertyProperty(uint32[pos >> 2]);
4806
+ return deserializeAssignmentTargetPropertyProperty(int32[pos >> 2]);
4807
4807
  }
4808
4808
  function deserializeOptionExpression(pos) {
4809
4809
  return uint8[pos] === 51 ? null : deserializeExpression(pos);
4810
4810
  }
4811
4811
  function deserializeBoxBlockStatement(pos) {
4812
- return deserializeBlockStatement(uint32[pos >> 2]);
4812
+ return deserializeBlockStatement(int32[pos >> 2]);
4813
4813
  }
4814
4814
  function deserializeBoxBreakStatement(pos) {
4815
- return deserializeBreakStatement(uint32[pos >> 2]);
4815
+ return deserializeBreakStatement(int32[pos >> 2]);
4816
4816
  }
4817
4817
  function deserializeBoxContinueStatement(pos) {
4818
- return deserializeContinueStatement(uint32[pos >> 2]);
4818
+ return deserializeContinueStatement(int32[pos >> 2]);
4819
4819
  }
4820
4820
  function deserializeBoxDebuggerStatement(pos) {
4821
- return deserializeDebuggerStatement(uint32[pos >> 2]);
4821
+ return deserializeDebuggerStatement(int32[pos >> 2]);
4822
4822
  }
4823
4823
  function deserializeBoxDoWhileStatement(pos) {
4824
- return deserializeDoWhileStatement(uint32[pos >> 2]);
4824
+ return deserializeDoWhileStatement(int32[pos >> 2]);
4825
4825
  }
4826
4826
  function deserializeBoxEmptyStatement(pos) {
4827
- return deserializeEmptyStatement(uint32[pos >> 2]);
4827
+ return deserializeEmptyStatement(int32[pos >> 2]);
4828
4828
  }
4829
4829
  function deserializeBoxExpressionStatement(pos) {
4830
- return deserializeExpressionStatement(uint32[pos >> 2]);
4830
+ return deserializeExpressionStatement(int32[pos >> 2]);
4831
4831
  }
4832
4832
  function deserializeBoxForInStatement(pos) {
4833
- return deserializeForInStatement(uint32[pos >> 2]);
4833
+ return deserializeForInStatement(int32[pos >> 2]);
4834
4834
  }
4835
4835
  function deserializeBoxForOfStatement(pos) {
4836
- return deserializeForOfStatement(uint32[pos >> 2]);
4836
+ return deserializeForOfStatement(int32[pos >> 2]);
4837
4837
  }
4838
4838
  function deserializeBoxForStatement(pos) {
4839
- return deserializeForStatement(uint32[pos >> 2]);
4839
+ return deserializeForStatement(int32[pos >> 2]);
4840
4840
  }
4841
4841
  function deserializeBoxIfStatement(pos) {
4842
- return deserializeIfStatement(uint32[pos >> 2]);
4842
+ return deserializeIfStatement(int32[pos >> 2]);
4843
4843
  }
4844
4844
  function deserializeBoxLabeledStatement(pos) {
4845
- return deserializeLabeledStatement(uint32[pos >> 2]);
4845
+ return deserializeLabeledStatement(int32[pos >> 2]);
4846
4846
  }
4847
4847
  function deserializeBoxReturnStatement(pos) {
4848
- return deserializeReturnStatement(uint32[pos >> 2]);
4848
+ return deserializeReturnStatement(int32[pos >> 2]);
4849
4849
  }
4850
4850
  function deserializeBoxSwitchStatement(pos) {
4851
- return deserializeSwitchStatement(uint32[pos >> 2]);
4851
+ return deserializeSwitchStatement(int32[pos >> 2]);
4852
4852
  }
4853
4853
  function deserializeBoxThrowStatement(pos) {
4854
- return deserializeThrowStatement(uint32[pos >> 2]);
4854
+ return deserializeThrowStatement(int32[pos >> 2]);
4855
4855
  }
4856
4856
  function deserializeBoxTryStatement(pos) {
4857
- return deserializeTryStatement(uint32[pos >> 2]);
4857
+ return deserializeTryStatement(int32[pos >> 2]);
4858
4858
  }
4859
4859
  function deserializeBoxWhileStatement(pos) {
4860
- return deserializeWhileStatement(uint32[pos >> 2]);
4860
+ return deserializeWhileStatement(int32[pos >> 2]);
4861
4861
  }
4862
4862
  function deserializeBoxWithStatement(pos) {
4863
- return deserializeWithStatement(uint32[pos >> 2]);
4863
+ return deserializeWithStatement(int32[pos >> 2]);
4864
4864
  }
4865
4865
  function deserializeBoxVariableDeclaration(pos) {
4866
- return deserializeVariableDeclaration(uint32[pos >> 2]);
4866
+ return deserializeVariableDeclaration(int32[pos >> 2]);
4867
4867
  }
4868
4868
  function deserializeBoxTSTypeAliasDeclaration(pos) {
4869
- return deserializeTSTypeAliasDeclaration(uint32[pos >> 2]);
4869
+ return deserializeTSTypeAliasDeclaration(int32[pos >> 2]);
4870
4870
  }
4871
4871
  function deserializeBoxTSInterfaceDeclaration(pos) {
4872
- return deserializeTSInterfaceDeclaration(uint32[pos >> 2]);
4872
+ return deserializeTSInterfaceDeclaration(int32[pos >> 2]);
4873
4873
  }
4874
4874
  function deserializeBoxTSEnumDeclaration(pos) {
4875
- return deserializeTSEnumDeclaration(uint32[pos >> 2]);
4875
+ return deserializeTSEnumDeclaration(int32[pos >> 2]);
4876
4876
  }
4877
4877
  function deserializeBoxTSModuleDeclaration(pos) {
4878
- return deserializeTSModuleDeclaration(uint32[pos >> 2]);
4878
+ return deserializeTSModuleDeclaration(int32[pos >> 2]);
4879
4879
  }
4880
4880
  function deserializeBoxTSGlobalDeclaration(pos) {
4881
- return deserializeTSGlobalDeclaration(uint32[pos >> 2]);
4881
+ return deserializeTSGlobalDeclaration(int32[pos >> 2]);
4882
4882
  }
4883
4883
  function deserializeBoxTSImportEqualsDeclaration(pos) {
4884
- return deserializeTSImportEqualsDeclaration(uint32[pos >> 2]);
4884
+ return deserializeTSImportEqualsDeclaration(int32[pos >> 2]);
4885
4885
  }
4886
4886
  function deserializeVecVariableDeclarator(pos) {
4887
4887
  let arr = [], pos32 = pos >> 2;
4888
- pos = uint32[pos32];
4889
- let endPos = pos + uint32[pos32 + 2] * 56;
4888
+ pos = int32[pos32];
4889
+ let endPos = pos + int32[pos32 + 2] * 56;
4890
4890
  for (; pos !== endPos;) arr.push(deserializeVariableDeclarator(pos)), pos += 56;
4891
4891
  return arr;
4892
4892
  }
4893
4893
  function deserializeBoxTSTypeAnnotation(pos) {
4894
- return deserializeTSTypeAnnotation(uint32[pos >> 2]);
4894
+ return deserializeTSTypeAnnotation(int32[pos >> 2]);
4895
4895
  }
4896
4896
  function deserializeOptionBoxTSTypeAnnotation(pos) {
4897
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxTSTypeAnnotation(pos);
4897
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSTypeAnnotation(pos);
4898
4898
  }
4899
4899
  function deserializeOptionStatement(pos) {
4900
4900
  return uint8[pos] === 70 ? null : deserializeStatement(pos);
@@ -4903,191 +4903,191 @@ function deserializeOptionForStatementInit(pos) {
4903
4903
  return uint8[pos] === 65 ? null : deserializeForStatementInit(pos);
4904
4904
  }
4905
4905
  function deserializeOptionLabelIdentifier(pos) {
4906
- return uint32[pos + 16 >> 2] === 0 && uint32[pos + 20 >> 2] === 0 ? null : deserializeLabelIdentifier(pos);
4906
+ return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0 ? null : deserializeLabelIdentifier(pos);
4907
4907
  }
4908
4908
  function deserializeVecSwitchCase(pos) {
4909
4909
  let arr = [], pos32 = pos >> 2;
4910
- pos = uint32[pos32];
4911
- let endPos = pos + uint32[pos32 + 2] * 56;
4910
+ pos = int32[pos32];
4911
+ let endPos = pos + int32[pos32 + 2] * 56;
4912
4912
  for (; pos !== endPos;) arr.push(deserializeSwitchCase(pos)), pos += 56;
4913
4913
  return arr;
4914
4914
  }
4915
4915
  function deserializeBoxCatchClause(pos) {
4916
- return deserializeCatchClause(uint32[pos >> 2]);
4916
+ return deserializeCatchClause(int32[pos >> 2]);
4917
4917
  }
4918
4918
  function deserializeOptionBoxCatchClause(pos) {
4919
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxCatchClause(pos);
4919
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxCatchClause(pos);
4920
4920
  }
4921
4921
  function deserializeOptionBoxBlockStatement(pos) {
4922
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxBlockStatement(pos);
4922
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxBlockStatement(pos);
4923
4923
  }
4924
4924
  function deserializeOptionCatchParameter(pos) {
4925
4925
  return uint8[pos + 16] === 4 ? null : deserializeCatchParameter(pos);
4926
4926
  }
4927
4927
  function deserializeBoxBindingIdentifier(pos) {
4928
- return deserializeBindingIdentifier(uint32[pos >> 2]);
4928
+ return deserializeBindingIdentifier(int32[pos >> 2]);
4929
4929
  }
4930
4930
  function deserializeBoxObjectPattern(pos) {
4931
- return deserializeObjectPattern(uint32[pos >> 2]);
4931
+ return deserializeObjectPattern(int32[pos >> 2]);
4932
4932
  }
4933
4933
  function deserializeBoxArrayPattern(pos) {
4934
- return deserializeArrayPattern(uint32[pos >> 2]);
4934
+ return deserializeArrayPattern(int32[pos >> 2]);
4935
4935
  }
4936
4936
  function deserializeBoxAssignmentPattern(pos) {
4937
- return deserializeAssignmentPattern(uint32[pos >> 2]);
4937
+ return deserializeAssignmentPattern(int32[pos >> 2]);
4938
4938
  }
4939
4939
  function deserializeVecBindingProperty(pos) {
4940
4940
  let arr = [], pos32 = pos >> 2;
4941
- pos = uint32[pos32];
4942
- let endPos = pos + uint32[pos32 + 2] * 48;
4941
+ pos = int32[pos32];
4942
+ let endPos = pos + int32[pos32 + 2] * 48;
4943
4943
  for (; pos !== endPos;) arr.push(deserializeBindingProperty(pos)), pos += 48;
4944
4944
  return arr;
4945
4945
  }
4946
4946
  function deserializeBoxBindingRestElement(pos) {
4947
- return deserializeBindingRestElement(uint32[pos >> 2]);
4947
+ return deserializeBindingRestElement(int32[pos >> 2]);
4948
4948
  }
4949
4949
  function deserializeOptionBoxBindingRestElement(pos) {
4950
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxBindingRestElement(pos);
4950
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxBindingRestElement(pos);
4951
4951
  }
4952
4952
  function deserializeOptionBindingPattern(pos) {
4953
4953
  return uint8[pos] === 4 ? null : deserializeBindingPattern(pos);
4954
4954
  }
4955
4955
  function deserializeVecOptionBindingPattern(pos) {
4956
4956
  let arr = [], pos32 = pos >> 2;
4957
- pos = uint32[pos32];
4958
- let endPos = pos + uint32[pos32 + 2] * 16;
4957
+ pos = int32[pos32];
4958
+ let endPos = pos + (int32[pos32 + 2] << 4);
4959
4959
  for (; pos !== endPos;) arr.push(deserializeOptionBindingPattern(pos)), pos += 16;
4960
4960
  return arr;
4961
4961
  }
4962
4962
  function deserializeOptionBindingIdentifier(pos) {
4963
- return uint32[pos + 16 >> 2] === 0 && uint32[pos + 20 >> 2] === 0 ? null : deserializeBindingIdentifier(pos);
4963
+ return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0 ? null : deserializeBindingIdentifier(pos);
4964
4964
  }
4965
4965
  function deserializeBoxTSTypeParameterDeclaration(pos) {
4966
- return deserializeTSTypeParameterDeclaration(uint32[pos >> 2]);
4966
+ return deserializeTSTypeParameterDeclaration(int32[pos >> 2]);
4967
4967
  }
4968
4968
  function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
4969
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxTSTypeParameterDeclaration(pos);
4969
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSTypeParameterDeclaration(pos);
4970
4970
  }
4971
4971
  function deserializeBoxTSThisParameter(pos) {
4972
- return deserializeTSThisParameter(uint32[pos >> 2]);
4972
+ return deserializeTSThisParameter(int32[pos >> 2]);
4973
4973
  }
4974
4974
  function deserializeOptionBoxTSThisParameter(pos) {
4975
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxTSThisParameter(pos);
4975
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxTSThisParameter(pos);
4976
4976
  }
4977
4977
  function deserializeBoxFormalParameters(pos) {
4978
- return deserializeFormalParameters(uint32[pos >> 2]);
4978
+ return deserializeFormalParameters(int32[pos >> 2]);
4979
4979
  }
4980
4980
  function deserializeBoxFunctionBody(pos) {
4981
- return deserializeFunctionBody(uint32[pos >> 2]);
4981
+ return deserializeFunctionBody(int32[pos >> 2]);
4982
4982
  }
4983
4983
  function deserializeOptionBoxFunctionBody(pos) {
4984
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxFunctionBody(pos);
4984
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxFunctionBody(pos);
4985
4985
  }
4986
4986
  function deserializeVecFormalParameter(pos) {
4987
4987
  let arr = [], pos32 = pos >> 2;
4988
- pos = uint32[pos32];
4989
- let endPos = pos + uint32[pos32 + 2] * 72;
4988
+ pos = int32[pos32];
4989
+ let endPos = pos + int32[pos32 + 2] * 72;
4990
4990
  for (; pos !== endPos;) arr.push(deserializeFormalParameter(pos)), pos += 72;
4991
4991
  return arr;
4992
4992
  }
4993
4993
  function deserializeVecDecorator(pos) {
4994
4994
  let arr = [], pos32 = pos >> 2;
4995
- pos = uint32[pos32];
4996
- let endPos = pos + uint32[pos32 + 2] * 32;
4995
+ pos = int32[pos32];
4996
+ let endPos = pos + (int32[pos32 + 2] << 5);
4997
4997
  for (; pos !== endPos;) arr.push(deserializeDecorator(pos)), pos += 32;
4998
4998
  return arr;
4999
4999
  }
5000
5000
  function deserializeBoxExpression(pos) {
5001
- return deserializeExpression(uint32[pos >> 2]);
5001
+ return deserializeExpression(int32[pos >> 2]);
5002
5002
  }
5003
5003
  function deserializeOptionBoxExpression(pos) {
5004
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxExpression(pos);
5004
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxExpression(pos);
5005
5005
  }
5006
5006
  function deserializeOptionTSAccessibility(pos) {
5007
5007
  return uint8[pos] === 3 ? null : deserializeTSAccessibility(pos);
5008
5008
  }
5009
5009
  function deserializeVecTSClassImplements(pos) {
5010
5010
  let arr = [], pos32 = pos >> 2;
5011
- pos = uint32[pos32];
5012
- let endPos = pos + uint32[pos32 + 2] * 40;
5011
+ pos = int32[pos32];
5012
+ let endPos = pos + int32[pos32 + 2] * 40;
5013
5013
  for (; pos !== endPos;) arr.push(deserializeTSClassImplements(pos)), pos += 40;
5014
5014
  return arr;
5015
5015
  }
5016
5016
  function deserializeBoxClassBody(pos) {
5017
- return deserializeClassBody(uint32[pos >> 2]);
5017
+ return deserializeClassBody(int32[pos >> 2]);
5018
5018
  }
5019
5019
  function deserializeVecClassElement(pos) {
5020
5020
  let arr = [], pos32 = pos >> 2;
5021
- pos = uint32[pos32];
5022
- let endPos = pos + uint32[pos32 + 2] * 16;
5021
+ pos = int32[pos32];
5022
+ let endPos = pos + (int32[pos32 + 2] << 4);
5023
5023
  for (; pos !== endPos;) arr.push(deserializeClassElement(pos)), pos += 16;
5024
5024
  return arr;
5025
5025
  }
5026
5026
  function deserializeBoxStaticBlock(pos) {
5027
- return deserializeStaticBlock(uint32[pos >> 2]);
5027
+ return deserializeStaticBlock(int32[pos >> 2]);
5028
5028
  }
5029
5029
  function deserializeBoxMethodDefinition(pos) {
5030
- return deserializeMethodDefinition(uint32[pos >> 2]);
5030
+ return deserializeMethodDefinition(int32[pos >> 2]);
5031
5031
  }
5032
5032
  function deserializeBoxPropertyDefinition(pos) {
5033
- return deserializePropertyDefinition(uint32[pos >> 2]);
5033
+ return deserializePropertyDefinition(int32[pos >> 2]);
5034
5034
  }
5035
5035
  function deserializeBoxAccessorProperty(pos) {
5036
- return deserializeAccessorProperty(uint32[pos >> 2]);
5036
+ return deserializeAccessorProperty(int32[pos >> 2]);
5037
5037
  }
5038
5038
  function deserializeBoxTSIndexSignature(pos) {
5039
- return deserializeTSIndexSignature(uint32[pos >> 2]);
5039
+ return deserializeTSIndexSignature(int32[pos >> 2]);
5040
5040
  }
5041
5041
  function deserializeBoxImportDeclaration(pos) {
5042
- return deserializeImportDeclaration(uint32[pos >> 2]);
5042
+ return deserializeImportDeclaration(int32[pos >> 2]);
5043
5043
  }
5044
5044
  function deserializeBoxExportAllDeclaration(pos) {
5045
- return deserializeExportAllDeclaration(uint32[pos >> 2]);
5045
+ return deserializeExportAllDeclaration(int32[pos >> 2]);
5046
5046
  }
5047
5047
  function deserializeBoxExportDefaultDeclaration(pos) {
5048
- return deserializeExportDefaultDeclaration(uint32[pos >> 2]);
5048
+ return deserializeExportDefaultDeclaration(int32[pos >> 2]);
5049
5049
  }
5050
5050
  function deserializeBoxExportNamedDeclaration(pos) {
5051
- return deserializeExportNamedDeclaration(uint32[pos >> 2]);
5051
+ return deserializeExportNamedDeclaration(int32[pos >> 2]);
5052
5052
  }
5053
5053
  function deserializeBoxTSExportAssignment(pos) {
5054
- return deserializeTSExportAssignment(uint32[pos >> 2]);
5054
+ return deserializeTSExportAssignment(int32[pos >> 2]);
5055
5055
  }
5056
5056
  function deserializeBoxTSNamespaceExportDeclaration(pos) {
5057
- return deserializeTSNamespaceExportDeclaration(uint32[pos >> 2]);
5057
+ return deserializeTSNamespaceExportDeclaration(int32[pos >> 2]);
5058
5058
  }
5059
5059
  function deserializeOptionImportPhase(pos) {
5060
5060
  return uint8[pos] === 2 ? null : deserializeImportPhase(pos);
5061
5061
  }
5062
5062
  function deserializeVecImportDeclarationSpecifier(pos) {
5063
5063
  let arr = [], pos32 = pos >> 2;
5064
- pos = uint32[pos32];
5065
- let endPos = pos + uint32[pos32 + 2] * 16;
5064
+ pos = int32[pos32];
5065
+ let endPos = pos + (int32[pos32 + 2] << 4);
5066
5066
  for (; pos !== endPos;) arr.push(deserializeImportDeclarationSpecifier(pos)), pos += 16;
5067
5067
  return arr;
5068
5068
  }
5069
5069
  function deserializeOptionVecImportDeclarationSpecifier(pos) {
5070
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeVecImportDeclarationSpecifier(pos);
5070
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeVecImportDeclarationSpecifier(pos);
5071
5071
  }
5072
5072
  function deserializeBoxWithClause(pos) {
5073
- return deserializeWithClause(uint32[pos >> 2]);
5073
+ return deserializeWithClause(int32[pos >> 2]);
5074
5074
  }
5075
5075
  function deserializeOptionBoxWithClause(pos) {
5076
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxWithClause(pos);
5076
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxWithClause(pos);
5077
5077
  }
5078
5078
  function deserializeBoxImportSpecifier(pos) {
5079
- return deserializeImportSpecifier(uint32[pos >> 2]);
5079
+ return deserializeImportSpecifier(int32[pos >> 2]);
5080
5080
  }
5081
5081
  function deserializeBoxImportDefaultSpecifier(pos) {
5082
- return deserializeImportDefaultSpecifier(uint32[pos >> 2]);
5082
+ return deserializeImportDefaultSpecifier(int32[pos >> 2]);
5083
5083
  }
5084
5084
  function deserializeBoxImportNamespaceSpecifier(pos) {
5085
- return deserializeImportNamespaceSpecifier(uint32[pos >> 2]);
5085
+ return deserializeImportNamespaceSpecifier(int32[pos >> 2]);
5086
5086
  }
5087
5087
  function deserializeVecImportAttribute(pos) {
5088
5088
  let arr = [], pos32 = pos >> 2;
5089
- pos = uint32[pos32];
5090
- let endPos = pos + uint32[pos32 + 2] * 120;
5089
+ pos = int32[pos32];
5090
+ let endPos = pos + int32[pos32 + 2] * 120;
5091
5091
  for (; pos !== endPos;) arr.push(deserializeImportAttribute(pos)), pos += 120;
5092
5092
  return arr;
5093
5093
  }
@@ -5096,8 +5096,8 @@ function deserializeOptionDeclaration(pos) {
5096
5096
  }
5097
5097
  function deserializeVecExportSpecifier(pos) {
5098
5098
  let arr = [], pos32 = pos >> 2;
5099
- pos = uint32[pos32];
5100
- let endPos = pos + uint32[pos32 + 2] * 128;
5099
+ pos = int32[pos32];
5100
+ let endPos = pos + (int32[pos32 + 2] << 7);
5101
5101
  for (; pos !== endPos;) arr.push(deserializeExportSpecifier(pos)), pos += 128;
5102
5102
  return arr;
5103
5103
  }
@@ -5114,239 +5114,239 @@ function deserializeU8(pos) {
5114
5114
  return uint8[pos];
5115
5115
  }
5116
5116
  function deserializeBoxJSXOpeningElement(pos) {
5117
- return deserializeJSXOpeningElement(uint32[pos >> 2]);
5117
+ return deserializeJSXOpeningElement(int32[pos >> 2]);
5118
5118
  }
5119
5119
  function deserializeVecJSXChild(pos) {
5120
5120
  let arr = [], pos32 = pos >> 2;
5121
- pos = uint32[pos32];
5122
- let endPos = pos + uint32[pos32 + 2] * 16;
5121
+ pos = int32[pos32];
5122
+ let endPos = pos + (int32[pos32 + 2] << 4);
5123
5123
  for (; pos !== endPos;) arr.push(deserializeJSXChild(pos)), pos += 16;
5124
5124
  return arr;
5125
5125
  }
5126
5126
  function deserializeBoxJSXClosingElement(pos) {
5127
- return deserializeJSXClosingElement(uint32[pos >> 2]);
5127
+ return deserializeJSXClosingElement(int32[pos >> 2]);
5128
5128
  }
5129
5129
  function deserializeOptionBoxJSXClosingElement(pos) {
5130
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxJSXClosingElement(pos);
5130
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxJSXClosingElement(pos);
5131
5131
  }
5132
5132
  function deserializeVecJSXAttributeItem(pos) {
5133
5133
  let arr = [], pos32 = pos >> 2;
5134
- pos = uint32[pos32];
5135
- let endPos = pos + uint32[pos32 + 2] * 16;
5134
+ pos = int32[pos32];
5135
+ let endPos = pos + (int32[pos32 + 2] << 4);
5136
5136
  for (; pos !== endPos;) arr.push(deserializeJSXAttributeItem(pos)), pos += 16;
5137
5137
  return arr;
5138
5138
  }
5139
5139
  function deserializeBoxJSXIdentifier(pos) {
5140
- return deserializeJSXIdentifier(uint32[pos >> 2]);
5140
+ return deserializeJSXIdentifier(int32[pos >> 2]);
5141
5141
  }
5142
5142
  function deserializeBoxJSXNamespacedName(pos) {
5143
- return deserializeJSXNamespacedName(uint32[pos >> 2]);
5143
+ return deserializeJSXNamespacedName(int32[pos >> 2]);
5144
5144
  }
5145
5145
  function deserializeBoxJSXMemberExpression(pos) {
5146
- return deserializeJSXMemberExpression(uint32[pos >> 2]);
5146
+ return deserializeJSXMemberExpression(int32[pos >> 2]);
5147
5147
  }
5148
5148
  function deserializeBoxJSXAttribute(pos) {
5149
- return deserializeJSXAttribute(uint32[pos >> 2]);
5149
+ return deserializeJSXAttribute(int32[pos >> 2]);
5150
5150
  }
5151
5151
  function deserializeBoxJSXSpreadAttribute(pos) {
5152
- return deserializeJSXSpreadAttribute(uint32[pos >> 2]);
5152
+ return deserializeJSXSpreadAttribute(int32[pos >> 2]);
5153
5153
  }
5154
5154
  function deserializeOptionJSXAttributeValue(pos) {
5155
5155
  return uint8[pos] === 4 ? null : deserializeJSXAttributeValue(pos);
5156
5156
  }
5157
5157
  function deserializeBoxJSXExpressionContainer(pos) {
5158
- return deserializeJSXExpressionContainer(uint32[pos >> 2]);
5158
+ return deserializeJSXExpressionContainer(int32[pos >> 2]);
5159
5159
  }
5160
5160
  function deserializeBoxJSXText(pos) {
5161
- return deserializeJSXText(uint32[pos >> 2]);
5161
+ return deserializeJSXText(int32[pos >> 2]);
5162
5162
  }
5163
5163
  function deserializeBoxJSXSpreadChild(pos) {
5164
- return deserializeJSXSpreadChild(uint32[pos >> 2]);
5164
+ return deserializeJSXSpreadChild(int32[pos >> 2]);
5165
5165
  }
5166
5166
  function deserializeVecTSEnumMember(pos) {
5167
5167
  let arr = [], pos32 = pos >> 2;
5168
- pos = uint32[pos32];
5169
- let endPos = pos + uint32[pos32 + 2] * 48;
5168
+ pos = int32[pos32];
5169
+ let endPos = pos + int32[pos32 + 2] * 48;
5170
5170
  for (; pos !== endPos;) arr.push(deserializeTSEnumMember(pos)), pos += 48;
5171
5171
  return arr;
5172
5172
  }
5173
5173
  function deserializeBoxTSAnyKeyword(pos) {
5174
- return deserializeTSAnyKeyword(uint32[pos >> 2]);
5174
+ return deserializeTSAnyKeyword(int32[pos >> 2]);
5175
5175
  }
5176
5176
  function deserializeBoxTSBigIntKeyword(pos) {
5177
- return deserializeTSBigIntKeyword(uint32[pos >> 2]);
5177
+ return deserializeTSBigIntKeyword(int32[pos >> 2]);
5178
5178
  }
5179
5179
  function deserializeBoxTSBooleanKeyword(pos) {
5180
- return deserializeTSBooleanKeyword(uint32[pos >> 2]);
5180
+ return deserializeTSBooleanKeyword(int32[pos >> 2]);
5181
5181
  }
5182
5182
  function deserializeBoxTSIntrinsicKeyword(pos) {
5183
- return deserializeTSIntrinsicKeyword(uint32[pos >> 2]);
5183
+ return deserializeTSIntrinsicKeyword(int32[pos >> 2]);
5184
5184
  }
5185
5185
  function deserializeBoxTSNeverKeyword(pos) {
5186
- return deserializeTSNeverKeyword(uint32[pos >> 2]);
5186
+ return deserializeTSNeverKeyword(int32[pos >> 2]);
5187
5187
  }
5188
5188
  function deserializeBoxTSNullKeyword(pos) {
5189
- return deserializeTSNullKeyword(uint32[pos >> 2]);
5189
+ return deserializeTSNullKeyword(int32[pos >> 2]);
5190
5190
  }
5191
5191
  function deserializeBoxTSNumberKeyword(pos) {
5192
- return deserializeTSNumberKeyword(uint32[pos >> 2]);
5192
+ return deserializeTSNumberKeyword(int32[pos >> 2]);
5193
5193
  }
5194
5194
  function deserializeBoxTSObjectKeyword(pos) {
5195
- return deserializeTSObjectKeyword(uint32[pos >> 2]);
5195
+ return deserializeTSObjectKeyword(int32[pos >> 2]);
5196
5196
  }
5197
5197
  function deserializeBoxTSStringKeyword(pos) {
5198
- return deserializeTSStringKeyword(uint32[pos >> 2]);
5198
+ return deserializeTSStringKeyword(int32[pos >> 2]);
5199
5199
  }
5200
5200
  function deserializeBoxTSSymbolKeyword(pos) {
5201
- return deserializeTSSymbolKeyword(uint32[pos >> 2]);
5201
+ return deserializeTSSymbolKeyword(int32[pos >> 2]);
5202
5202
  }
5203
5203
  function deserializeBoxTSUndefinedKeyword(pos) {
5204
- return deserializeTSUndefinedKeyword(uint32[pos >> 2]);
5204
+ return deserializeTSUndefinedKeyword(int32[pos >> 2]);
5205
5205
  }
5206
5206
  function deserializeBoxTSUnknownKeyword(pos) {
5207
- return deserializeTSUnknownKeyword(uint32[pos >> 2]);
5207
+ return deserializeTSUnknownKeyword(int32[pos >> 2]);
5208
5208
  }
5209
5209
  function deserializeBoxTSVoidKeyword(pos) {
5210
- return deserializeTSVoidKeyword(uint32[pos >> 2]);
5210
+ return deserializeTSVoidKeyword(int32[pos >> 2]);
5211
5211
  }
5212
5212
  function deserializeBoxTSArrayType(pos) {
5213
- return deserializeTSArrayType(uint32[pos >> 2]);
5213
+ return deserializeTSArrayType(int32[pos >> 2]);
5214
5214
  }
5215
5215
  function deserializeBoxTSConditionalType(pos) {
5216
- return deserializeTSConditionalType(uint32[pos >> 2]);
5216
+ return deserializeTSConditionalType(int32[pos >> 2]);
5217
5217
  }
5218
5218
  function deserializeBoxTSConstructorType(pos) {
5219
- return deserializeTSConstructorType(uint32[pos >> 2]);
5219
+ return deserializeTSConstructorType(int32[pos >> 2]);
5220
5220
  }
5221
5221
  function deserializeBoxTSFunctionType(pos) {
5222
- return deserializeTSFunctionType(uint32[pos >> 2]);
5222
+ return deserializeTSFunctionType(int32[pos >> 2]);
5223
5223
  }
5224
5224
  function deserializeBoxTSImportType(pos) {
5225
- return deserializeTSImportType(uint32[pos >> 2]);
5225
+ return deserializeTSImportType(int32[pos >> 2]);
5226
5226
  }
5227
5227
  function deserializeBoxTSIndexedAccessType(pos) {
5228
- return deserializeTSIndexedAccessType(uint32[pos >> 2]);
5228
+ return deserializeTSIndexedAccessType(int32[pos >> 2]);
5229
5229
  }
5230
5230
  function deserializeBoxTSInferType(pos) {
5231
- return deserializeTSInferType(uint32[pos >> 2]);
5231
+ return deserializeTSInferType(int32[pos >> 2]);
5232
5232
  }
5233
5233
  function deserializeBoxTSIntersectionType(pos) {
5234
- return deserializeTSIntersectionType(uint32[pos >> 2]);
5234
+ return deserializeTSIntersectionType(int32[pos >> 2]);
5235
5235
  }
5236
5236
  function deserializeBoxTSLiteralType(pos) {
5237
- return deserializeTSLiteralType(uint32[pos >> 2]);
5237
+ return deserializeTSLiteralType(int32[pos >> 2]);
5238
5238
  }
5239
5239
  function deserializeBoxTSMappedType(pos) {
5240
- return deserializeTSMappedType(uint32[pos >> 2]);
5240
+ return deserializeTSMappedType(int32[pos >> 2]);
5241
5241
  }
5242
5242
  function deserializeBoxTSNamedTupleMember(pos) {
5243
- return deserializeTSNamedTupleMember(uint32[pos >> 2]);
5243
+ return deserializeTSNamedTupleMember(int32[pos >> 2]);
5244
5244
  }
5245
5245
  function deserializeBoxTSTemplateLiteralType(pos) {
5246
- return deserializeTSTemplateLiteralType(uint32[pos >> 2]);
5246
+ return deserializeTSTemplateLiteralType(int32[pos >> 2]);
5247
5247
  }
5248
5248
  function deserializeBoxTSThisType(pos) {
5249
- return deserializeTSThisType(uint32[pos >> 2]);
5249
+ return deserializeTSThisType(int32[pos >> 2]);
5250
5250
  }
5251
5251
  function deserializeBoxTSTupleType(pos) {
5252
- return deserializeTSTupleType(uint32[pos >> 2]);
5252
+ return deserializeTSTupleType(int32[pos >> 2]);
5253
5253
  }
5254
5254
  function deserializeBoxTSTypeLiteral(pos) {
5255
- return deserializeTSTypeLiteral(uint32[pos >> 2]);
5255
+ return deserializeTSTypeLiteral(int32[pos >> 2]);
5256
5256
  }
5257
5257
  function deserializeBoxTSTypeOperator(pos) {
5258
- return deserializeTSTypeOperator(uint32[pos >> 2]);
5258
+ return deserializeTSTypeOperator(int32[pos >> 2]);
5259
5259
  }
5260
5260
  function deserializeBoxTSTypePredicate(pos) {
5261
- return deserializeTSTypePredicate(uint32[pos >> 2]);
5261
+ return deserializeTSTypePredicate(int32[pos >> 2]);
5262
5262
  }
5263
5263
  function deserializeBoxTSTypeQuery(pos) {
5264
- return deserializeTSTypeQuery(uint32[pos >> 2]);
5264
+ return deserializeTSTypeQuery(int32[pos >> 2]);
5265
5265
  }
5266
5266
  function deserializeBoxTSTypeReference(pos) {
5267
- return deserializeTSTypeReference(uint32[pos >> 2]);
5267
+ return deserializeTSTypeReference(int32[pos >> 2]);
5268
5268
  }
5269
5269
  function deserializeBoxTSUnionType(pos) {
5270
- return deserializeTSUnionType(uint32[pos >> 2]);
5270
+ return deserializeTSUnionType(int32[pos >> 2]);
5271
5271
  }
5272
5272
  function deserializeBoxTSParenthesizedType(pos) {
5273
- return deserializeTSParenthesizedType(uint32[pos >> 2]);
5273
+ return deserializeTSParenthesizedType(int32[pos >> 2]);
5274
5274
  }
5275
5275
  function deserializeBoxJSDocNullableType(pos) {
5276
- return deserializeJSDocNullableType(uint32[pos >> 2]);
5276
+ return deserializeJSDocNullableType(int32[pos >> 2]);
5277
5277
  }
5278
5278
  function deserializeBoxJSDocNonNullableType(pos) {
5279
- return deserializeJSDocNonNullableType(uint32[pos >> 2]);
5279
+ return deserializeJSDocNonNullableType(int32[pos >> 2]);
5280
5280
  }
5281
5281
  function deserializeBoxJSDocUnknownType(pos) {
5282
- return deserializeJSDocUnknownType(uint32[pos >> 2]);
5282
+ return deserializeJSDocUnknownType(int32[pos >> 2]);
5283
5283
  }
5284
5284
  function deserializeVecTSType(pos) {
5285
5285
  let arr = [], pos32 = pos >> 2;
5286
- pos = uint32[pos32];
5287
- let endPos = pos + uint32[pos32 + 2] * 16;
5286
+ pos = int32[pos32];
5287
+ let endPos = pos + (int32[pos32 + 2] << 4);
5288
5288
  for (; pos !== endPos;) arr.push(deserializeTSType(pos)), pos += 16;
5289
5289
  return arr;
5290
5290
  }
5291
5291
  function deserializeVecTSTupleElement(pos) {
5292
5292
  let arr = [], pos32 = pos >> 2;
5293
- pos = uint32[pos32];
5294
- let endPos = pos + uint32[pos32 + 2] * 16;
5293
+ pos = int32[pos32];
5294
+ let endPos = pos + (int32[pos32 + 2] << 4);
5295
5295
  for (; pos !== endPos;) arr.push(deserializeTSTupleElement(pos)), pos += 16;
5296
5296
  return arr;
5297
5297
  }
5298
5298
  function deserializeBoxTSOptionalType(pos) {
5299
- return deserializeTSOptionalType(uint32[pos >> 2]);
5299
+ return deserializeTSOptionalType(int32[pos >> 2]);
5300
5300
  }
5301
5301
  function deserializeBoxTSRestType(pos) {
5302
- return deserializeTSRestType(uint32[pos >> 2]);
5302
+ return deserializeTSRestType(int32[pos >> 2]);
5303
5303
  }
5304
5304
  function deserializeBoxTSQualifiedName(pos) {
5305
- return deserializeTSQualifiedName(uint32[pos >> 2]);
5305
+ return deserializeTSQualifiedName(int32[pos >> 2]);
5306
5306
  }
5307
5307
  function deserializeOptionTSType(pos) {
5308
5308
  return uint8[pos] === 38 ? null : deserializeTSType(pos);
5309
5309
  }
5310
5310
  function deserializeVecTSTypeParameter(pos) {
5311
5311
  let arr = [], pos32 = pos >> 2;
5312
- pos = uint32[pos32];
5313
- let endPos = pos + uint32[pos32 + 2] * 80;
5312
+ pos = int32[pos32];
5313
+ let endPos = pos + int32[pos32 + 2] * 80;
5314
5314
  for (; pos !== endPos;) arr.push(deserializeTSTypeParameter(pos)), pos += 80;
5315
5315
  return arr;
5316
5316
  }
5317
5317
  function deserializeVecTSInterfaceHeritage(pos) {
5318
5318
  let arr = [], pos32 = pos >> 2;
5319
- pos = uint32[pos32];
5320
- let endPos = pos + uint32[pos32 + 2] * 40;
5319
+ pos = int32[pos32];
5320
+ let endPos = pos + int32[pos32 + 2] * 40;
5321
5321
  for (; pos !== endPos;) arr.push(deserializeTSInterfaceHeritage(pos)), pos += 40;
5322
5322
  return arr;
5323
5323
  }
5324
5324
  function deserializeBoxTSInterfaceBody(pos) {
5325
- return deserializeTSInterfaceBody(uint32[pos >> 2]);
5325
+ return deserializeTSInterfaceBody(int32[pos >> 2]);
5326
5326
  }
5327
5327
  function deserializeVecTSSignature(pos) {
5328
5328
  let arr = [], pos32 = pos >> 2;
5329
- pos = uint32[pos32];
5330
- let endPos = pos + uint32[pos32 + 2] * 16;
5329
+ pos = int32[pos32];
5330
+ let endPos = pos + (int32[pos32 + 2] << 4);
5331
5331
  for (; pos !== endPos;) arr.push(deserializeTSSignature(pos)), pos += 16;
5332
5332
  return arr;
5333
5333
  }
5334
5334
  function deserializeBoxTSPropertySignature(pos) {
5335
- return deserializeTSPropertySignature(uint32[pos >> 2]);
5335
+ return deserializeTSPropertySignature(int32[pos >> 2]);
5336
5336
  }
5337
5337
  function deserializeBoxTSCallSignatureDeclaration(pos) {
5338
- return deserializeTSCallSignatureDeclaration(uint32[pos >> 2]);
5338
+ return deserializeTSCallSignatureDeclaration(int32[pos >> 2]);
5339
5339
  }
5340
5340
  function deserializeBoxTSConstructSignatureDeclaration(pos) {
5341
- return deserializeTSConstructSignatureDeclaration(uint32[pos >> 2]);
5341
+ return deserializeTSConstructSignatureDeclaration(int32[pos >> 2]);
5342
5342
  }
5343
5343
  function deserializeBoxTSMethodSignature(pos) {
5344
- return deserializeTSMethodSignature(uint32[pos >> 2]);
5344
+ return deserializeTSMethodSignature(int32[pos >> 2]);
5345
5345
  }
5346
5346
  function deserializeVecTSIndexSignatureName(pos) {
5347
5347
  let arr = [], pos32 = pos >> 2;
5348
- pos = uint32[pos32];
5349
- let endPos = pos + uint32[pos32 + 2] * 40;
5348
+ pos = int32[pos32];
5349
+ let endPos = pos + int32[pos32 + 2] * 40;
5350
5350
  for (; pos !== endPos;) arr.push(deserializeTSIndexSignatureName(pos)), pos += 40;
5351
5351
  return arr;
5352
5352
  }
@@ -5354,30 +5354,30 @@ function deserializeOptionTSModuleDeclarationBody(pos) {
5354
5354
  return uint8[pos] === 2 ? null : deserializeTSModuleDeclarationBody(pos);
5355
5355
  }
5356
5356
  function deserializeBoxTSModuleBlock(pos) {
5357
- return deserializeTSModuleBlock(uint32[pos >> 2]);
5357
+ return deserializeTSModuleBlock(int32[pos >> 2]);
5358
5358
  }
5359
5359
  function deserializeBoxTSTypeParameter(pos) {
5360
- return deserializeTSTypeParameter(uint32[pos >> 2]);
5360
+ return deserializeTSTypeParameter(int32[pos >> 2]);
5361
5361
  }
5362
5362
  function deserializeOptionBoxObjectExpression(pos) {
5363
- return uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0 ? null : deserializeBoxObjectExpression(pos);
5363
+ return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeBoxObjectExpression(pos);
5364
5364
  }
5365
5365
  function deserializeOptionTSImportTypeQualifier(pos) {
5366
5366
  return uint8[pos] === 2 ? null : deserializeTSImportTypeQualifier(pos);
5367
5367
  }
5368
5368
  function deserializeBoxTSImportTypeQualifiedName(pos) {
5369
- return deserializeTSImportTypeQualifiedName(uint32[pos >> 2]);
5369
+ return deserializeTSImportTypeQualifiedName(int32[pos >> 2]);
5370
5370
  }
5371
5371
  function deserializeOptionTSMappedTypeModifierOperator(pos) {
5372
5372
  return uint8[pos] === 3 ? null : deserializeTSMappedTypeModifierOperator(pos);
5373
5373
  }
5374
5374
  function deserializeBoxTSExternalModuleReference(pos) {
5375
- return deserializeTSExternalModuleReference(uint32[pos >> 2]);
5375
+ return deserializeTSExternalModuleReference(int32[pos >> 2]);
5376
5376
  }
5377
- function deserializeU32(pos) {
5378
- return uint32[pos >> 2];
5377
+ function deserializeI32(pos) {
5378
+ return int32[pos >> 2];
5379
5379
  }
5380
- let tokensAndComments = null, previousTokensAndComments = [], tokensAndCommentsUint32 = null, tokensAndCommentsLen = 0, tokensAndCommentsBackingUint32 = EMPTY_UINT32_ARRAY;
5380
+ let tokensAndComments = null, previousTokensAndComments = [], tokensAndCommentsInt32 = null, tokensAndCommentsLen = 0, tokensAndCommentsBackingInt32 = EMPTY_INT32_ARRAY;
5381
5381
  /**
5382
5382
  * Initialize tokens-and-comments buffer.
5383
5383
  *
@@ -5385,15 +5385,15 @@ let tokensAndComments = null, previousTokensAndComments = [], tokensAndCommentsU
5385
5385
  *
5386
5386
  * Each token/comment in the input buffers is 16 bytes, with `start` as the first `u32`.
5387
5387
  *
5388
- * `tokensAndCommentsUint32` contains 16-byte entries with the layout:
5388
+ * `tokensAndCommentsInt32` contains 16-byte entries with the layout:
5389
5389
  * `{ start: u32, index: u32, type: u32, 4 bytes padding }`.
5390
5390
  *
5391
5391
  * `index` is the index of the token/comment within its original buffer (in 16-byte units).
5392
5392
  */
5393
5393
  function initTokensAndCommentsBuffer() {
5394
- tokensUint32 === null && initTokensBuffer(), commentsUint32 === null && initCommentsBuffer(), tokensAndCommentsLen = tokensLen + commentsLen;
5395
- let requiredLen32 = tokensAndCommentsLen + 1 << 2, backingLen = tokensAndCommentsBackingUint32.length;
5396
- backingLen < requiredLen32 && (tokensAndCommentsBackingUint32 = new Uint32Array(MathMax(requiredLen32, backingLen === 0 ? 256 : backingLen << 1))), tokensAndCommentsUint32 = tokensAndCommentsBackingUint32, commentsLen === 0 ? fillMergedEntries(0, tokensUint32, 0, 0, tokensLen) : tokensLen === 0 ? fillMergedEntries(1, commentsUint32, 0, 0, commentsLen) : mergeTokensAndComments(tokensUint32, commentsUint32), tokensAndCommentsUint32[(tokensAndCommentsLen << 2) + 2] = 0;
5394
+ tokensInt32 === null && initTokensBuffer(), commentsInt32 === null && initCommentsBuffer(), tokensAndCommentsLen = tokensLen + commentsLen;
5395
+ let requiredLen32 = tokensAndCommentsLen + 1 << 2, backingLen = tokensAndCommentsBackingInt32.length;
5396
+ backingLen < requiredLen32 && (tokensAndCommentsBackingInt32 = new Int32Array(MathMax(requiredLen32, backingLen === 0 ? 256 : backingLen << 1))), tokensAndCommentsInt32 = tokensAndCommentsBackingInt32, commentsLen === 0 ? fillMergedEntries(0, tokensInt32, 0, 0, tokensLen) : tokensLen === 0 ? fillMergedEntries(1, commentsInt32, 0, 0, commentsLen) : mergeTokensAndComments(tokensInt32, commentsInt32), tokensAndCommentsInt32[(tokensAndCommentsLen << 2) + 2] = 0;
5397
5397
  }
5398
5398
  /**
5399
5399
  * Merge tokens and comments in ascending order of `start`.
@@ -5402,29 +5402,29 @@ function initTokensAndCommentsBuffer() {
5402
5402
  * so the branch predictor sees a consistent "continue" pattern within each run,
5403
5403
  * only mispredicting once at each run transition.
5404
5404
  */
5405
- function mergeTokensAndComments(tokensUint32, commentsUint32) {
5406
- let tokenIndex = 0, commentIndex = 0, mergedPos32 = 0, tokenStart = tokensUint32[0], commentStart = commentsUint32[0];
5405
+ function mergeTokensAndComments(tokensInt32, commentsInt32) {
5406
+ let tokenIndex = 0, commentIndex = 0, mergedPos32 = 0, tokenStart = tokensInt32[0], commentStart = commentsInt32[0];
5407
5407
  for (; commentStart < tokenStart;) {
5408
5408
  if (writeMergedEntry(1, mergedPos32, commentIndex, commentStart), mergedPos32 += 4, ++commentIndex === commentsLen) {
5409
- fillMergedEntries(0, tokensUint32, mergedPos32, tokenIndex, tokensLen);
5409
+ fillMergedEntries(0, tokensInt32, mergedPos32, tokenIndex, tokensLen);
5410
5410
  return;
5411
5411
  }
5412
- commentStart = commentsUint32[commentIndex << 2];
5412
+ commentStart = commentsInt32[commentIndex << 2];
5413
5413
  }
5414
5414
  for (;;) {
5415
5415
  do {
5416
5416
  if (writeMergedEntry(0, mergedPos32, tokenIndex, tokenStart), mergedPos32 += 4, ++tokenIndex === tokensLen) {
5417
- fillMergedEntries(1, commentsUint32, mergedPos32, commentIndex, commentsLen);
5417
+ fillMergedEntries(1, commentsInt32, mergedPos32, commentIndex, commentsLen);
5418
5418
  return;
5419
5419
  }
5420
- tokenStart = tokensUint32[tokenIndex << 2];
5420
+ tokenStart = tokensInt32[tokenIndex << 2];
5421
5421
  } while (tokenStart < commentStart);
5422
5422
  do {
5423
5423
  if (writeMergedEntry(1, mergedPos32, commentIndex, commentStart), mergedPos32 += 4, ++commentIndex === commentsLen) {
5424
- fillMergedEntries(0, tokensUint32, mergedPos32, tokenIndex, tokensLen);
5424
+ fillMergedEntries(0, tokensInt32, mergedPos32, tokenIndex, tokensLen);
5425
5425
  return;
5426
5426
  }
5427
- commentStart = commentsUint32[commentIndex << 2];
5427
+ commentStart = commentsInt32[commentIndex << 2];
5428
5428
  } while (commentStart < tokenStart);
5429
5429
  }
5430
5430
  }
@@ -5432,15 +5432,15 @@ function mergeTokensAndComments(tokensUint32, commentsUint32) {
5432
5432
  * Write a single entry to the merged buffer.
5433
5433
  */
5434
5434
  function writeMergedEntry(type, mergedPos32, originalIndex, start) {
5435
- tokensAndCommentsUint32[mergedPos32] = start, tokensAndCommentsUint32[mergedPos32 + 1] = originalIndex, tokensAndCommentsUint32[mergedPos32 + 2] = type;
5435
+ tokensAndCommentsInt32[mergedPos32] = start, tokensAndCommentsInt32[mergedPos32 + 1] = originalIndex, tokensAndCommentsInt32[mergedPos32 + 2] = type;
5436
5436
  }
5437
5437
  /**
5438
5438
  * Fill output entries from a single source buffer (tokens or comments) sequentially.
5439
5439
  * Used for fast paths and for appending remaining items after the merge loop.
5440
5440
  */
5441
- function fillMergedEntries(type, srcUint32, mergedPos32, srcIndex, srcLen) {
5441
+ function fillMergedEntries(type, srcInt32, mergedPos32, srcIndex, srcLen) {
5442
5442
  let srcPos32 = srcIndex << 2;
5443
- for (; srcIndex < srcLen; srcIndex++) tokensAndCommentsUint32[mergedPos32] = srcUint32[srcPos32], tokensAndCommentsUint32[mergedPos32 + 1] = srcIndex, tokensAndCommentsUint32[mergedPos32 + 2] = type, mergedPos32 += 4, srcPos32 += 4;
5443
+ for (; srcIndex < srcLen; srcIndex++) tokensAndCommentsInt32[mergedPos32] = srcInt32[srcPos32], tokensAndCommentsInt32[mergedPos32 + 1] = srcIndex, tokensAndCommentsInt32[mergedPos32 + 2] = type, mergedPos32 += 4, srcPos32 += 4;
5444
5444
  }
5445
5445
  /**
5446
5446
  * Get token or comment from the merged buffer at `index`.
@@ -5450,8 +5450,8 @@ function fillMergedEntries(type, srcUint32, mergedPos32, srcIndex, srcLen) {
5450
5450
  * @returns Deserialized token or comment
5451
5451
  */
5452
5452
  function getTokenOrComment(index) {
5453
- let pos32 = index << 2, originalIndex = tokensAndCommentsUint32[pos32 + 1];
5454
- return tokensAndCommentsUint32[pos32 + 2] === 0 ? getToken(originalIndex) : getComment(originalIndex);
5453
+ let pos32 = index << 2, originalIndex = tokensAndCommentsInt32[pos32 + 1];
5454
+ return tokensAndCommentsInt32[pos32 + 2] === 0 ? getToken(originalIndex) : getComment(originalIndex);
5455
5455
  }
5456
5456
  /**
5457
5457
  * Get the `end` value for an entry in the merged `tokensAndComments` buffer,
@@ -5461,8 +5461,8 @@ function getTokenOrComment(index) {
5461
5461
  * @returns The `end` offset of the token/comment in source text
5462
5462
  */
5463
5463
  function getTokenOrCommentEnd(entryIndex) {
5464
- let pos32 = entryIndex << 2, originalEndPos32 = (tokensAndCommentsUint32[pos32 + 1] << 2) + 1;
5465
- return tokensAndCommentsUint32[pos32 + 2] === 0 ? tokensUint32[originalEndPos32] : commentsUint32[originalEndPos32];
5464
+ let pos32 = entryIndex << 2, originalEndPos32 = (tokensAndCommentsInt32[pos32 + 1] << 2) + 1;
5465
+ return tokensAndCommentsInt32[pos32 + 2] === 0 ? tokensInt32[originalEndPos32] : commentsInt32[originalEndPos32];
5466
5466
  }
5467
5467
  /**
5468
5468
  * Get all tokens and comments in source order.
@@ -5474,12 +5474,12 @@ function getTokenOrCommentEnd(entryIndex) {
5474
5474
  */
5475
5475
  function getTokensAndComments() {
5476
5476
  if (tokensAndComments !== null) return tokensAndComments;
5477
- if (tokensUint32 === null && initTokensBuffer(), commentsUint32 === null && initCommentsBuffer(), commentsLen === 0) return tokens === null && initTokens(), tokensAndComments = tokens;
5477
+ if (tokensInt32 === null && initTokensBuffer(), commentsInt32 === null && initCommentsBuffer(), commentsLen === 0) return tokens === null && initTokens(), tokensAndComments = tokens;
5478
5478
  if (tokensLen === 0) return comments === null && initComments(), tokensAndComments = comments;
5479
- allTokensDeserialized || deserializeTokens(), allCommentsDeserialized || deserializeComments(), tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), previousTokensAndComments.length >= tokensAndCommentsLen ? (tokensAndComments = previousTokensAndComments, tokensAndComments.length = tokensAndCommentsLen) : (tokensAndComments = previousTokensAndComments = Array(tokensAndCommentsLen).fill(0), tokensAndComments[0] = null);
5479
+ allTokensDeserialized || deserializeTokens(), allCommentsDeserialized || deserializeComments(), tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), previousTokensAndComments.length >= tokensAndCommentsLen ? (tokensAndComments = previousTokensAndComments, tokensAndComments.length = tokensAndCommentsLen) : (tokensAndComments = previousTokensAndComments = Array(tokensAndCommentsLen).fill(0), tokensAndComments[0] = null);
5480
5480
  for (let i = 0; i < tokensAndCommentsLen; i++) {
5481
- let pos32 = i << 2, originalIndex = tokensAndCommentsUint32[pos32 + 1];
5482
- tokensAndComments[i] = tokensAndCommentsUint32[pos32 + 2] === 0 ? cachedTokens[originalIndex] : cachedComments[originalIndex];
5481
+ let pos32 = i << 2, originalIndex = tokensAndCommentsInt32[pos32 + 1];
5482
+ tokensAndComments[i] = tokensAndCommentsInt32[pos32 + 2] === 0 ? cachedTokens[originalIndex] : cachedComments[originalIndex];
5483
5483
  }
5484
5484
  return tokensAndComments;
5485
5485
  }
@@ -5487,7 +5487,7 @@ function getTokensAndComments() {
5487
5487
  * Reset merged tokens-and-comments array and buffer after file has been linted.
5488
5488
  */
5489
5489
  function resetTokensAndComments() {
5490
- tokensAndComments = null, tokensAndCommentsUint32 = null, tokensAndCommentsLen = 0;
5490
+ tokensAndComments = null, tokensAndCommentsInt32 = null, tokensAndCommentsLen = 0;
5491
5491
  }
5492
5492
  //#endregion
5493
5493
  //#region src-js/plugins/comments_methods.ts
@@ -5516,17 +5516,17 @@ function getAllComments() {
5516
5516
  * @returns Array of `Comment`s in occurrence order.
5517
5517
  */
5518
5518
  function getCommentsBefore(nodeOrToken) {
5519
- if (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), commentsLen === 0) return [];
5519
+ if (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), commentsLen === 0) return [];
5520
5520
  let targetStart = nodeOrToken.range[0], searchIndex = 0;
5521
5521
  for (let endIndex = tokensAndCommentsLen; searchIndex < endIndex;) {
5522
- let mid = searchIndex + endIndex >>> 1;
5523
- tokensAndCommentsUint32[mid << 2] < targetStart ? searchIndex = mid + 1 : endIndex = mid;
5522
+ let mid = searchIndex + endIndex >> 1;
5523
+ tokensAndCommentsInt32[mid << 2] < targetStart ? searchIndex = mid + 1 : endIndex = mid;
5524
5524
  }
5525
5525
  let startTypePos32 = (searchIndex << 2) - 2, typePos32 = startTypePos32;
5526
- for (; typePos32 > 0 && tokensAndCommentsUint32[typePos32] !== 0;) typePos32 -= 4;
5526
+ for (; typePos32 > 0 && tokensAndCommentsInt32[typePos32] !== 0;) typePos32 -= 4;
5527
5527
  let count32 = startTypePos32 - typePos32;
5528
5528
  if (count32 === 0) return [];
5529
- let sliceStart = tokensAndCommentsUint32[typePos32 + 3], sliceEnd = sliceStart + (count32 >> 2);
5529
+ let sliceStart = tokensAndCommentsInt32[typePos32 + 3], sliceEnd = sliceStart + (count32 >> 2);
5530
5530
  for (let i = sliceStart; i < sliceEnd; i++) getComment(i);
5531
5531
  return cachedComments.slice(sliceStart, sliceEnd);
5532
5532
  }
@@ -5549,17 +5549,17 @@ function getCommentsBefore(nodeOrToken) {
5549
5549
  * @returns Array of `Comment`s in occurrence order.
5550
5550
  */
5551
5551
  function getCommentsAfter(nodeOrToken) {
5552
- if (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), commentsLen === 0) return [];
5552
+ if (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), commentsLen === 0) return [];
5553
5553
  let targetEnd = nodeOrToken.range[1], searchIndex = 0;
5554
5554
  for (let endIndex = tokensAndCommentsLen; searchIndex < endIndex;) {
5555
- let mid = searchIndex + endIndex >>> 1;
5556
- tokensAndCommentsUint32[mid << 2] < targetEnd ? searchIndex = mid + 1 : endIndex = mid;
5555
+ let mid = searchIndex + endIndex >> 1;
5556
+ tokensAndCommentsInt32[mid << 2] < targetEnd ? searchIndex = mid + 1 : endIndex = mid;
5557
5557
  }
5558
5558
  let startTypePos32 = (searchIndex << 2) + 2, typePos32 = startTypePos32;
5559
- for (; tokensAndCommentsUint32[typePos32] !== 0;) typePos32 += 4;
5559
+ for (; tokensAndCommentsInt32[typePos32] !== 0;) typePos32 += 4;
5560
5560
  let count32 = typePos32 - startTypePos32;
5561
5561
  if (count32 === 0) return [];
5562
- let sliceStart = tokensAndCommentsUint32[startTypePos32 - 1], sliceEnd = sliceStart + (count32 >> 2);
5562
+ let sliceStart = tokensAndCommentsInt32[startTypePos32 - 1], sliceEnd = sliceStart + (count32 >> 2);
5563
5563
  for (let i = sliceStart; i < sliceEnd; i++) getComment(i);
5564
5564
  return cachedComments.slice(sliceStart, sliceEnd);
5565
5565
  }
@@ -5569,16 +5569,16 @@ function getCommentsAfter(nodeOrToken) {
5569
5569
  * @returns Array of `Comment`s in occurrence order.
5570
5570
  */
5571
5571
  function getCommentsInside(node) {
5572
- if (commentsUint32 === null && initCommentsBuffer(), commentsLen === 0) return [];
5572
+ if (commentsInt32 === null && initCommentsBuffer(), commentsLen === 0) return [];
5573
5573
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], sliceStart = 0;
5574
5574
  for (let endIndex = commentsLen; sliceStart < endIndex;) {
5575
- let mid = sliceStart + endIndex >>> 1;
5576
- commentsUint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
5575
+ let mid = sliceStart + endIndex >> 1;
5576
+ commentsInt32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
5577
5577
  }
5578
5578
  let sliceEnd = sliceStart;
5579
5579
  for (let endIndex = commentsLen; sliceEnd < endIndex;) {
5580
- let mid = sliceEnd + endIndex >>> 1;
5581
- commentsUint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
5580
+ let mid = sliceEnd + endIndex >> 1;
5581
+ commentsInt32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
5582
5582
  }
5583
5583
  for (let i = sliceStart; i < sliceEnd; i++) getComment(i);
5584
5584
  return cachedComments.slice(sliceStart, sliceEnd);
@@ -5590,13 +5590,13 @@ function getCommentsInside(node) {
5590
5590
  * @returns `true` if one or more comments exist between the two.
5591
5591
  */
5592
5592
  function commentsExistBetween(nodeOrToken1, nodeOrToken2) {
5593
- if (commentsUint32 === null && initCommentsBuffer(), commentsLen === 0) return !1;
5593
+ if (commentsInt32 === null && initCommentsBuffer(), commentsLen === 0) return !1;
5594
5594
  let betweenRangeStart = nodeOrToken1.range[1], firstCommentBetween = 0;
5595
5595
  for (let endIndex = commentsLen; firstCommentBetween < endIndex;) {
5596
- let mid = firstCommentBetween + endIndex >>> 1;
5597
- commentsUint32[mid << 2] < betweenRangeStart ? firstCommentBetween = mid + 1 : endIndex = mid;
5596
+ let mid = firstCommentBetween + endIndex >> 1;
5597
+ commentsInt32[mid << 2] < betweenRangeStart ? firstCommentBetween = mid + 1 : endIndex = mid;
5598
5598
  }
5599
- return firstCommentBetween < commentsLen && commentsUint32[(firstCommentBetween << 2) + 1] <= nodeOrToken2.range[0];
5599
+ return firstCommentBetween < commentsLen && commentsInt32[(firstCommentBetween << 2) + 1] <= nodeOrToken2.range[0];
5600
5600
  }
5601
5601
  /**
5602
5602
  * Retrieve the JSDoc comment for a given node.
@@ -12820,17 +12820,17 @@ const INCLUDE_COMMENTS_SKIP_OPTIONS = {
12820
12820
  function getTokens(node, countOptions, afterCount) {
12821
12821
  let count = typeof countOptions == "object" && countOptions ? countOptions.count : null, beforeCount = typeof countOptions == "number" ? countOptions : 0;
12822
12822
  afterCount = (typeof countOptions == "number" || countOptions === void 0) && typeof afterCount == "number" ? afterCount : 0;
12823
- let filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
12824
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12823
+ let filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
12824
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
12825
12825
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], sliceStart = 0;
12826
12826
  for (let endIndex = len; sliceStart < endIndex;) {
12827
- let mid = sliceStart + endIndex >>> 1;
12828
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12827
+ let mid = sliceStart + endIndex >> 1;
12828
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12829
12829
  }
12830
12830
  let sliceEnd = sliceStart;
12831
12831
  for (let endIndex = len; sliceEnd < endIndex;) {
12832
- let mid = sliceEnd + endIndex >>> 1;
12833
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12832
+ let mid = sliceEnd + endIndex >> 1;
12833
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12834
12834
  }
12835
12835
  if (sliceStart = MathMax(0, sliceStart - beforeCount), sliceEnd = MathMin(sliceEnd + afterCount, len), typeof filter != "function") {
12836
12836
  let end = MathMin(sliceStart + (count ?? sliceEnd), sliceEnd);
@@ -12859,24 +12859,24 @@ function getTokens(node, countOptions, afterCount) {
12859
12859
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
12860
12860
  */
12861
12861
  function getFirstToken(node, skipOptions) {
12862
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
12863
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12862
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
12863
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
12864
12864
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], startIndex = 0;
12865
12865
  for (let endIndex = len; startIndex < endIndex;) {
12866
- let mid = startIndex + endIndex >>> 1;
12867
- uint32[mid << 2] < rangeStart ? startIndex = mid + 1 : endIndex = mid;
12866
+ let mid = startIndex + endIndex >> 1;
12867
+ int32[mid << 2] < rangeStart ? startIndex = mid + 1 : endIndex = mid;
12868
12868
  }
12869
12869
  if (typeof filter != "function") {
12870
12870
  let skipTo = startIndex + (skip ?? 0);
12871
- return skipTo >= len || entryStart(skipTo, uint32) >= rangeEnd ? null : getEntry(skipTo, includeComments);
12871
+ return skipTo >= len || entryStart(skipTo, int32) >= rangeEnd ? null : getEntry(skipTo, includeComments);
12872
12872
  }
12873
12873
  if (typeof skip != "number") for (let i = startIndex; i < len; i++) {
12874
- if (entryStart(i, uint32) >= rangeEnd) return null;
12874
+ if (entryStart(i, int32) >= rangeEnd) return null;
12875
12875
  let token = getEntry(i, includeComments);
12876
12876
  if (filter(token)) return token;
12877
12877
  }
12878
12878
  else for (let i = startIndex; i < len; i++) {
12879
- if (entryStart(i, uint32) >= rangeEnd) return null;
12879
+ if (entryStart(i, int32) >= rangeEnd) return null;
12880
12880
  let token = getEntry(i, includeComments);
12881
12881
  if (filter(token)) {
12882
12882
  if (skip <= 0) return token;
@@ -12894,17 +12894,17 @@ function getFirstToken(node, skipOptions) {
12894
12894
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
12895
12895
  */
12896
12896
  function getFirstTokens(node, countOptions) {
12897
- let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
12898
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12897
+ let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
12898
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
12899
12899
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], sliceStart = 0;
12900
12900
  for (let endIndex = len; sliceStart < endIndex;) {
12901
- let mid = sliceStart + endIndex >>> 1;
12902
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12901
+ let mid = sliceStart + endIndex >> 1;
12902
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12903
12903
  }
12904
12904
  let sliceEnd = sliceStart;
12905
12905
  for (let endIndex = len; sliceEnd < endIndex;) {
12906
- let mid = sliceEnd + endIndex >>> 1;
12907
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12906
+ let mid = sliceEnd + endIndex >> 1;
12907
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12908
12908
  }
12909
12909
  if (typeof filter != "function") return typeof count == "number" ? collectEntries(sliceStart, MathMin(sliceStart + count, sliceEnd), includeComments) : collectEntries(sliceStart, sliceEnd, includeComments);
12910
12910
  let firstTokens = [];
@@ -12927,24 +12927,24 @@ function getFirstTokens(node, countOptions) {
12927
12927
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
12928
12928
  */
12929
12929
  function getLastToken(node, skipOptions) {
12930
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
12931
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12930
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
12931
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
12932
12932
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], lastTokenIndex = 0;
12933
12933
  for (let endIndex = len; lastTokenIndex < endIndex;) {
12934
- let mid = lastTokenIndex + endIndex >>> 1;
12935
- uint32[mid << 2] < rangeEnd ? lastTokenIndex = mid + 1 : endIndex = mid;
12934
+ let mid = lastTokenIndex + endIndex >> 1;
12935
+ int32[mid << 2] < rangeEnd ? lastTokenIndex = mid + 1 : endIndex = mid;
12936
12936
  }
12937
12937
  if (--lastTokenIndex, typeof filter != "function") {
12938
12938
  let skipTo = lastTokenIndex - (skip ?? 0);
12939
- return skipTo < 0 || entryStart(skipTo, uint32) < rangeStart ? null : getEntry(skipTo, includeComments);
12939
+ return skipTo < 0 || entryStart(skipTo, int32) < rangeStart ? null : getEntry(skipTo, includeComments);
12940
12940
  }
12941
12941
  if (typeof skip != "number") for (let i = lastTokenIndex; i >= 0; i--) {
12942
- if (entryStart(i, uint32) < rangeStart) return null;
12942
+ if (entryStart(i, int32) < rangeStart) return null;
12943
12943
  let token = getEntry(i, includeComments);
12944
12944
  if (filter(token)) return token;
12945
12945
  }
12946
12946
  else for (let i = lastTokenIndex; i >= 0; i--) {
12947
- if (entryStart(i, uint32) < rangeStart) return null;
12947
+ if (entryStart(i, int32) < rangeStart) return null;
12948
12948
  let token = getEntry(i, includeComments);
12949
12949
  if (filter(token)) {
12950
12950
  if (skip <= 0) return token;
@@ -12962,17 +12962,17 @@ function getLastToken(node, skipOptions) {
12962
12962
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
12963
12963
  */
12964
12964
  function getLastTokens(node, countOptions) {
12965
- let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
12966
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12965
+ let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
12966
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
12967
12967
  let { range } = node, rangeStart = range[0], rangeEnd = range[1], sliceStart = 0;
12968
12968
  for (let endIndex = len; sliceStart < endIndex;) {
12969
- let mid = sliceStart + endIndex >>> 1;
12970
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12969
+ let mid = sliceStart + endIndex >> 1;
12970
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
12971
12971
  }
12972
12972
  let sliceEnd = sliceStart;
12973
12973
  for (let endIndex = len; sliceEnd < endIndex;) {
12974
- let mid = sliceEnd + endIndex >>> 1;
12975
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12974
+ let mid = sliceEnd + endIndex >> 1;
12975
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
12976
12976
  }
12977
12977
  if (typeof filter != "function") return collectEntries(typeof count == "number" ? MathMax(sliceStart, sliceEnd - count) : sliceStart, sliceEnd, includeComments);
12978
12978
  let lastTokens = [];
@@ -12995,12 +12995,12 @@ function getLastTokens(node, countOptions) {
12995
12995
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
12996
12996
  */
12997
12997
  function getTokenBefore(nodeOrToken, skipOptions) {
12998
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
12999
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
12998
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
12999
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13000
13000
  let nodeStart = nodeOrToken.range[0], beforeIndex = 0;
13001
13001
  for (let endIndex = len; beforeIndex < endIndex;) {
13002
- let mid = beforeIndex + endIndex >>> 1;
13003
- uint32[mid << 2] < nodeStart ? beforeIndex = mid + 1 : endIndex = mid;
13002
+ let mid = beforeIndex + endIndex >> 1;
13003
+ int32[mid << 2] < nodeStart ? beforeIndex = mid + 1 : endIndex = mid;
13004
13004
  }
13005
13005
  if (--beforeIndex, typeof filter != "function") {
13006
13006
  let skipTo = beforeIndex - (skip ?? 0);
@@ -13042,12 +13042,12 @@ function getTokenOrCommentBefore(nodeOrToken, skip) {
13042
13042
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
13043
13043
  */
13044
13044
  function getTokensBefore(nodeOrToken, countOptions) {
13045
- let count = typeof countOptions == "number" ? MathMax(0, countOptions) : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
13046
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13045
+ let count = typeof countOptions == "number" ? MathMax(0, countOptions) : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
13046
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13047
13047
  let targetStart = nodeOrToken.range[0], sliceEnd = 0;
13048
13048
  for (let endIndex = len; sliceEnd < endIndex;) {
13049
- let mid = sliceEnd + endIndex >>> 1;
13050
- uint32[mid << 2] < targetStart ? sliceEnd = mid + 1 : endIndex = mid;
13049
+ let mid = sliceEnd + endIndex >> 1;
13050
+ int32[mid << 2] < targetStart ? sliceEnd = mid + 1 : endIndex = mid;
13051
13051
  }
13052
13052
  if (typeof filter != "function") return collectEntries(typeof count == "number" ? MathMax(0, sliceEnd - count) : 0, sliceEnd, includeComments);
13053
13053
  let tokensBefore = [];
@@ -13070,12 +13070,12 @@ function getTokensBefore(nodeOrToken, countOptions) {
13070
13070
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
13071
13071
  */
13072
13072
  function getTokenAfter(nodeOrToken, skipOptions) {
13073
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
13074
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13073
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
13074
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13075
13075
  let rangeEnd = nodeOrToken.range[1], startIndex = 0;
13076
13076
  for (let endIndex = len; startIndex < endIndex;) {
13077
- let mid = startIndex + endIndex >>> 1;
13078
- uint32[mid << 2] < rangeEnd ? startIndex = mid + 1 : endIndex = mid;
13077
+ let mid = startIndex + endIndex >> 1;
13078
+ int32[mid << 2] < rangeEnd ? startIndex = mid + 1 : endIndex = mid;
13079
13079
  }
13080
13080
  if (typeof filter != "function") {
13081
13081
  let skipTo = startIndex + (skip ?? 0);
@@ -13115,12 +13115,12 @@ function getTokenOrCommentAfter(nodeOrToken, skip) {
13115
13115
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
13116
13116
  */
13117
13117
  function getTokensAfter(nodeOrToken, countOptions) {
13118
- let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
13119
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13118
+ let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
13119
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13120
13120
  let rangeEnd = nodeOrToken.range[1], sliceStart = 0;
13121
13121
  for (let endIndex = len; sliceStart < endIndex;) {
13122
- let mid = sliceStart + endIndex >>> 1;
13123
- uint32[mid << 2] < rangeEnd ? sliceStart = mid + 1 : endIndex = mid;
13122
+ let mid = sliceStart + endIndex >> 1;
13123
+ int32[mid << 2] < rangeEnd ? sliceStart = mid + 1 : endIndex = mid;
13124
13124
  }
13125
13125
  if (typeof filter != "function") return typeof count == "number" ? collectEntries(sliceStart, MathMin(sliceStart + count, len), includeComments) : collectEntries(sliceStart, len, includeComments);
13126
13126
  let tokenListAfter = [];
@@ -13149,17 +13149,17 @@ function getTokensAfter(nodeOrToken, countOptions) {
13149
13149
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
13150
13150
  */
13151
13151
  function getTokensBetween(left, right, countOptions) {
13152
- let count = typeof countOptions == "object" && countOptions ? countOptions.count : null, padding = typeof countOptions == "number" ? countOptions : 0, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
13153
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13152
+ let count = typeof countOptions == "object" && countOptions ? countOptions.count : null, padding = typeof countOptions == "number" ? countOptions : 0, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
13153
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13154
13154
  let rangeStart = left.range[1], rangeEnd = right.range[0], sliceStart = 0;
13155
13155
  for (let endIndex = len; sliceStart < endIndex;) {
13156
- let mid = sliceStart + endIndex >>> 1;
13157
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13156
+ let mid = sliceStart + endIndex >> 1;
13157
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13158
13158
  }
13159
13159
  let sliceEnd = sliceStart;
13160
13160
  for (let endIndex = len; sliceEnd < endIndex;) {
13161
- let mid = sliceEnd + endIndex >>> 1;
13162
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13161
+ let mid = sliceEnd + endIndex >> 1;
13162
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13163
13163
  }
13164
13164
  if (sliceStart = MathMax(0, sliceStart - padding), sliceEnd = MathMin(sliceEnd + padding, len), typeof filter != "function") return typeof count == "number" ? collectEntries(sliceStart, MathMin(sliceStart + count, sliceEnd), includeComments) : collectEntries(sliceStart, sliceEnd, includeComments);
13165
13165
  let tokensBetween = [];
@@ -13183,24 +13183,24 @@ function getTokensBetween(left, right, countOptions) {
13183
13183
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
13184
13184
  */
13185
13185
  function getFirstTokenBetween(left, right, skipOptions) {
13186
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
13187
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13186
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
13187
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13188
13188
  let rangeStart = left.range[1], rangeEnd = right.range[0], firstTokenIndex = 0;
13189
13189
  for (let endIndex = len; firstTokenIndex < endIndex;) {
13190
- let mid = firstTokenIndex + endIndex >>> 1;
13191
- uint32[mid << 2] < rangeStart ? firstTokenIndex = mid + 1 : endIndex = mid;
13190
+ let mid = firstTokenIndex + endIndex >> 1;
13191
+ int32[mid << 2] < rangeStart ? firstTokenIndex = mid + 1 : endIndex = mid;
13192
13192
  }
13193
13193
  if (typeof filter != "function") {
13194
13194
  let skipTo = firstTokenIndex + (skip ?? 0);
13195
- return skipTo >= len || entryStart(skipTo, uint32) >= rangeEnd ? null : getEntry(skipTo, includeComments);
13195
+ return skipTo >= len || entryStart(skipTo, int32) >= rangeEnd ? null : getEntry(skipTo, includeComments);
13196
13196
  }
13197
13197
  if (typeof skip != "number") for (let i = firstTokenIndex; i < len; i++) {
13198
- if (entryStart(i, uint32) >= rangeEnd) return null;
13198
+ if (entryStart(i, int32) >= rangeEnd) return null;
13199
13199
  let token = getEntry(i, includeComments);
13200
13200
  if (filter(token)) return token;
13201
13201
  }
13202
13202
  else for (let i = firstTokenIndex; i < len; i++) {
13203
- if (entryStart(i, uint32) >= rangeEnd) return null;
13203
+ if (entryStart(i, int32) >= rangeEnd) return null;
13204
13204
  let token = getEntry(i, includeComments);
13205
13205
  if (filter(token)) {
13206
13206
  if (skip <= 0) return token;
@@ -13219,17 +13219,17 @@ function getFirstTokenBetween(left, right, skipOptions) {
13219
13219
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
13220
13220
  */
13221
13221
  function getFirstTokensBetween(left, right, countOptions) {
13222
- let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
13223
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13222
+ let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
13223
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13224
13224
  let rangeStart = left.range[1], rangeEnd = right.range[0], sliceStart = 0;
13225
13225
  for (let endIndex = len; sliceStart < endIndex;) {
13226
- let mid = sliceStart + endIndex >>> 1;
13227
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13226
+ let mid = sliceStart + endIndex >> 1;
13227
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13228
13228
  }
13229
13229
  let sliceEnd = sliceStart;
13230
13230
  for (let endIndex = len; sliceEnd < endIndex;) {
13231
- let mid = sliceEnd + endIndex >>> 1;
13232
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13231
+ let mid = sliceEnd + endIndex >> 1;
13232
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13233
13233
  }
13234
13234
  if (typeof filter != "function") return typeof count == "number" ? collectEntries(sliceStart, MathMin(sliceStart + count, sliceEnd), includeComments) : collectEntries(sliceStart, sliceEnd, includeComments);
13235
13235
  let firstTokens = [];
@@ -13253,24 +13253,24 @@ function getFirstTokensBetween(left, right, countOptions) {
13253
13253
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
13254
13254
  */
13255
13255
  function getLastTokenBetween(left, right, skipOptions) {
13256
- let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), uint32, len;
13257
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13256
+ let skip = typeof skipOptions == "number" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.skip : null, filter = typeof skipOptions == "function" ? skipOptions : typeof skipOptions == "object" && skipOptions ? skipOptions.filter : null, includeComments = getIncludeComments(skipOptions), int32, len;
13257
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13258
13258
  let rangeStart = left.range[1], rangeEnd = right.range[0], lastTokenIndex = 0;
13259
13259
  for (let endIndex = len; lastTokenIndex < endIndex;) {
13260
- let mid = lastTokenIndex + endIndex >>> 1;
13261
- uint32[mid << 2] < rangeEnd ? lastTokenIndex = mid + 1 : endIndex = mid;
13260
+ let mid = lastTokenIndex + endIndex >> 1;
13261
+ int32[mid << 2] < rangeEnd ? lastTokenIndex = mid + 1 : endIndex = mid;
13262
13262
  }
13263
13263
  if (--lastTokenIndex, typeof filter != "function") {
13264
13264
  let skipTo = lastTokenIndex - (skip ?? 0);
13265
- return skipTo < 0 || entryStart(skipTo, uint32) < rangeStart ? null : getEntry(skipTo, includeComments);
13265
+ return skipTo < 0 || entryStart(skipTo, int32) < rangeStart ? null : getEntry(skipTo, includeComments);
13266
13266
  }
13267
13267
  if (typeof skip != "number") for (let i = lastTokenIndex; i >= 0; i--) {
13268
- if (entryStart(i, uint32) < rangeStart) return null;
13268
+ if (entryStart(i, int32) < rangeStart) return null;
13269
13269
  let token = getEntry(i, includeComments);
13270
13270
  if (filter(token)) return token;
13271
13271
  }
13272
13272
  else for (let i = lastTokenIndex; i >= 0; i--) {
13273
- if (entryStart(i, uint32) < rangeStart) return null;
13273
+ if (entryStart(i, int32) < rangeStart) return null;
13274
13274
  let token = getEntry(i, includeComments);
13275
13275
  if (filter(token)) {
13276
13276
  if (skip <= 0) return token;
@@ -13289,17 +13289,17 @@ function getLastTokenBetween(left, right, skipOptions) {
13289
13289
  * @returns Array of `Token`s, or array of `Token | Comment`s if `includeComments` is `true`.
13290
13290
  */
13291
13291
  function getLastTokensBetween(left, right, countOptions) {
13292
- let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), uint32, len;
13293
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13292
+ let count = typeof countOptions == "number" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.count : null, filter = typeof countOptions == "function" ? countOptions : typeof countOptions == "object" && countOptions ? countOptions.filter : null, includeComments = getIncludeComments(countOptions), int32, len;
13293
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13294
13294
  let rangeStart = left.range[1], rangeEnd = right.range[0], sliceStart = 0;
13295
13295
  for (let endIndex = len; sliceStart < endIndex;) {
13296
- let mid = sliceStart + endIndex >>> 1;
13297
- uint32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13296
+ let mid = sliceStart + endIndex >> 1;
13297
+ int32[mid << 2] < rangeStart ? sliceStart = mid + 1 : endIndex = mid;
13298
13298
  }
13299
13299
  let sliceEnd = sliceStart;
13300
13300
  for (let endIndex = len; sliceEnd < endIndex;) {
13301
- let mid = sliceEnd + endIndex >>> 1;
13302
- uint32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13301
+ let mid = sliceEnd + endIndex >> 1;
13302
+ int32[mid << 2] < rangeEnd ? sliceEnd = mid + 1 : endIndex = mid;
13303
13303
  }
13304
13304
  if (typeof filter != "function") return collectEntries(typeof count == "number" ? MathMax(sliceStart, sliceEnd - count) : sliceStart, sliceEnd, includeComments);
13305
13305
  let tokensBetween = [];
@@ -13320,10 +13320,10 @@ function getLastTokensBetween(left, right, countOptions) {
13320
13320
  * @returns `Token` (or `Token | Comment` if `includeComments` is `true`), or `null` if none found.
13321
13321
  */
13322
13322
  function getTokenByRangeStart(offset, rangeOptions) {
13323
- let includeComments = typeof rangeOptions == "object" && !!rangeOptions && "includeComments" in rangeOptions && !!rangeOptions.includeComments, uint32, len;
13324
- includeComments === !1 ? (tokensUint32 === null && initTokensBuffer(), uint32 = tokensUint32, len = tokensLen) : (tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer(), uint32 = tokensAndCommentsUint32, len = tokensAndCommentsLen);
13323
+ let includeComments = typeof rangeOptions == "object" && !!rangeOptions && "includeComments" in rangeOptions && !!rangeOptions.includeComments, int32, len;
13324
+ includeComments === !1 ? (tokensInt32 === null && initTokensBuffer(), int32 = tokensInt32, len = tokensLen) : (tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer(), int32 = tokensAndCommentsInt32, len = tokensAndCommentsLen);
13325
13325
  for (let lo = 0, hi = len; lo < hi;) {
13326
- let mid = lo + hi >>> 1, tokenStart = uint32[mid << 2];
13326
+ let mid = lo + hi >> 1, tokenStart = int32[mid << 2];
13327
13327
  if (tokenStart < offset) lo = mid + 1;
13328
13328
  else if (tokenStart > offset) hi = mid;
13329
13329
  else return getEntry(mid, includeComments);
@@ -13346,16 +13346,16 @@ const JSX_WHITESPACE_REGEXP = /\s/u;
13346
13346
  * any of the tokens found between the two given nodes or tokens.
13347
13347
  */
13348
13348
  function isSpaceBetween(first, second) {
13349
- tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer();
13349
+ tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer();
13350
13350
  let range1 = first.range, range2 = second.range, rangeStart = range1[0], rangeEnd = range2[0];
13351
13351
  rangeStart < rangeEnd ? rangeStart = range1[1] : (rangeEnd = rangeStart, rangeStart = range2[1]);
13352
13352
  let index = 0;
13353
13353
  for (let endIndex = tokensAndCommentsLen; index < endIndex;) {
13354
- let mid = index + endIndex >>> 1;
13355
- tokensAndCommentsUint32[mid << 2] < rangeStart ? index = mid + 1 : endIndex = mid;
13354
+ let mid = index + endIndex >> 1;
13355
+ tokensAndCommentsInt32[mid << 2] < rangeStart ? index = mid + 1 : endIndex = mid;
13356
13356
  }
13357
13357
  for (let lastTokenEnd = rangeStart; index < tokensAndCommentsLen; index++) {
13358
- let tokenStart = tokensAndCommentsUint32[index << 2];
13358
+ let tokenStart = tokensAndCommentsInt32[index << 2];
13359
13359
  if (tokenStart > rangeEnd) break;
13360
13360
  if (tokenStart !== lastTokenEnd) return !0;
13361
13361
  lastTokenEnd = entryEnd(index, !0);
@@ -13383,19 +13383,19 @@ function isSpaceBetween(first, second) {
13383
13383
  * any of the tokens found between the two given nodes or tokens.
13384
13384
  */
13385
13385
  function isSpaceBetweenTokens(first, second) {
13386
- tokensAndCommentsUint32 === null && initTokensAndCommentsBuffer();
13386
+ tokensAndCommentsInt32 === null && initTokensAndCommentsBuffer();
13387
13387
  let range1 = first.range, range2 = second.range, rangeStart = range1[0], rangeEnd = range2[0];
13388
13388
  rangeStart < rangeEnd ? rangeStart = range1[1] : (rangeEnd = rangeStart, rangeStart = range2[1]);
13389
13389
  let index = 0;
13390
13390
  for (let endIndex = tokensAndCommentsLen; index < endIndex;) {
13391
- let mid = index + endIndex >>> 1;
13392
- tokensAndCommentsUint32[mid << 2] < rangeStart ? index = mid + 1 : endIndex = mid;
13391
+ let mid = index + endIndex >> 1;
13392
+ tokensAndCommentsInt32[mid << 2] < rangeStart ? index = mid + 1 : endIndex = mid;
13393
13393
  }
13394
13394
  for (let lastTokenEnd = rangeStart; index < tokensAndCommentsLen; index++) {
13395
- let tokenStart = tokensAndCommentsUint32[index << 2];
13395
+ let tokenStart = tokensAndCommentsInt32[index << 2];
13396
13396
  if (tokenStart > rangeEnd) break;
13397
13397
  let token = getTokenOrComment(index);
13398
- if (tokenStart !== lastTokenEnd || token.type === "JSXText" && JSX_WHITESPACE_REGEXP.test(token.value)) return !0;
13398
+ if (tokenStart !== lastTokenEnd || tokenStart < rangeEnd && token.type === "JSXText" && JSX_WHITESPACE_REGEXP.test(token.value)) return !0;
13399
13399
  lastTokenEnd = token.end;
13400
13400
  }
13401
13401
  return !1;
@@ -13424,22 +13424,22 @@ function getEntry(index, includeComments) {
13424
13424
  * Get `start` offset of token/comment at `index` from the given buffer.
13425
13425
  *
13426
13426
  * @param index - Entry index
13427
- * @param uint32 - The `Uint32Array` buffer (tokens or merged)
13427
+ * @param int32 - The `Int32Array` buffer (tokens or merged)
13428
13428
  * @returns Start offset in source text
13429
13429
  */
13430
- function entryStart(index, uint32) {
13431
- return uint32[index << 2];
13430
+ function entryStart(index, int32) {
13431
+ return int32[index << 2];
13432
13432
  }
13433
13433
  /**
13434
13434
  * Get `end` offset of token/comment at `index`.
13435
- * For tokens-only, reads from `tokensUint32`. For `includeComments`, looks up from the original buffer.
13435
+ * For tokens-only, reads from `tokensInt32`. For `includeComments`, looks up from the original buffer.
13436
13436
  *
13437
13437
  * @param index - Entry index in the tokens or merged buffer
13438
13438
  * @param includeComments - Whether to use the merged tokens-and-comments buffer
13439
13439
  * @returns End offset in source text
13440
13440
  */
13441
13441
  function entryEnd(index, includeComments) {
13442
- return includeComments === !0 ? getTokenOrCommentEnd(index) : tokensUint32[(index << 2) + 1];
13442
+ return includeComments === !0 ? getTokenOrCommentEnd(index) : tokensInt32[(index << 2) + 1];
13443
13443
  }
13444
13444
  /**
13445
13445
  * Collect tokens/comments from `startIndex` (inclusive) to `endIndex` (exclusive) into an array.
@@ -13484,8 +13484,8 @@ function setupSourceForFile(bufferInput, hasBOMInput) {
13484
13484
  * Decode source text from buffer.
13485
13485
  */
13486
13486
  function initSourceText() {
13487
- let { uint32 } = buffer, programPos = uint32[DATA_POINTER_POS_32];
13488
- sourceStartPos = uint32[programPos + 16 >> 2], sourceByteLen = uint32[programPos + 24 >> 2], sourceText = utf8Slice.call(buffer, sourceStartPos, sourceStartPos + sourceByteLen);
13487
+ let { int32 } = buffer, programPos = int32[DATA_POINTER_POS_32];
13488
+ sourceStartPos = int32[programPos + 16 >> 2], sourceByteLen = int32[programPos + 24 >> 2], sourceText = utf8Slice.call(buffer, sourceStartPos, sourceStartPos + sourceByteLen);
13489
13489
  }
13490
13490
  /**
13491
13491
  * Deserialize AST from buffer.
@@ -13993,7 +13993,7 @@ function resetSettings() {
13993
13993
  }
13994
13994
  //#endregion
13995
13995
  //#region package.json
13996
- var version = "1.59.0";
13996
+ var version = "1.60.0";
13997
13997
  //#endregion
13998
13998
  //#region src-js/plugins/context.ts
13999
13999
  let filePath = null, cwd = null;
@@ -23363,7 +23363,7 @@ function lintFileImpl(filePath, bufferId, buffer, ruleIds, optionsIds, settingsJ
23363
23363
  if (buffer === null) buffer = buffers[bufferId];
23364
23364
  else {
23365
23365
  let { buffer: arrayBuffer, byteOffset } = buffer;
23366
- buffer.uint32 = new Uint32Array(arrayBuffer, byteOffset), buffer.float64 = new Float64Array(arrayBuffer, byteOffset);
23366
+ buffer.int32 = new Int32Array(arrayBuffer, byteOffset), buffer.float64 = new Float64Array(arrayBuffer, byteOffset);
23367
23367
  for (let i = bufferId - buffers.length; i >= 0; i--) buffers.push(null);
23368
23368
  buffers[bufferId] = buffer;
23369
23369
  }