Skip to main content

Module transform

Module transform 

Source
Expand description

The transform pipeline: synthesize new metavars from captured ones before fix interpolation (ast-grep transform:).

Each transform reads one source metavar and applies exactly one operation — regex replace, a substring slice, or a case convert — binding the result under a new metavar name. In v1 transforms read only the originally-captured metavars (not each other’s output).

Structs§

CompiledTransform
A compiled transform: a source metavar plus one operation.