Optional
iterationOptional
once?: booleanIf true
, stop after the first rule that matches.
If false
, apply all the remaining rules even after the first match.
Default: true
Optional
recursive?: booleanIf true
, apply replacement rules to all sub-expressions.
If false
, only consider the top-level expression.
Default: true
If
iterationLimit
> 1, the rules will be repeatedly applied until no rules apply, up tomaxIterations
times.Note that if
once
is true,maxIterations
has no effect.Default:
1