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

Commit 834c099

Browse files
committed
Build references for this.
1 parent e4171d5 commit 834c099

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,21 +358,24 @@ attribute node_symbol = node => symbol = (source-text node), source_n
358358
; node @expr.lexical_scope
359359
}
360360

361-
(super) @super
361+
[
362+
(super)
363+
(this)
364+
] @expr
362365
{
363-
node @super.lexical_scope ; FIXME: move to the all-expressions rule
366+
node @expr.lexical_scope ; FIXME: move to the all-expressions rule
364367

365368
node expr_ref
366369
node expr_ref__ns
367370
node expr_ref__typeof
368371

369-
attr (expr_ref) node_reference = @super
372+
attr (expr_ref) node_reference = @expr
370373
edge expr_ref -> expr_ref__ns
371374

372375
attr (expr_ref__ns) push_symbol = "%E"
373-
edge expr_ref__ns -> @super.lexical_scope
376+
edge expr_ref__ns -> @expr.lexical_scope
374377

375-
edge @super.type -> expr_ref__typeof
378+
edge @expr.type -> expr_ref__typeof
376379

377380
attr (expr_ref__typeof) push_symbol = ":"
378381
edge expr_ref__typeof -> expr_ref

0 commit comments

Comments
 (0)