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

Commit f1b50d2

Browse files
committed
Use the right scope.
1 parent 40dfe0e commit f1b50d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ attribute node_symbol = node => symbol = (source-text node), source_n
236236
}
237237

238238
(explicit_constructor_invocation constructor: (_) @constructor) @this {
239-
edge @constructor.lexical_scope -> @this.lexical_scope
239+
edge @constructor.lexical_scope -> @this.before_scope
240240
}
241241

242242
(explicit_constructor_invocation object: (_) @object) @this {
243-
edge @object.lexical_scope -> @this.lexical_scope
243+
edge @object.lexical_scope -> @this.before_scope
244244
}
245245

246246
(explicit_constructor_invocation arguments: (argument_list (_) @arg)) @this {
247-
edge @arg.lexical_scope -> @this.lexical_scope
247+
edge @arg.lexical_scope -> @this.before_scope
248248
}
249249

250250
(enum_declaration name: (_) @name) @this {

0 commit comments

Comments
 (0)