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

Method end_token

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

Source from the content-addressed store, hash-verified

64
65 #[inline]
66 pub(crate) const fn end_token(self) -> TokenKind {
67 match self {
68 InterpolatedStringKind::FString => TokenKind::FStringEnd,
69 InterpolatedStringKind::TString => TokenKind::TStringEnd,
70 }
71 }
72}
73
74impl fmt::Display for InterpolatedStringKind {

Calls

no outgoing calls

Tested by

no test coverage detected