MCPcopy Create free account
hub / github.com/BishopFox/jsluice / Has

Method Has

tree.go:408–411  ·  view source on GitHub ↗

Has returns true if the QueryResult contains a *Node for the provided capture name

(captureName string)

Source from the content-addressed store, hash-verified

406// Has returns true if the QueryResult contains a *Node
407// for the provided capture name
408func (qr QueryResult) Has(captureName string) bool {
409 _, exists := qr[captureName]
410 return exists
411}
412
413// Get returns the corresponding *Node for the provided
414// capture name, or nil if no such *Node exists

Callers 1

GetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected