mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-07 09:00:31 +00:00
![]() This also reintroduces the `ResolvedDefinition::Module` variant because reverse-engineering it in several places is a bit confusing. In an ideal world we wouldn't have `ResolvedDefinition::FileWithRange` as it kinda kills the ability to do richer analysis, so I want to chip away at its scope wherever I can (currently it's used to point at asname parts of import statements when doing `ImportAliasResolution::PreserveAliases`, and also keyword arguments). This also makes a kind of odd change to allow a hover to *only* produce a docstring. This works around an oddity where hovering over a module name in an import fails to resolve to a `ty` even though hovering over uses of that imported name *does*. The two fixed tests reflect the two interesting cases here. |
||
---|---|---|
.. | ||
builder | ||
use_def | ||
ast_ids.rs | ||
builder.rs | ||
definition.rs | ||
expression.rs | ||
member.rs | ||
narrowing_constraints.rs | ||
place.rs | ||
predicate.rs | ||
re_exports.rs | ||
reachability_constraints.rs | ||
scope.rs | ||
symbol.rs | ||
use_def.rs |