MCPcopy Create free account
hub / github.com/astral-sh/ruff / TokenSet

Class TokenSet

crates/ruff_python_parser/src/token_set.rs:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3/// A bit-set of `TokenKind`s
4#[derive(Clone, Copy)]
5pub(crate) struct TokenSet(u128);
6
7impl TokenSet {
8 pub(crate) const fn new<const N: usize>(kinds: [TokenKind; N]) -> TokenSet {

Callers 3

newMethod · 0.85
unionMethod · 0.85
removeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected