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

Commit 24eb342

Browse files
committed
Pop a reference to the class.
1 parent b8b8f70 commit 24eb342

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ attribute node_symbol = node => symbol = (source-text node), source_n
9090
node @class.defs
9191
attr (def) node_definition = @name
9292

93+
node ref
94+
attr (ref) node_reference = @name
95+
edge ref -> @class.lexical_scope
96+
edge @class_body.lexical_scope -> ref
97+
9398
edge @class_body.lexical_scope -> @class.lexical_scope
9499

95100
edge @class_body.lexical_scope -> @class_body.defs
@@ -107,7 +112,7 @@ attribute node_symbol = node => symbol = (source-text node), source_n
107112

108113
attr (this__expr_def__typeof) pop_symbol = ":"
109114

110-
edge this__expr_def__typeof -> def
115+
edge this__expr_def__typeof -> ref
111116
}
112117

113118
(class_declaration

0 commit comments

Comments
 (0)