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

Commit 8bb63e6

Browse files
committed
Namespaces.
1 parent 0b31c4c commit 8bb63e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,11 @@ attribute node_symbol = node => symbol = (source-text node), source_n
325325

326326
; method calls with implicit receiver
327327
(method_invocation
328+
!object
328329
name: (identifier) @method_name) @method_invocation {
329330
node member
330331
node implicit_this
332+
node implicit_this__ns
331333
node implicit_this__typeof
332334

333335
; attr (implicit_this) node_reference = @method_invocation
@@ -336,7 +338,9 @@ attribute node_symbol = node => symbol = (source-text node), source_n
336338
; receiver is implicitly "this"
337339
edge implicit_this__typeof -> implicit_this
338340
attr (implicit_this__typeof) push_symbol = ":"
339-
edge implicit_this -> @method_invocation.lexical_scope
341+
edge implicit_this -> implicit_this__ns
342+
attr (implicit_this__ns) push_symbol = "%E"
343+
edge implicit_this__ns -> @method_invocation.lexical_scope
340344

341345
node expr_ref
342346
attr (expr_ref) node_reference = @method_name

0 commit comments

Comments
 (0)