Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ impl Tree {
}

/// An `AST` node.
///
/// The inner `tree_sitter::Node` is exposed for advanced use cases
/// where direct access to the underlying tree-sitter API is needed.
#[derive(Clone, Copy, Debug)]
pub struct Node<'a>(OtherNode<'a>);
pub struct Node<'a>(pub OtherNode<'a>);

impl<'a> Node<'a> {
/// Checks if a node represents a syntax error or contains any syntax errors
Expand Down