in llresult/results.go [106:118]
func (r Results) EachResult(f func(llpath.Path, ValueResult) bool) {
for p, pathResults := range r.Fields {
for _, result := range pathResults {
// We can ignore path parse errors here, those are from scalars and other
// types that have an invalid string path
// TODO: Find a cleaner way to do this
parsed, _ := llpath.ParsePath(p)
if !f(parsed, result) {
return
}
}
}
}