MCPcopy Index your code
hub / github.com/nodejs/node / checkAndSetDirectionKey

Function checkAndSetDirectionKey

lib/internal/repl/utils.js:544–555  ·  view source on GitHub ↗
(keyName)

Source from the content-addressed store, hash-verified

542 let promptPos;
543
544 function checkAndSetDirectionKey(keyName) {
545 if (!labels[keyName]) {
546 return false;
547 }
548 if (dir !== keyName) {
549 // Reset the already matched set in case the direction is changed. That
550 // way it's possible to find those entries again.
551 alreadyMatched.clear();
552 dir = keyName;
553 }
554 return true;
555 }
556
557 function goToNextHistoryIndex() {
558 // Ignore this entry for further searches and continue to the next

Callers 1

reverseSearchFunction · 0.85

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…