MCPcopy
hub / github.com/webpack/webpack / onDuplicate

Function onDuplicate

test/configCases/inner-graph/issue-11678/module.js:243–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 await onCopy(ModuleNameEnum.CEHEADER);
242}
243async function onDuplicate() {
244 if (_parentTableSelection) {
245 const refresh = duplicatePosition(
246 _getModuleName(),
247 _parentTableSelection,
248 _getListofSelectedRow()
249 );
250 if (refresh) {
251 await _updateTableContent();
252 }
253 }
254}
255function onCopyList() {
256 return [
257 ...(_getModuleName() === ModuleNameEnum.JOB

Callers

nothing calls this directly

Calls 3

_getModuleNameFunction · 0.85
_getListofSelectedRowFunction · 0.85
_updateTableContentFunction · 0.85

Tested by

no test coverage detected