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

Commit 4fc8fe3

Browse files
committed
Namespace names have scopes.
1 parent bd403b6 commit 4fc8fe3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3698,6 +3698,11 @@ inherit .containing_class_value
36983698

36993699
}
37003700

3701+
(jsx_namespace_name (_) @lhs (_) @rhs)@name {
3702+
node @name.before_scope
3703+
node @name.after_scope
3704+
}
3705+
37013706
(jsx_self_closing_element
37023707
name:(_)@element_name)@jsx_self_closing_element {
37033708

0 commit comments

Comments
 (0)