fix: Resolve generic parameters within use captures

This commit is contained in:
Lukas Wirth 2024-12-05 14:37:38 +01:00
parent 7f39ee3fce
commit d6b62265b5
5 changed files with 90 additions and 2 deletions

View file

@ -1517,6 +1517,10 @@ impl<'db> SemanticsImpl<'db> {
self.analyze(path.syntax())?.resolve_path(self.db, path)
}
pub fn resolve_use_type_arg(&self, name: &ast::NameRef) -> Option<TypeParam> {
self.analyze(name.syntax())?.resolve_use_type_arg(name)
}
pub fn resolve_mod_path(
&self,
scope: &SyntaxNode,