Skip to main content

resolve_use_alias

Function resolve_use_alias 

Source
pub fn resolve_use_alias(stmts: &[Stmt<'_, '_>], word: &str) -> Option<String>
Expand description

Resolve a use-import alias to the short class name.

Given use App\Foo as Bar, hovering on Bar anywhere in the file should resolve to Foo so the declaration lookup succeeds.