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

Method stmt

crates/ruff_python_codegen/src/generator.rs:140–143  ·  view source on GitHub ↗

Generate source code from a [`Stmt`].

(mut self, stmt: &Stmt)

Source from the content-addressed store, hash-verified

138
139 /// Generate source code from a [`Stmt`].
140 pub fn stmt(mut self, stmt: &Stmt) -> String {
141 self.unparse_stmt(stmt);
142 self.generate()
143 }
144
145 /// Generate source code from an [`Expr`].
146 pub fn expr(mut self, expr: &Expr) -> String {

Callers 15

generate_method_callFunction · 0.80
make_suggestionFunction · 0.80
generate_range_len_callFunction · 0.80
make_suggestionFunction · 0.80
needless_boolFunction · 0.80
return_stmtFunction · 0.80
functionFunction · 0.80

Calls 2

unparse_stmtMethod · 0.80
generateMethod · 0.80

Tested by 1