(m ...VariableMatcher)
| 18 | } |
| 19 | |
| 20 | func (vc *VariableConverter) RegisterMatcher(m ...VariableMatcher) *VariableConverter { |
| 21 | vc.converters = append(vc.converters, m...) |
| 22 | // Returns the VariableConverter for easier instantiation |
| 23 | return vc |
| 24 | } |
| 25 | |
| 26 | func (vc *VariableConverter) ConvertVariable(rego ast.Ref) (Node, bool) { |
| 27 | for _, c := range vc.converters { |
no outgoing calls