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

Commit bff3acd

Browse files
committed
All* expressions have a type.
*Not actually all expressions.
1 parent 1a32140 commit bff3acd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,18 @@ attribute node_symbol = node => symbol = (source-text node), source_n
335335
edge @expr_stmt.after_scope -> @method_invocation.lexical_scope
336336
}
337337

338+
[
339+
; FIXME: all expressions should be here
340+
(field_access)
341+
(identifier)
342+
(method_invocation)
343+
(super)
344+
] @expr
345+
{
346+
node @expr.type
347+
; node @expr.lexical_scope
348+
}
349+
338350
(method_invocation
339351
object: (super)
340352
name: (identifier) @method_name) @method_invocation {

0 commit comments

Comments
 (0)