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

Function parse_suite

crates/ruff_python_parser/src/string.rs:541–543  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

539 const UNIX_EOL: &str = "\n";
540
541 fn parse_suite(source: &str) -> Result<Suite, ParseError> {
542 parse_module(source).map(Parsed::into_suite)
543 }
544
545 fn nested_format_spec(prefix: char, depth: usize) -> String {
546 let mut replacement_field = String::from("{spec}");

Calls 2

parse_moduleFunction · 0.85
mapMethod · 0.45