MCPcopy
hub / github.com/webpack/webpack / addChild

Method addChild

lib/FileSystemInfo.js:537–543  ·  view source on GitHub ↗

* Adds the provided child to the snapshot. * @param {Snapshot} child children

(child)

Source from the content-addressed store, hash-verified

535 * @param {Snapshot} child children
536 */
537 addChild(child) {
538 if (!this.hasChildren()) {
539 this.setChildren(new Set());
540 }
541 /** @type {Children} */
542 (this.children).add(child);
543 }
544
545 /**
546 * Serializes this instance into the provided serializer context.

Callers 1

optimizeMethod · 0.45

Calls 3

hasChildrenMethod · 0.95
setChildrenMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected