We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 123350f + 3090222 commit 69906f5Copy full SHA for 69906f5
tree-sitter-stack-graphs/src/lib.rs
@@ -653,6 +653,13 @@ impl<'a> Builder<'a> {
653
.add(JUMP_TO_SCOPE_NODE_VAR.into(), jump_to_scope_node.into())
654
.expect("Failed to set JUMP_TO_SCOPE_NODE");
655
656
+ if globals.get(&FILE_PATH_VAR.into()).is_none() {
657
+ let file_name = self.stack_graph[self.file].to_string();
658
+ globals
659
+ .add(FILE_PATH_VAR.into(), file_name.into())
660
+ .expect("Failed to set FILE_PATH");
661
+ }
662
+
663
let mut config = ExecutionConfig::new(&self.sgl.functions, &globals)
664
.lazy(true)
665
.debug_attributes(
0 commit comments