Instance Method
children(of:kind:)
Fetch the child nodes of a documentation node with the given reference, optionally filtering to only children of the given kind.
func children(of reference: ResolvedTopicReference, kind: DocumentationNode.Kind? = nil) -> [(reference: ResolvedTopicReference, kind: DocumentationNode.Kind)]
Parameters
referenceThe reference of the node to fetch children for.
kindAn optional documentation node kind to filter the children by.
Return Value
A list of the reference and kind for each matching child node.
Discussion
Important
The returned list can’t be used to determine source language specific children.