Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/oxlint/src-js/generated/deserialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let uint8,

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String,
{ fromCharCode } = String,
NodeProto = Object.create(Object.prototype, {
loc: {
get() {
Expand Down Expand Up @@ -5894,7 +5894,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let uint8, uint32, float64, sourceText, sourceIsAscii, sourceEndPos, firstNonAsc

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -4557,7 +4557,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/js_parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let uint8,

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -5094,7 +5094,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/js_range.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let uint8, uint32, float64, sourceText, sourceIsAscii, sourceEndPos, firstNonAsc

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -5099,7 +5099,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/js_range_parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let uint8,

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -5639,7 +5639,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let uint8, uint32, float64, sourceText, sourceIsAscii, sourceEndPos, firstNonAsc

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -4866,7 +4866,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/ts_parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let uint8,

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -5430,7 +5430,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/ts_range.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let uint8, uint32, float64, sourceText, sourceIsAscii, sourceEndPos, firstNonAsc

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -5439,7 +5439,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions napi/parser/src-js/generated/deserialize/ts_range_parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let uint8,

const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
decodeStr = textDecoder.decode.bind(textDecoder),
{ fromCodePoint } = String;
{ fromCharCode } = String;

export function deserialize(buffer, sourceText, sourceByteLen) {
sourceEndPos = sourceByteLen;
Expand Down Expand Up @@ -6003,7 +6003,7 @@ function deserializeStr(pos) {
c;
do {
c = uint8[pos++];
if (c < 128) out += fromCodePoint(c);
if (c < 128) out += fromCharCode(c);
else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
4 changes: 2 additions & 2 deletions tasks/ast_tools/src/generators/raw_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn generate_deserializers(

const textDecoder = new TextDecoder('utf-8', {{ ignoreBOM: true }}),
decodeStr = textDecoder.decode.bind(textDecoder),
{{ fromCodePoint }} = String;
{{ fromCharCode }} = String;

/* IF LOC */
const NodeProto = Object.create(Object.prototype, {{
Expand Down Expand Up @@ -948,7 +948,7 @@ static STR_DESERIALIZER_BODY: &str = "
do {
c = uint8[pos++];
if (c < 0x80) {
out += fromCodePoint(c);
out += fromCharCode(c);
} else {
out += decodeStr(uint8.subarray(pos - 1, end));
break;
Expand Down
Loading