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

Method union

crates/ruff_python_parser/src/token_set.rs:20–22  ·  view source on GitHub ↗
(self, other: TokenSet)

Source from the content-addressed store, hash-verified

18 }
19
20 pub(crate) const fn union(self, other: TokenSet) -> TokenSet {
21 TokenSet(self.0 | other.0)
22 }
23
24 pub(crate) const fn remove(self, kind: TokenKind) -> TokenSet {
25 TokenSet(self.0 & !mask(kind))

Callers 12

rule_codesMethod · 0.45
with_prefixMethod · 0.45
is_raw_stringMethod · 0.45
expression.rsFile · 0.45
parse_sliceMethod · 0.45
parse_listMethod · 0.45
statement.rsFile · 0.45
parse_clausesMethod · 0.45
pattern.rsFile · 0.45

Calls 1

TokenSetClass · 0.85

Tested by

no test coverage detected