MCPcopy Create free account
hub / github.com/Hashnode/starter-kit / openNode

Method openNode

packages/utils/renderer/highlight.js:156–159  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

154 this.top.children.push(e);
155 }
156 openNode(e) {
157 const n = { kind: e, children: [] };
158 this.add(n), this.stack.push(n);
159 }
160 closeNode() {
161 if (this.stack.length > 1) return this.stack.pop();
162 }

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected