Skip to main content

Module optimize

Module optimize 

Source
Expand description

The optimize transform: replaces the dictionary-key argument of every recognised caller with a pre-imported dictionary object and re-points the import specifier at the matching *Dictionary helper.

Only the native useIntlayer / getIntlayer / getIntlayerAsync rewrite lives here. Compat adapters plug in through ExtraCallerContext, held as an Option: with no extraCallers configured it is None, every branch guarded by it is skipped, and the native rewrite runs exactly as if the adapters did not exist.

Structsยง

TransformVisitor