Document privacy invariant of SyntaxPtr
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user