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

Method is_f_string

crates/sith_python_parser/src/token.rs:743–745  ·  view source on GitHub ↗

Returns `true` if the token is an f-string.

(self)

Source from the content-addressed store, hash-verified

741impl TokenFlags {
742 /// Returns `true` if the token is an f-string.
743 pub(crate) const fn is_f_string(self) -> bool {
744 self.intersects(TokenFlags::F_STRING)
745 }
746
747 /// Returns `true` if the token is a triple-quoted f-string.
748 pub(crate) fn is_triple_quoted_fstring(self) -> bool {

Callers 1

lex_identifierMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected