mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
Refactor: AttrDef -> ReDef
This commit is contained in:
parent
24627eb26c
commit
a249de98b3
10 changed files with 83 additions and 68 deletions
|
@ -145,9 +145,9 @@ impl<'a> Linker<'a> {
|
|||
self.resolve_pymod_path(def);
|
||||
}
|
||||
}
|
||||
Expr::AttrDef(attr_def) => {
|
||||
Expr::ReDef(redef) => {
|
||||
// REVIEW:
|
||||
for chunk in attr_def.block.iter_mut() {
|
||||
for chunk in redef.block.iter_mut() {
|
||||
self.resolve_pymod_path(chunk);
|
||||
}
|
||||
}
|
||||
|
@ -267,9 +267,9 @@ impl<'a> Linker<'a> {
|
|||
self.replace_import(def);
|
||||
}
|
||||
}
|
||||
Expr::AttrDef(attr_def) => {
|
||||
Expr::ReDef(redef) => {
|
||||
// REVIEW:
|
||||
for chunk in attr_def.block.iter_mut() {
|
||||
for chunk in redef.block.iter_mut() {
|
||||
self.replace_import(chunk);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue