MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / parse_suite

Function parse_suite

crates/sith_python_parser/src/string.rs:480–487  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

478 const UNIX_EOL: &str = "\n";
479
480 fn parse_suite(source: &str) -> Result<Suite, ParseError> {
481 let parsed = parse_module(source);
482 if parsed.is_valid() {
483 Ok(parsed.into_suite())
484 } else {
485 Err(parsed.into_errors().into_iter().next().unwrap())
486 }
487 }
488
489 fn string_parser_escaped_eol(eol: &str) -> Suite {
490 let source = format!(r"'text \{eol}more text'");

Calls 6

parse_moduleFunction · 0.85
into_suiteMethod · 0.80
into_errorsMethod · 0.80
is_validMethod · 0.45
nextMethod · 0.45
into_iterMethod · 0.45