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

Method body

crates/ruff_python_codegen/src/generator.rs:163–169  ·  view source on GitHub ↗
(&mut self, stmts: &[Stmt])

Source from the content-addressed store, hash-verified

161 }
162
163 fn body(&mut self, stmts: &[Stmt]) {
164 self.indent_depth = self.indent_depth.saturating_add(1);
165 for stmt in stmts {
166 self.unparse_stmt(stmt);
167 }
168 self.indent_depth = self.indent_depth.saturating_sub(1);
169 }
170
171 fn p(&mut self, s: &str) {
172 if self.num_newlines > 0 {

Callers 3

unparse_stmtMethod · 0.45
unparse_match_caseMethod · 0.45

Calls 3

unparse_stmtMethod · 0.80
saturating_addMethod · 0.45
saturating_subMethod · 0.45

Tested by

no test coverage detected