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

Commit 108fc1b

Browse files
committed
Point implicit super at the superclass name.
1 parent e4fa215 commit 108fc1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ attribute node_symbol = node => symbol = (source-text node), source_n
121121

122122
(class_declaration
123123
superclass: (superclass
124-
(type_identifier) @identifier) @superclass
124+
(type_identifier) @identifier)
125125
body: (class_body) @class_body) @class {
126126

127127
node ref
@@ -137,7 +137,7 @@ attribute node_symbol = node => symbol = (source-text node), source_n
137137

138138
edge @class.lexical_scope -> super__expr_def
139139

140-
attr (super__expr_def) pop_symbol = "super", source_node = @superclass, empty_source_span
140+
attr (super__expr_def) pop_symbol = "super", source_node = @identifier, empty_source_span
141141
edge super__expr_def -> super__expr_def__typeof
142142

143143
attr (super__expr_def__typeof) pop_symbol = ":"

0 commit comments

Comments
 (0)