MCPcopy
hub / github.com/webpack/webpack / constructor

Method constructor

lib/util/deterministicGrouping.js:232–241  ·  view source on GitHub ↗

* Creates an instance of Group. * @param {Node<T>[]} nodes nodes * @param {Similarities | null} similarities similarities between the nodes (length = nodes.length - 1) * @param {Sizes=} size size of the group

(nodes, similarities, size)

Source from the content-addressed store, hash-verified

230 * @param {Sizes=} size size of the group
231 */
232 constructor(nodes, similarities, size) {
233 /** @type {Node<T>[]} */
234 this.nodes = nodes;
235 /** @type {Similarities | null} */
236 this.similarities = similarities;
237 /** @type {Sizes} */
238 this.size = size || sumSize(nodes);
239 /** @type {string | undefined} */
240 this.key = undefined;
241 }
242
243 /**
244 * Returns removed nodes.

Callers

nothing calls this directly

Calls 1

sumSizeFunction · 0.85

Tested by

no test coverage detected