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

Method HasBindings

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

Source from the content-addressed store, hash-verified

24 return p.Left.String() + " | " + p.Right.String()
25}
26func (p *OrPattern) HasBindings() bool {
27 // Both sides must bind same variables (validated elsewhere)
28 return p.Left.HasBindings() || p.Right.HasBindings()
29}
30func (p *OrPattern) GetBindings() []Binding {
31 // Return bindings from left side (right must match)
32 return p.Left.GetBindings()

Callers

nothing calls this directly

Calls 1

HasBindingsMethod · 0.65

Tested by

no test coverage detected