merge source and target bindings into single field

This commit is contained in:
LorrensP-2158466
2025-07-09 14:35:34 +02:00
parent 915e535244
commit e3fc6e5348
4 changed files with 125 additions and 138 deletions

View File

@@ -891,6 +891,13 @@ impl<'ra> NameBindingData<'ra> {
}
}
fn import_source(&self) -> NameBinding<'ra> {
match self.kind {
NameBindingKind::Import { binding, .. } => binding,
_ => unreachable!(),
}
}
fn is_ambiguity_recursive(&self) -> bool {
self.ambiguity.is_some()
|| match self.kind {