Skip to content

Commit

Permalink
improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakobeha committed Oct 20, 2024
1 parent 35cdb95 commit 5d2cff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions type-sitter-lib/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ mod parser;
/// That is how you convert untyped nodes into types nodes. If you're absolutely sure the node is
/// correct, you may also use [`Node::from_raw_unchecked`], though it's honestly probably not
/// worth the possible performance gain.
///
/// You can get extra nodes (e.g. comments) that are before and after this node with [`prefixes`](
/// Self::prefixes) and [`suffixes`](Self::suffixes).
pub trait Node<'tree>: Debug + Clone + Copy + PartialEq + Eq + Hash {
/// The same type, but with a different lifetime.
type WithLifetime<'a>: Node<'a>;
Expand Down

0 comments on commit 5d2cff2

Please sign in to comment.