Skip to main content

Module environment

Module environment 

Source

Structs§

BindingRename
A variable rename from lowering: the binding at declaration_start position was renamed from original to renamed.
Environment
OutlinedFunctionEntry
An outlined function entry, stored on Environment during compilation. Corresponds to TS { fn: HIRFunction, type: ReactFunctionType | null }.

Enums§

OutputMode
Output mode for the compiler, mirrored from the entrypoint’s CompilerOutputMode. Stored on Environment so pipeline passes can access it.

Functions§

is_hook_name
Check if a name matches the React hook naming convention: use[A-Z0-9]. Ported from TS isHookName in Environment.ts.
is_react_like_name
Returns true if the name follows React naming conventions (component or hook). Components start with an uppercase letter; hooks match use[A-Z0-9].