mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-10 21:58:37 +00:00
internal: Add Definition::Crate
This is its own thing so it should be handled specifically where possible
This commit is contained in:
parent
32b86a8378
commit
e6270bd378
23 changed files with 184 additions and 133 deletions
|
@ -134,6 +134,7 @@ impl Definition {
|
|||
FieldSource::Pos(_) => None,
|
||||
}
|
||||
}
|
||||
Definition::Crate(_) => None,
|
||||
Definition::Module(module) => {
|
||||
let src = module.declaration_source(sema.db)?;
|
||||
let name = src.value.name()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue