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

Method start_token

crates/ruff_python_parser/src/string.rs:50–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48impl InterpolatedStringKind {
49 #[inline]
50 pub(crate) const fn start_token(self) -> TokenKind {
51 match self {
52 InterpolatedStringKind::FString => TokenKind::FStringStart,
53 InterpolatedStringKind::TString => TokenKind::TStringStart,
54 }
55 }
56
57 #[inline]
58 pub(crate) const fn middle_token(self) -> TokenKind {

Callers 3

lex_tokenMethod · 0.45
handle_indentationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected