in llresult/results.go [74:88]
func (r *Results) MergeUnderPrefix(prefix llpath.Path, other *Results) {
if len(prefix) == 0 {
// If the prefix is empty, just use standard Merge
// No need to add the dots
r.Merge(other)
return
}
for otherPath, valueResults := range other.Fields {
for _, valueResult := range valueResults {
parsed := llpath.MustParsePath(otherPath)
r.Record(prefix.Concat(parsed), valueResult)
}
}
}