MCPcopy
hub / github.com/markdoc/markdoc / walk

Method walk

src/ast/node.ts:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 *walk(): Generator<Node, void, unknown> {
46 for (const child of [...Object.values(this.slots), ...this.children]) {
47 yield child;
48 yield* child.walk();
49 }
50 }
51
52 push(node: Node) {
53 this.children.push(node);

Callers 3

parser.test.tsFile · 0.80
node.test.tsFile · 0.80
transformFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected