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

Method unparse_alias

crates/ruff_python_codegen/src/generator.rs:1623–1629  ·  view source on GitHub ↗
(&mut self, alias: &Alias)

Source from the content-addressed store, hash-verified

1621 }
1622
1623 fn unparse_alias(&mut self, alias: &Alias) {
1624 self.p_id(&alias.name);
1625 if let Some(asname) = &alias.asname {
1626 self.p(" as ");
1627 self.p_id(asname);
1628 }
1629 }
1630
1631 fn unparse_with_item(&mut self, with_item: &WithItem) {
1632 self.unparse_expr(&with_item.context_expr, precedence::MAX);

Callers

nothing calls this directly

Calls 2

p_idMethod · 0.80
pMethod · 0.80

Tested by

no test coverage detected