MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / pushStack

Function pushStack

utilities.go:240–243  ·  view source on GitHub ↗

Creates a new Selection object based on the specified nodes, and keeps the source Selection object on the stack (linked list).

(fromSel *Selection, nodes []*html.Node)

Source from the content-addressed store, hash-verified

238// Creates a new Selection object based on the specified nodes, and keeps the
239// source Selection object on the stack (linked list).
240func pushStack(fromSel *Selection, nodes []*html.Node) *Selection {
241 result := &Selection{nodes, fromSel.document, fromSel}
242 return result
243}

Callers 15

FilterMatcherMethod · 0.85
NotMatcherMethod · 0.85
FilterFunctionMethod · 0.85
NotFunctionMethod · 0.85
FilterNodesMethod · 0.85
NotNodesMethod · 0.85
FilterSelectionMethod · 0.85
NotSelectionMethod · 0.85
HasMatcherMethod · 0.85
HasNodesMethod · 0.85
EmptyMethod · 0.85
FindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected