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

Method parse

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

Source from the content-addressed store, hash-verified

503 }
504
505 fn parse(self) -> Result<StringType, LexicalError> {
506 if self.flags.is_byte_string() {
507 self.parse_bytes()
508 } else {
509 self.parse_string()
510 }
511 }
512}
513
514pub(crate) fn parse_string_literal(

Callers 1

parse_string_literalFunction · 0.45

Calls 3

is_byte_stringMethod · 0.80
parse_bytesMethod · 0.80
parse_stringMethod · 0.45

Tested by

no test coverage detected