mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Document privacy invariant of SyntaxPtr
This commit is contained in:
parent
57735f2a32
commit
d7991f5f21
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ use crate::{AstNode, SyntaxKind, SyntaxNode, TextRange};
|
||||||
/// specific node across reparses of the same file.
|
/// specific node across reparses of the same file.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||||
pub struct SyntaxNodePtr {
|
pub struct SyntaxNodePtr {
|
||||||
|
// Don't expose this field further. At some point, we might want to replace
|
||||||
|
// range with node id.
|
||||||
pub(crate) range: TextRange,
|
pub(crate) range: TextRange,
|
||||||
kind: SyntaxKind,
|
kind: SyntaxKind,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue