MCPcopy
hub / github.com/BishopFox/jsluice / PrevNamedSibling

Method PrevNamedSibling

tree.go:161–166  ·  view source on GitHub ↗

PrevNamedSibling returns the previous named sibling in the tree

()

Source from the content-addressed store, hash-verified

159
160// PrevNamedSibling returns the previous named sibling in the tree
161func (n *Node) PrevNamedSibling() *Node {
162 if !n.IsValid() {
163 return nil
164 }
165 return NewNode(n.node.PrevNamedSibling(), n.source)
166}
167
168// CollapsedString takes a node representing a URL and attempts to make it
169// at least somewhat easily parseable. It's common to build URLs out

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.95
NewNodeFunction · 0.85

Tested by

no test coverage detected