mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Use ItemPtr for id
This commit is contained in:
parent
3922503205
commit
c2abd17f57
4 changed files with 12 additions and 18 deletions
|
@ -17,13 +17,6 @@ pub(crate) struct SyntaxPtr {
|
|||
local: LocalSyntaxPtr,
|
||||
}
|
||||
|
||||
impl SyntaxPtr {
|
||||
pub(crate) fn new(file_id: FileId, node: SyntaxNodeRef) -> SyntaxPtr {
|
||||
let local = LocalSyntaxPtr::new(node);
|
||||
SyntaxPtr { file_id, local }
|
||||
}
|
||||
}
|
||||
|
||||
/// A pionter to a syntax node inside a file.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub(crate) struct LocalSyntaxPtr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue