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

Method at_ts

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

Returns `true` if the current token is found in the given token set.

(&self, ts: TokenSet)

Source from the content-addressed store, hash-verified

429
430 /// Returns `true` if the current token is found in the given token set.
431 fn at_ts(&self, ts: TokenSet) -> bool {
432 ts.contains(self.current_token_kind())
433 }
434
435 fn src_text<T>(&self, ranged: T) -> &'src str
436 where

Callers 13

at_exprMethod · 0.80
at_sequence_endMethod · 0.80
parse_sliceMethod · 0.80
parse_stringsMethod · 0.80
parse_generatorsMethod · 0.80
at_compound_stmtMethod · 0.80
at_simple_stmtMethod · 0.80
at_stmtMethod · 0.80
at_pattern_startMethod · 0.80

Calls 2

current_token_kindMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected