mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
File module source does not depend on syntax
This commit is contained in:
parent
9664fbcac5
commit
1c5ce7a868
6 changed files with 21 additions and 17 deletions
|
@ -109,7 +109,8 @@ pub(crate) type SourceFileItemId = Id<SyntaxNode>;
|
|||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct SourceItemId {
|
||||
file_id: FileId,
|
||||
item_id: SourceFileItemId,
|
||||
/// None for the whole file.
|
||||
item_id: Option<SourceFileItemId>,
|
||||
}
|
||||
|
||||
/// Maps item's `SyntaxNode`s to `SourceFileItemId` and back.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue