yq/pkg/yqlib/operator_pipe.go
2021-02-11 10:58:40 +11:00

12 lines
319 B
Go

package yqlib
import "container/list"
func pipeOperator(d *dataTreeNavigator, matchingNodes *list.List, expressionNode *ExpressionNode) (*list.List, error) {
lhs, err := d.GetMatchingNodes(matchingNodes, expressionNode.Lhs)
if err != nil {
return nil, err
}
return d.GetMatchingNodes(lhs, expressionNode.Rhs)
}