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

Commit 6af20fb

Browse files
committed
🔥 the one-off local variable rule.
1 parent 0fd3fa3 commit 6af20fb

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -821,22 +821,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
821821
edge ref -> @this.lexical_scope
822822
}
823823

824-
(local_variable_declaration
825-
type: (type_identifier) @type
826-
declarator: (variable_declarator
827-
name: (identifier) @identifier
828-
value: (object_creation_expression
829-
type: (type_identifier) @object)
830-
)) @local_variable {
831-
node @object.value
832-
attr (@object.value) node_reference = @object
833-
node @type.value
834-
attr(@type.value) node_reference = @type
835-
edge @type.value -> @local_variable.after_scope
836-
edge @local_variable.after_scope -> @object.value
837-
edge @object.value -> @local_variable.after_scope
838-
}
839-
840824
(parenthesized_expression (_) @child) @expr {
841825
edge @child.lexical_scope -> @expr.lexical_scope
842826
}

0 commit comments

Comments
 (0)