Commit Graph
3 Commits
Author SHA1 Message Date
Sinan Gümüşkabak 1990b02b00 fix(extract): skip JSX member tags
With a lowercase receiver, <icons.Close /> and <props.Comp /> resolved by the
property name and bound to unrelated local Close() / Comp() functions. None
of the member tags tried produced a correct edge, so only bare identifiers
are handled now.

(cherry picked from commit aa4be46dac)
2026-09-27 18:39:52 +01:00
Sinan Gümüşkabak a3559c2541 test: member JSX tag must not bind to a local function by its last segment
(cherry picked from commit af7ea6adaf)
2026-09-27 18:39:52 +01:00
Sinan Gümüşkabak 3a8db79305 fix(extract): add calls edges for JSX component usage
<Comp /> and <Comp>...</Comp> are parsed as jsx_self_closing_element /
jsx_opening_element with the tag in the `name` field, and neither type was
in call_types, so components that are only rendered got no incoming edge.

Add both types to the JS and TSX call_types and read the callee from
`name`. Tags starting with a lowercase letter are intrinsic elements and
are skipped; for member tags the last part decides, so <div> and
<motion.div> don't bind to a local div(). Namespaced tags and fragments
are ignored.

(cherry picked from commit 2828b55851)
2026-09-27 18:39:52 +01:00