Skip to content

Commit 4a5d9aa

Browse files
committed
docs(lexer): update comment to match code
1 parent 1c15288 commit 4a5d9aa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

crates/oxc_parser/src/lexer/token.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ use oxc_span::Span;
77
use super::kind::Kind;
88

99
// Bit layout for `u128`:
10-
// - Bits 0-31 (32 bits): `start`
11-
// - Bits 32-63 (32 bits): `end`
12-
// - Bits 64-71 (8 bits): `kind` (as u8)
13-
// - Bit 72 (1 bit): `is_on_new_line`
14-
// - Bit 73 (1 bit): `escaped`
15-
// - Bit 74 (1 bit): `lone_surrogates`
16-
// - Bit 75 (1 bit): `has_separator`
10+
// - Bits 0-31 (32 bits): `start` (`u32`)
11+
// - Bits 32-63 (32 bits): `end` (`u32`)
12+
// - Bits 64-71 (8 bits): `kind` (`Kind`)
13+
// - Bits 72-79 (8 bits): `is_on_new_line` (`bool`)
14+
// - Bits 80-87 (8 bits): `escaped` (`bool`)
15+
// - Bits 88-95 (8 bits): `lone_surrogates` (`bool`)
16+
// - Bits 96-103 (8 bits): `has_separator` (`bool`)
17+
// - Bits 104-127 (24 bits): unused
1718

1819
const START_SHIFT: usize = 0;
1920
const END_SHIFT: usize = 32;

0 commit comments

Comments
 (0)