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

Commit 9195cc8

Browse files
committed
Rename identifier to superclass_name.
1 parent 108fc1b commit 9195cc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

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

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

127127
node ref
128-
attr (ref) node_reference = @identifier
128+
attr (ref) node_reference = @superclass_name
129129

130-
edge @identifier.lexical_scope -> @class.lexical_scope
130+
edge @superclass_name.lexical_scope -> @class.lexical_scope
131131

132132
edge ref -> @class.lexical_scope
133133
edge @class_body.lexical_scope -> 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 = @identifier, empty_source_span
140+
attr (super__expr_def) pop_symbol = "super", source_node = @superclass_name, 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)