MCPcopy
hub / github.com/MadAppGang/dingo / HasBindings

Method HasBindings

pkg/ast/pattern.go:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

HasBindingsMethod · 0.65

Tested by

no test coverage detected