Skip to main content
Module fold_jsx_opening_element_impl
stylex_
transform
0.15.3
Module fold_
jsx_
opening_
element_
impl
Module Items
Functions
In stylex_
transform::
transform::
fold
stylex_transform
::
transform
::
fold
Module
fold_
jsx_
opening_
element_
impl
Copy item path
Source
Functions
ยง
build_
stylex_
props_
call
๐
Build a call expression for stylex props:
extract_
prop_
value
๐
Extract the value from a
KeyValue
prop entry.
find_
sx_
prop_
idx
๐
Find the index of the prop with key matching
sx_prop_name
in a props list.
is_
jsx_
runtime_
call
๐
Check if a
CallExpr
is a JSX/VDOM runtime call that takes
(elementName, props, ...)
.
sx_
value_
to_
props_
args
๐
Convert an
sx
value expression into args for
stylex.props(...)
. Array literals are unpacked:
[a, b]
โ
[a, b]
as separate args. Other expressions are wrapped:
expr
โ
[expr]
.