MCPcopy
hub / github.com/webpack/webpack / onShiftPosition

Function onShiftPosition

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

Source from the content-addressed store, hash-verified

204 }
205}
206async function onShiftPosition(state) {
207 const pk = getPKFromSelection();
208 if (pk !== null) {
209 const ok = await shiftPosition(state, pk);
210 if (ok) {
211 await _updateTableContent();
212 }
213 } else {
214 showLoadingWarning(TC.selectionEmpty);
215 }
216}
217async function onInsertFromTemplateDialog() {
218 if (_parentTableSelection) {
219 await setInsertData(_getModuleName(), _parentTableSelection);

Callers

nothing calls this directly

Calls 2

getPKFromSelectionFunction · 0.85
_updateTableContentFunction · 0.85

Tested by

no test coverage detected