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

Commit fc198fc

Browse files
committed
Introduce this.
1 parent 834c099 commit fc198fc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ attribute node_symbol = node => symbol = (source-text node), source_n
9696
attr (@class_body.lexical_scope -> @class_body.defs) precedence = 1
9797
edge @class.defs -> def
9898
edge def -> @class_body.defs
99+
100+
node this__expr_def
101+
node this__expr_def__ns
102+
node this__expr_def__typeof
103+
104+
edge @class.lexical_scope -> this__expr_def__ns
105+
106+
attr (this__expr_def__ns) pop_symbol = "%E"
107+
edge this__expr_def__ns -> this__expr_def
108+
109+
attr (this__expr_def) pop_symbol = "this", source_node = @class, empty_source_span
110+
edge this__expr_def -> this__expr_def__typeof
111+
112+
attr (this__expr_def__typeof) pop_symbol = ":"
113+
114+
edge this__expr_def__typeof -> def
99115
}
100116

101117
(class_declaration

0 commit comments

Comments
 (0)