Skip to content

Commit 8ae0463

Browse files
Add warning regarding possible node id conflicts
1 parent 99c53d0 commit 8ae0463

File tree

1 file changed

+3
-0
lines changed
  • tree-sitter-stack-graphs/src

1 file changed

+3
-0
lines changed

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)