Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ parse_suite
Function
parse_suite
crates/ruff_python_parser/src/string.rs:544–546 ·
view source on GitHub ↗
(source: &str)
Source
from the content-addressed store, hash-verified
542
const UNIX_EOL: &str =
"\n"
;
543
544
fn parse_suite(source: &str) -> Result<Suite, ParseError> {
545
parse_module(source).map(Parsed::into_suite)
546
}
547
548
fn parse_suite_with_recursion_limit(
549
source: &str,
Callers
15
string_parser_escaped_eol
Function · 0.70
test_parse_fstring
Function · 0.70
test_parse_fstring_nested_spec
Function · 0.70
test_parse_fstring_not_nested_spec
Function · 0.70
test_parse_empty_fstring
Function · 0.70
test_fstring_parse_self_documenting_base
Function · 0.70
test_fstring_parse_self_documenting_base_more
Function · 0.70
test_fstring_parse_self_documenting_format
Function · 0.70
parse_fstring_error
Function · 0.70
test_parse_fstring_not_equals
Function · 0.70
test_parse_fstring_equals
Function · 0.70
test_parse_fstring_self_doc_prec_space
Function · 0.70
Calls
2
parse_module
Function · 0.85
map
Method · 0.45
Tested by
15
test_parse_fstring
Function · 0.56
test_parse_fstring_nested_spec
Function · 0.56
test_parse_fstring_not_nested_spec
Function · 0.56
test_parse_empty_fstring
Function · 0.56
test_fstring_parse_self_documenting_base
Function · 0.56
test_fstring_parse_self_documenting_base_more
Function · 0.56
test_fstring_parse_self_documenting_format
Function · 0.56
test_parse_fstring_not_equals
Function · 0.56
test_parse_fstring_equals
Function · 0.56
test_parse_fstring_self_doc_prec_space
Function · 0.56
test_parse_fstring_self_doc_trailing_space
Function · 0.56
test_parse_fstring_yield_expr
Function · 0.56