Lines Matching refs:mutator
225 mutator EarlyMutator member
375 func (c *Context) RegisterTopDownMutator(name string, mutator TopDownMutator) {
383 topDownMutator: mutator,
395 func (c *Context) RegisterBottomUpMutator(name string, mutator BottomUpMutator) {
403 bottomUpMutator: mutator,
425 func (c *Context) RegisterEarlyMutator(name string, mutator EarlyMutator) {
433 mutator: mutator,
1521 for _, mutator := range c.earlyMutatorInfo {
1532 name: mutator.name,
1537 in := fmt.Sprintf("early mutator %q for %s", mutator.name, module)
1546 mutator.mutator(mctx)
1578 for _, mutator := range c.mutatorInfo {
1579 if mutator.topDownMutator != nil {
1580 errs = c.runTopDownMutator(config, mutator.name, mutator.topDownMutator)
1581 } else if mutator.bottomUpMutator != nil {
1582 errs = c.runBottomUpMutator(config, mutator.name, mutator.bottomUpMutator)
1584 panic("no mutator set on " + mutator.name)
1595 name string, mutator TopDownMutator) (errs []error) {
1619 mutator(mctx)
1632 name string, mutator BottomUpMutator) (errs []error) {
1665 mutator(mctx)