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

Commit a4577b7

Browse files
committed
Implement interfaces.
1 parent a107ba8 commit a4577b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ attribute node_symbol = node => symbol = (source-text node), source_n
161161
attr (@this.def) node_definition = @id
162162
}
163163

164+
(class_declaration interfaces: (super_interfaces (type_list (_) @type))) @this {
165+
edge @type.lexical_scope -> @this.lexical_scope
166+
}
167+
164168
(class_body) @class_body {
165169
node @class_body.lexical_scope
166170
node @class_body.defs

0 commit comments

Comments
 (0)