()
| 117 | return "[" + strings.Join(parts, ", ") + "]" |
| 118 | } |
| 119 | func (p *SlicePattern) HasBindings() bool { |
| 120 | for _, elem := range p.Elements { |
| 121 | if elem.HasBindings() { |
| 122 | return true |
| 123 | } |
| 124 | } |
| 125 | return false |
| 126 | } |
| 127 | func (p *SlicePattern) GetBindings() []Binding { |
| 128 | var bindings []Binding |
| 129 | for i, elem := range p.Elements { |
nothing calls this directly
no test coverage detected