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

Commit 5563c01

Browse files
committed
Always give field defs scopes.
1 parent 76e4b05 commit 5563c01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,11 +1661,14 @@ inherit .containing_class_value
16611661

16621662

16631663

1664+
(field_definition)@field_def {
1665+
node @field_def.after_scope
1666+
node @field_def.before_scope
1667+
}
1668+
16641669
(field_definition
16651670
property:(property_identifier)@property)@field_def {
16661671

1667-
node @field_def.after_scope
1668-
node @field_def.before_scope
16691672
node @property.pop
16701673
node property_pop_dot
16711674

0 commit comments

Comments
 (0)