We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AstTypesBitset
1 parent f00adbe commit d6b2e57Copy full SHA for d6b2e57
crates/oxc_semantic/src/ast_types_bitset.rs
@@ -2,7 +2,7 @@ use oxc_ast::{AstType, ast_kind::AST_TYPE_MAX};
2
3
const USIZE_BITS: usize = usize::BITS as usize;
4
5
-/// Number of bytes required for bit set which can represent all [`AstType`]s.
+/// Number of `usize`s required for bit set which can represent all [`AstType`]s.
6
// Need to add plus one here because 0 is a possible value, but requires at least one bit to represent it.
7
const NUM_USIZES: usize = (AST_TYPE_MAX as usize + 1).div_ceil(USIZE_BITS);
8
0 commit comments