MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / at

Method at

crates/sith_python_parser/src/parser/mod.rs:426–428  ·  view source on GitHub ↗

Returns `true` if the current token is of the given kind.

(&self, kind: TokenKind)

Source from the content-addressed store, hash-verified

424
425 /// Returns `true` if the current token is of the given kind.
426 fn at(&self, kind: TokenKind) -> bool {
427 self.current_token_kind() == kind
428 }
429
430 /// Returns `true` if the current token is found in the given token set.
431 fn at_ts(&self, ts: TokenSet) -> bool {

Callers 15

at_name_or_keywordMethod · 0.45
parse_expression_listMethod · 0.45
parse_identifierMethod · 0.45
parse_stringsMethod · 0.45
parse_lambda_exprMethod · 0.45
eatMethod · 0.45

Calls 1

current_token_kindMethod · 0.80

Tested by

no test coverage detected