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

Commit 20aed8b

Browse files
committed
Add PROJECT_NAME global var to Java tsg file
1 parent 57b41a3 commit 20aed8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

languages/tree-sitter-stack-graphs-java/src/stack-graphs.tsg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
;;;;;;;;;;;;;;;;;;;
22
;; Global Variables
33

4-
global FILE_PATH
5-
global ROOT_NODE
4+
global FILE_PATH ; project relative path of this file
5+
global PROJECT_NAME = "" ; project name, used to isolate different projects in the same stack graph
6+
67
global JUMP_TO_SCOPE_NODE
8+
global ROOT_NODE
79

810
;;;;;;;;;;;;;;;;;;;;;;;
911
;; Attribute Shorthands

0 commit comments

Comments
 (0)