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

Method IsNamed

tree.go:332–337  ·  view source on GitHub ↗

IsNamed returns true if the underlying node is named

()

Source from the content-addressed store, hash-verified

330
331// IsNamed returns true if the underlying node is named
332func (n *Node) IsNamed() bool {
333 if !n.IsValid() {
334 return false
335 }
336 return n.node.IsNamed()
337}
338
339// ForEachChild iterates over a node's children in a depth-first
340// manner, calling the supplied function for each node

Callers 2

getTreeFunction · 0.80
mainFunction · 0.80

Calls 1

IsValidMethod · 0.95

Tested by

no test coverage detected