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 15

test_removeFunction · 0.45
import_fixtureFunction · 0.45
remove_fileMethod · 0.45
remove_virtual_fileMethod · 0.45
remove_directoryMethod · 0.45
same_resultsFunction · 0.45
cancelMethod · 0.45
completeMethod · 0.45
close_documentMethod · 0.45

Calls 2

TokenSetClass · 0.85
maskFunction · 0.85

Tested by 7

test_removeFunction · 0.36
import_fixtureFunction · 0.36
try_await_responseMethod · 0.36
try_await_requestMethod · 0.36