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

Method expr

crates/ruff_python_codegen/src/generator.rs:146–149  ·  view source on GitHub ↗

Generate source code from an [`Expr`].

(mut self, expr: &Expr)

Source from the content-addressed store, hash-verified

144
145 /// Generate source code from an [`Expr`].
146 pub fn expr(mut self, expr: &Expr) -> String {
147 self.unparse_expr(expr, 0);
148 self.generate()
149 }
150
151 fn newline(&mut self) {
152 if !self.initial {

Callers

nothing calls this directly

Calls 2

generateMethod · 0.80
unparse_exprMethod · 0.45

Tested by

no test coverage detected