This repository was archived by the owner on Sep 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
languages/tree-sitter-stack-graphs-java Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ pub const STACK_GRAPHS_BUILTINS_CONFIG: &str = include_str!("../src/builtins.cfg
1010/// The stack graphs builtins source for this language
1111pub const STACK_GRAPHS_BUILTINS_SOURCE : & str = include_str ! ( "../src/builtins.java" ) ;
1212
13+ /// The name of the file path global variable
14+ pub const FILE_PATH_VAR : & str = "FILE_PATH" ;
15+ /// The name of the project name global variable
16+ pub const PROJECT_NAME_VAR : & str = "PROJECT_NAME" ;
17+
1318pub fn language_configuration ( cancellation_flag : & dyn CancellationFlag ) -> LanguageConfiguration {
1419 LanguageConfiguration :: from_tsg_str (
1520 tree_sitter_java:: language ( ) ,
Original file line number Diff line number Diff line change 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+
67global JUMP_TO_SCOPE_NODE
8+ global ROOT_NODE
79
810;;;;;;;;;;;;;;;;;;;;;;;
911;; Attribute Shorthands
You can’t perform that action at this time.
0 commit comments