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

Method unparse_with_item

crates/ruff_python_codegen/src/generator.rs:1616–1622  ·  view source on GitHub ↗
(&mut self, with_item: &WithItem)

Source from the content-addressed store, hash-verified

1614 }
1615
1616 fn unparse_with_item(&mut self, with_item: &WithItem) {
1617 self.unparse_expr(&with_item.context_expr, precedence::MAX);
1618 if let Some(optional_vars) = &with_item.optional_vars {
1619 self.p(" as ");
1620 self.unparse_expr(optional_vars, precedence::MAX);
1621 }
1622 }
1623}
1624
1625#[cfg(test)]

Callers

nothing calls this directly

Calls 2

pMethod · 0.80
unparse_exprMethod · 0.45

Tested by

no test coverage detected