MCPcopy Index your code
hub / github.com/nodejs/node / findOrAddChild

Method findOrAddChild

deps/v8/tools/profile.mjs:1223–1227  ·  view source on GitHub ↗

* Finds an immediate child with the specified label, creates a child * node if necessary. * * @param {string} label Child node label.

(label)

Source from the content-addressed store, hash-verified

1221 * @param {string} label Child node label.
1222 */
1223 findOrAddChild(label) {
1224 const found = this.findChild(label)
1225 if (found === null) return this.addChild(label);
1226 return found;
1227 }
1228
1229 /**
1230 * Calls the specified function for every child.

Callers

nothing calls this directly

Calls 2

findChildMethod · 0.95
addChildMethod · 0.95

Tested by

no test coverage detected