Lines Matching refs:input

62 // If the error is that we've unexpectedly ended the input,
63 // then let the user try to recover by adding more input.
77 // Determine if the point of any error raised is at the end of the input.
98 constructor(options, input, startPos) {
99 super(options, input, startPos);
114 const token = StringPrototypeSlice(this.input,
134 // Odd case: the underlying JS engine (V8, Chakra) rejected this input
297 // This returns a code preview for arbitrary input code.
298 function getInputPreview(input, callback) {
301 if (StringPrototypeStartsWith(input, '{') &&
302 !StringPrototypeEndsWith(input, ';') && !wrapped) {
303 input = `(${input})`;
308 expression: input,
327 // for input that has no completions.
487 // Insert the longest common suffix of the current input in case the user
488 // moves to the right while already being at the current input end.
526 let input = '';
556 if (input === '') {
583 cursor = StringPrototypeLastIndexOf(entry, input, cursor - 1);
585 cursor = StringPrototypeIndexOf(entry, input, cursor + 1);
594 const end = StringPrototypeSlice(entry, cursor + input.length);
595 entry = `${start}\x1B[4m${input}\x1B[24m${end}`;
597 print(entry, `${labels[dir]}${input}_`, cursor);
603 (dir === 's' && entry.length === cursor + input.length)) {
609 print(repl.line, `failed-${labels[dir]}${input}_`);
619 // This would be useful for both, the input preview and the reverse
621 // 3. Add arbitrary input that is "on top" of the current line. That is
657 // cursor rows, the output rows and the input rows.
699 input = string || '';
717 reset(StringPrototypeSlice(input, 0, input.length - 1));
736 reset(`${input}${string}`);