findByKey

fnauto findByKey(ref CdmNode root, string key) @safe

Finds all object-like nodes that contain a specific key.

Object-like nodes are OBJECT and TAG types. This function searches for nodes that have a member with the given key.

Parameters

rootThe root node to search from.
keyThe key to search for within object-like nodes.

Returns

An array of CdmNode* pointers to all object-like nodes

that contain the specified key, in depth-first order.