Has returns true if the QueryResult contains a *Node for the provided capture name
(captureName string)
| 406 | // Has returns true if the QueryResult contains a *Node |
| 407 | // for the provided capture name |
| 408 | func (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 |