License
BSD-3-Clause
CDM Traversal Utilities
This module provides utilities for traversing and querying CDM trees. These functions work with the CDM structures created by any format parser (JSON5, SDL, etc.).
auto findAll(ref CdmNode root, bool delegate(ref CdmNode) @safe pred) @safeFinds all nodes in a CDM tree matching a predicate.CdmNode * findFirst(ref CdmNode root, bool delegate(ref CdmNode) @safe pred) @safeFinds the first node in a CDM tree matching a predicate.auto findByType(ref CdmNode root, CdmNode.Type type) @safeFinds all nodes of a specific type in a CDM tree.