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

Function stmt_while_fields

crates/ruff_python_ast/src/comparable.rs:1839–1852  ·  view source on GitHub ↗
(node: &ast::StmtWhile)

Source from the content-addressed store, hash-verified

1837}
1838
1839fn stmt_while_fields(node: &ast::StmtWhile) -> StmtWhileFields<'_> {
1840 let ast::StmtWhile {
1841 test,
1842 body,
1843 orelse,
1844 range: _,
1845 node_index: _,
1846 } = node;
1847 StmtWhileFields {
1848 test: test.into(),
1849 body: ComparableSlice::new(body),
1850 orelse: ComparableSlice::new(orelse),
1851 }
1852}
1853
1854#[derive(Debug, PartialEq, Eq, Hash)]
1855struct StmtIfFields<'a> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected