FoldingParams
API / @publicodes/tools / optims / FoldingParams
type FoldingParams = object; Defined in: optims/constantFolding.ts:32
Parameters for the constant folding optimization pass.
Field
toAvoid A predicate that returns true if the rule should be avoided to be folded, if not present, all rules will be folded.
Field
toKeep A predicate that returns true if the rule should be kept AFTER being folded, if not present, all folded rules will be kept.
Field
isFoldedAttr The attribute name to use to mark a rule as folded, default to ‘optimized’.
Properties
isFoldedAttr?
optional isFoldedAttr?: string; Defined in: optims/constantFolding.ts:35
toAvoid?
optional toAvoid?: PredicateOnRule; Defined in: optims/constantFolding.ts:33
toKeep?
optional toKeep?: PredicateOnRule; Defined in: optims/constantFolding.ts:34