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

Commit 10ae494

Browse files
committed
Move assignment_expression to expressions list
1 parent a5e1b20 commit 10ae494

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
284284
edge @type_identifier.value -> @local_var.after_scope
285285
}
286286

287-
;; =============
288-
;; Expressions
289-
;; =============
290-
291-
(assignment_expression) @assign_expr
292-
{
293-
node @assign_expr.lexical_scope
294-
}
295-
296287
;; =====================
297288
;; Primary Expressions
298289
;; =====================
@@ -380,8 +371,13 @@ attribute node_symbol = node => symbol = (source-text node), source_n
380371
edge @object.value -> @local_variable.after_scope
381372
}
382373

374+
;; =============
375+
;; Expressions
376+
;; =============
377+
383378
[
384379
; FIXME: all expressions should be here
380+
(assignment_expression)
385381
(field_access)
386382
(identifier)
387383
(method_invocation)

0 commit comments

Comments
 (0)