PrevMatcherUntilSelection is like PrevUntilSelection, with the option to filter the results based on a matcher. It returns a new Selection object containing the matched elements.
(filter Matcher, sel *Selection)
| 512 | // option to filter the results based on a matcher. It returns a new |
| 513 | // Selection object containing the matched elements. |
| 514 | func (s *Selection) PrevMatcherUntilSelection(filter Matcher, sel *Selection) *Selection { |
| 515 | if sel == nil { |
| 516 | return s.PrevMatcher(filter) |
| 517 | } |
| 518 | return s.PrevMatcherUntilNodes(filter, sel.Nodes...) |
| 519 | } |
| 520 | |
| 521 | // PrevFilteredUntilNodes is like PrevUntilNodes, with the |
| 522 | // option to filter the results based on a selector string. It returns a new |
no test coverage detected