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

Method unparse_alias

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

Source from the content-addressed store, hash-verified

1606 }
1607
1608 fn unparse_alias(&mut self, alias: &Alias) {
1609 self.p_id(&alias.name);
1610 if let Some(asname) = &alias.asname {
1611 self.p(" as ");
1612 self.p_id(asname);
1613 }
1614 }
1615
1616 fn unparse_with_item(&mut self, with_item: &WithItem) {
1617 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