MCPcopy
hub / github.com/webpack/webpack / onCopy

Function onCopy

test/configCases/inner-graph/issue-11678/module.js:223–236  ·  view source on GitHub ↗
(toTargetModule = null)

Source from the content-addressed store, hash-verified

221 }
222}
223async function onCopy(toTargetModule = null) {
224 if (_parentTableSelection) {
225 const refresh = await copyPosition(
226 _getModuleName(),
227 _parentTableSelection,
228 _staticData,
229 _getListofSelectedRow(),
230 toTargetModule
231 );
232 if (refresh) {
233 await _updateTableContent();
234 }
235 }
236}
237async function onCopyToJob() {
238 await onCopy(ModuleNameEnum.JOB);
239}

Callers 2

onCopyToJobFunction · 0.85
onCopyToCeFunction · 0.85

Calls 3

_getModuleNameFunction · 0.85
_getListofSelectedRowFunction · 0.85
_updateTableContentFunction · 0.85

Tested by

no test coverage detected