Skip to content

RegexOptimization

RegexOptimization describes how a constant regular expression call is compiled during planning.

functionName: string

functionName identifies the function to optimize.


optional overloadId?: string

overloadId optionally narrows the optimization to one overload.


regexIndex: number

regexIndex identifies the call argument containing the regular expression.

factory(options): InterpretableCall

factory compiles the pattern and returns the replacement call.

RegexOptimizationFactoryOptions

InterpretableCall