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

Commit 2122e6f

Browse files
committed
🔥 the specialized local variable with generic type rule.
1 parent 2b5b906 commit 2122e6f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -543,21 +543,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
543543
edge @value.lexical_scope -> @this.before_scope
544544
}
545545

546-
(local_variable_declaration
547-
type: (generic_type
548-
(type_identifier) @type
549-
(type_arguments
550-
(type_identifier) @type_identifier))) @local_var {
551-
node @type_identifier.value
552-
attr(@type_identifier.value) node_reference = @type_identifier
553-
554-
node @type.value
555-
attr(@type.value) node_reference = @type
556-
557-
edge @type.value -> @local_var.after_scope
558-
edge @type_identifier.value -> @local_var.after_scope
559-
}
560-
561546
(return_statement (_) @expr) @stmt
562547
{
563548
edge @expr.lexical_scope -> @stmt.before_scope

0 commit comments

Comments
 (0)