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

Commit 95f0acd

Browse files
committed
No namespaces.
1 parent 8bb63e6 commit 95f0acd

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

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

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,9 @@ attribute node_symbol = node => symbol = (source-text node), source_n
9898
edge def -> @class_body.defs
9999

100100
node this__expr_def
101-
node this__expr_def__ns
102101
node this__expr_def__typeof
103102

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
103+
edge @class.lexical_scope -> this__expr_def
108104

109105
attr (this__expr_def) pop_symbol = "this", source_node = @class, empty_source_span
110106
edge this__expr_def -> this__expr_def__typeof
@@ -119,24 +115,16 @@ attribute node_symbol = node => symbol = (source-text node), source_n
119115
(type_identifier) @identifier) @superclass
120116
body: (class_body) @class_body) @class {
121117

122-
node @class.expr_def__ns
123-
attr (@class.expr_def__ns) push_symbol = "%E"
124-
125118
node ref
126119
attr (ref) node_reference = @identifier
127120

128121
edge ref -> @class.lexical_scope
129122
edge @class_body.lexical_scope -> ref
130-
edge @class_body.lexical_scope -> @class.expr_def__ns
131123

132124
node super__expr_def
133-
node super__expr_def__ns
134125
node super__expr_def__typeof
135126

136-
edge @class.lexical_scope -> super__expr_def__ns
137-
138-
attr (super__expr_def__ns) pop_symbol = "%E"
139-
edge super__expr_def__ns -> super__expr_def
127+
edge @class.lexical_scope -> super__expr_def
140128

141129
attr (super__expr_def) pop_symbol = "super", source_node = @superclass, empty_source_span
142130
edge super__expr_def -> super__expr_def__typeof
@@ -329,7 +317,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
329317
name: (identifier) @method_name) @method_invocation {
330318
node member
331319
node implicit_this
332-
node implicit_this__ns
333320
node implicit_this__typeof
334321

335322
; attr (implicit_this) node_reference = @method_invocation
@@ -338,9 +325,7 @@ attribute node_symbol = node => symbol = (source-text node), source_n
338325
; receiver is implicitly "this"
339326
edge implicit_this__typeof -> implicit_this
340327
attr (implicit_this__typeof) push_symbol = ":"
341-
edge implicit_this -> implicit_this__ns
342-
attr (implicit_this__ns) push_symbol = "%E"
343-
edge implicit_this__ns -> @method_invocation.lexical_scope
328+
edge implicit_this -> @method_invocation.lexical_scope
344329

345330
node expr_ref
346331
attr (expr_ref) node_reference = @method_name
@@ -406,14 +391,10 @@ attribute node_symbol = node => symbol = (source-text node), source_n
406391
node @expr.lexical_scope ; FIXME: move to the all-expressions rule
407392

408393
node expr_ref
409-
node expr_ref__ns
410394
node expr_ref__typeof
411395

412396
attr (expr_ref) node_reference = @expr
413-
edge expr_ref -> expr_ref__ns
414-
415-
attr (expr_ref__ns) push_symbol = "%E"
416-
edge expr_ref__ns -> @expr.lexical_scope
397+
edge expr_ref -> @expr.lexical_scope
417398

418399
edge @expr.type -> expr_ref__typeof
419400

0 commit comments

Comments
 (0)