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

Method is_raw_string

crates/ruff_python_parser/src/lexer/interpolated_string.rs:70–72  ·  view source on GitHub ↗

Returns `true` if the current f-string is a raw f-string.

(&self)

Source from the content-addressed store, hash-verified

68
69 /// Returns `true` if the current f-string is a raw f-string.
70 pub(crate) fn is_raw_string(&self) -> bool {
71 self.flags.is_raw_string()
72 }
73
74 /// Returns `true` if the current f-string is a triple-quoted f-string.
75 pub(crate) fn is_triple_quoted(&self) -> bool {

Callers 4

parse_bytesMethod · 0.45
parse_stringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected