style(ast_tools): reformat comments (#27848)

Comments-only change. Follow-on after #26548.

Just reformat a couple of comments.
This commit is contained in:
overlookmotel committed 2026-10-16 20:39:19 +00:00
1 parent 2a16b3184a
commit 7814688212
12 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -6385,7 +6385,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5064,7 +5064,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5596,7 +5596,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5626,7 +5626,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -6157,7 +6157,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5366,7 +5366,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5928,7 +5928,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -5955,7 +5955,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -6516,7 +6516,7 @@ function deserializeJSStr(pos) {
| ((buffer[pos++] & 63) << 12)
| ((buffer[pos++] & 63) << 6)
| (buffer[pos++] & 63);
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -13219,7 +13219,7 @@ function constructJSStr(pos, ast) {
| ((buffer[pos++] & 0x3f) << 6)
| (buffer[pos++] & 0x3f);
}
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;
@@ -560,8 +560,7 @@ impl LayoutCalculator<'_> {
"&str" => str_layout,
"Str" => str_layout,
// `JSStr` is a pointer, a u32 length, and a bool.
// `Option<JSStr>` uses the bool's niche, which has more invalid
// values than the pointer.
// `Option<JSStr>` uses the bool's niche, which has more invalid values than the pointer.
"JSStr" => Layout {
layout_64: PlatformLayout::from_size_align_niche(16, 8, Niche::new(12, 1, 0, 254)),
layout_32: PlatformLayout::from_size_align_niche(12, 4, Niche::new(8, 1, 0, 254)),
@@ -1046,7 +1046,7 @@ pub(super) static WTF8_DESERIALIZER_BODY: &str = "
codePoint = ((first & 7) << 18) | ((buffer[pos++] & 0x3F) << 12)
| ((buffer[pos++] & 0x3F) << 6) | (buffer[pos++] & 0x3F);
}
// Unlike UTF-8 decoders, fromCodePoint preserves surrogate code points.
// Unlike UTF-8 decoders, `fromCodePoint` preserves surrogate code points
out += String.fromCodePoint(codePoint);
}
return out;