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

Method middle_token

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

Source from the content-addressed store, hash-verified

56
57 #[inline]
58 pub(crate) const fn middle_token(self) -> TokenKind {
59 match self {
60 InterpolatedStringKind::FString => TokenKind::FStringMiddle,
61 InterpolatedStringKind::TString => TokenKind::TStringMiddle,
62 }
63 }
64
65 #[inline]
66 pub(crate) const fn end_token(self) -> TokenKind {

Calls

no outgoing calls

Tested by

no test coverage detected