1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 46x 46x 15x 31x 33x 33x | /** * @param {Node} node - CommonMark AST Node * @yields {Node} - the node's children */ export function* getChildren(node) { let child = node.firstChild; if (!child) { return; } do { yield child; child = child.next; } while (child); } |