MCPcopy Index your code
hub / github.com/nodejs/node / [kOnLine]

Method [kOnLine]

lib/internal/readline/interface.js:458–467  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

456 }
457
458 [kOnLine](line) {
459 if (this[kQuestionCallback]) {
460 const cb = this[kQuestionCallback];
461 this[kQuestionCallback] = null;
462 this.setPrompt(this[kOldPrompt]);
463 cb(line);
464 } else {
465 this.emit('line', line);
466 }
467 }
468
469 [kBeforeEdit](oldText, oldCursor) {
470 this[kPushToUndoStack](oldText, oldCursor);

Callers

nothing calls this directly

Calls 3

setPromptMethod · 0.95
cbFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected