MCPcopy
hub / github.com/tinylib/msgp / ApplyDirective

Method ApplyDirective

gen/spec.go:155–161  ·  view source on GitHub ↗

ApplyDirective applies a directive to a named pass and all of its dependents.

(pass Method, t TransformPass)

Source from the content-addressed store, hash-verified

153// ApplyDirective applies a directive to a named pass
154// and all of its dependents.
155func (p *Printer) ApplyDirective(pass Method, t TransformPass) {
156 for _, g := range p.gens {
157 if g.Method().isset(pass) {
158 g.Add(t)
159 }
160 }
161}
162
163// Print prints an Elem.
164func (p *Printer) Print(e Elem) error {

Callers 1

passignoreFunction · 0.80

Calls 3

issetMethod · 0.80
MethodMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected