Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 8ae0463

Browse files
author
Hendrik van Antwerpen
committed
Add warning regarding possible node id conflicts
1 parent 99c53d0 commit 8ae0463

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • tree-sitter-stack-graphs/src

tree-sitter-stack-graphs/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,9 @@ impl<'a> Builder<'a> {
11481148
}
11491149

11501150
pub trait FileAnalyzer {
1151+
/// Construct stack graph for the given file. Implementations must assume that nodes
1152+
/// for the given file may already exist, and make sure to prevent node id conflicts,
1153+
/// for example by using `StackGraph::new_node_id`.
11511154
fn build_stack_graph_into<'a>(
11521155
&self,
11531156
stack_graph: &mut StackGraph,

0 commit comments

Comments
 (0)