MCPcopy Create free account
hub / github.com/hashintel/hash / contains

Method contains

libs/@local/hashql/syntax-jexpr/src/lexer/syntax_kind_set.rs:103–105  ·  view source on GitHub ↗

Returns true if the set contains the given syntax kind.

(self, kind: SyntaxKind)

Source from the content-addressed store, hash-verified

101
102 /// Returns true if the set contains the given syntax kind.
103 pub(crate) const fn contains(self, kind: SyntaxKind) -> bool {
104 self.0 & kind.into_flag() != 0
105 }
106
107 /// Returns true if the set contains any of the syntax kinds in the given set.
108 pub(crate) const fn contains_any(self, set: Self) -> bool {

Callers 3

unexpected_tokenFunction · 0.45
validate_tokenMethod · 0.45
verify_no_repeatFunction · 0.45

Calls 1

into_flagMethod · 0.80

Tested by

no test coverage detected