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

Commit 5111107

Browse files
committed
Define parameters.
1 parent 1c0df17 commit 5111107

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ attribute node_symbol = node => symbol = (source-text node), source_n
405405
edge @body.lexical_scope -> @this.lexical_scope
406406
}
407407

408+
(record_declaration parameters: (formal_parameters (_) @param)) @this {
409+
edge @param.lexical_scope -> @this.lexical_scope
410+
edge @this.lexical_scope -> @param.def
411+
edge @this.defs -> @param.def
412+
}
413+
408414
;; ============
409415
;; Statements
410416
;; ============

0 commit comments

Comments
 (0)