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

Method remove

crates/ruff_python_parser/src/token_set.rs:24–26  ·  view source on GitHub ↗
(self, kind: TokenKind)

Source from the content-addressed store, hash-verified

22 }
23
24 pub(crate) const fn remove(self, kind: TokenKind) -> TokenSet {
25 TokenSet(self.0 & !mask(kind))
26 }
27
28 pub(crate) const fn contains(&self, kind: TokenKind) -> bool {
29 self.0 & mask(kind) != 0

Callers 4

import_fixtureFunction · 0.45
expression.rsFile · 0.45
reduceMethod · 0.45

Calls 2

TokenSetClass · 0.85
maskFunction · 0.85

Tested by 2

import_fixtureFunction · 0.36