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

Commit 57b41a3

Browse files
committed
Set global variables for Java tssg
Adds PROJECT_NAME_VAR and FILE_PATH_VAR
1 parent 71bf812 commit 57b41a3

File tree

1 file changed

+5
-0
lines changed
  • languages/tree-sitter-stack-graphs-java/rust

1 file changed

+5
-0
lines changed

languages/tree-sitter-stack-graphs-java/rust/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1111
pub 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+
1318
pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {
1419
LanguageConfiguration::from_tsg_str(
1520
tree_sitter_java::language(),

0 commit comments

Comments
 (0)