mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 16:10:38 +00:00
Refactor the ExprDict
node (#11267)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
de270154a1
commit
6774f27f4b
52 changed files with 2425 additions and 2240 deletions
|
@ -2301,13 +2301,9 @@ impl AstNode for ast::ExprDict {
|
|||
where
|
||||
V: PreorderVisitor<'a> + ?Sized,
|
||||
{
|
||||
let ast::ExprDict {
|
||||
keys,
|
||||
values,
|
||||
range: _,
|
||||
} = self;
|
||||
let ast::ExprDict { items, range: _ } = self;
|
||||
|
||||
for (key, value) in keys.iter().zip(values) {
|
||||
for ast::DictItem { key, value } in items {
|
||||
if let Some(key) = key {
|
||||
visitor.visit_expr(key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue