Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 25 of 163) sorted by relevance

1234567

/third_party/node/lib/internal/repl/
Dutils.js143 function setupPreview(repl, contextSymbol, bufferSymbol, active) { argument
161 const displayPos = repl._getDisplayPos(`${repl.getPrompt()}${repl.line}`);
162 const cursorPos = repl.line.length !== repl.cursor ?
163 repl.getCursorPos() :
178 moveCursor(repl.output, 0, rows);
179 clearLine(repl.output);
180 moveCursor(repl.output, 0, -rows);
185 const move = repl.line.length !== repl.cursor;
189 cursorTo(repl.output, pos.displayPos.cols);
191 moveCursor(repl.output, 0, rows);
[all …]
Dhistory.js28 function _writeToOutput(repl, message) { argument
29 repl._writeToOutput(message);
30 repl._refreshLine();
33 function setupHistory(repl, historyPath, ready) { argument
39 repl._historyPrev = _replHistoryMessage;
40 return ready(null, repl);
47 _writeToOutput(repl, '\nError: Could not get the home directory.\n' +
51 repl._historyPrev = _replHistoryMessage;
52 return ready(null, repl);
59 repl.pause();
[all …]
/third_party/vk-gl-cts/framework/qphelper/
DqpXmlWriter.c56 const char* repl = DE_NULL; in writeEscaped() local
60 case '<': repl = "&lt;"; break; in writeEscaped()
61 case '>': repl = "&gt;"; break; in writeEscaped()
62 case '&': repl = "&amp;"; break; in writeEscaped()
63 case '\'': repl = "&apos;"; break; in writeEscaped()
64 case '"': repl = "&quot;"; break; in writeEscaped()
67 case 1: repl = "&lt;SOH&gt;"; break; in writeEscaped()
68 case 2: repl = "&lt;STX&gt;"; break; in writeEscaped()
69 case 3: repl = "&lt;ETX&gt;"; break; in writeEscaped()
70 case 4: repl = "&lt;EOT&gt;"; break; in writeEscaped()
[all …]
/third_party/node/test/parallel/
Dtest-repl-use-global.js7 const repl = require('internal/repl'); constant
17 const globalTest = (useGlobal, cb, output) => (err, repl) => {
24 repl.write('global.lunch;\n');
25 repl.close();
45 const processTest = (useGlobal, cb, output) => (err, repl) => {
53 repl.write('let process;\n');
54 repl.write('21 * 2;\n');
55 repl.close();
77 repl.createInternalRepl(
Dtest-repl-options.js28 const repl = require('repl'); constant
31 assert.strictEqual(repl.repl, undefined);
32 repl._builtinLibs; // eslint-disable-line no-unused-expressions
47 const r1 = repl.start({
61 assert.strictEqual(r1.replMode, repl.REPL_MODE_SLOPPY);
68 const r2 = repl.start({
77 replMode: repl.REPL_MODE_STRICT,
89 assert.strictEqual(r2.replMode, repl.REPL_MODE_STRICT);
93 const r3 = () => repl.start({
105 const r4 = repl.start();
[all …]
Dtest-repl-underscore.js5 const repl = require('repl'); constant
16 const r = initRepl(repl.REPL_MODE_SLOPPY);
49 const r = initRepl(repl.REPL_MODE_STRICT);
82 const r = initRepl(repl.REPL_MODE_MAGIC);
115 const r = initRepl(repl.REPL_MODE_SLOPPY);
137 const r = initRepl(repl.REPL_MODE_STRICT, true);
158 const r = initRepl(repl.REPL_MODE_STRICT);
233 return repl.start({
Dtest-repl-preview.js51 function runAndWait(cmds, repl) { argument
52 const promise = repl.inputStream.wait();
54 repl.inputStream.run(cmd);
60 const repl = REPLServer({
68 repl.inputStream.run([
162 const hasPreview = repl.terminal &&
169 let lines = await runAndWait(toBeRun, repl);
Dtest-repl-mode.js5 const repl = require('repl'); constant
19 const cli = initRepl(repl.REPL_MODE_SLOPPY);
30 const cli = initRepl(repl.REPL_MODE_STRICT);
47 const cli = initRepl(repl.REPL_MODE_STRICT, {
58 const cli = initRepl(repl.REPL_MODE_MAGIC);
80 return repl.start({
Dtest-repl-envvars.js69 REPL.createInternalRepl(process.env, opts, function(err, repl) { argument
72 assert.strictEqual(repl.terminal, expected.terminal,
74 assert.strictEqual(repl.useColors, expected.useColors,
76 assert.strictEqual(repl.replMode, expected.replMode || REPL_MODE_SLOPPY,
81 repl.close();
Dtest-repl-programmatic-history.js216 const repl = REPL.start({
242 repl.setupHistory(historyFile, function(err, repl) { argument
248 repl.once('close', () => {
249 if (repl._flushing) {
250 repl.once('flushHistory', onClose);
270 repl.inputStream.run(test);
Dtest-repl-recoverable.js6 const repl = require('repl'); constant
15 return cb(evalCount === 1 ? new repl.Recoverable() : null, true);
30 repl.start('', putIn, customEval);
Dtest-repl-end-emits-exit.js26 const repl = require('repl'); constant
34 const r1 = repl.start({
53 const r2 = repl.start({
Dtest-repl-reset-event.js26 const repl = require('repl'); constant
35 const r = repl.start({
58 const r = repl.start({
/third_party/node/doc/api/
Drepl.md7 <!-- source_link=lib/repl.js -->
9 The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation
14 const repl = require('node:repl');
19 The `node:repl` module exports the [`repl.REPLServer`][] class. While running,
20 instances of [`repl.REPLServer`][] will accept individual lines of user input,
25 Instances of [`repl.REPLServer`][] support automatic completion of inputs,
81 By default, all instances of [`repl.REPLServer`][] use an evaluation function
84 evaluation function when the [`repl.REPLServer`][] instance is created.
110 const repl = require('node:repl');
113 repl.start('> ').context.m = msg;
[all …]
/third_party/node/lib/internal/debugger/
Dinspect_repl.js370 let repl;
1096 get repl() { getter
1098 const listeners = ArrayPrototypeSlice(repl.listeners('SIGINT'));
1099 repl.removeAllListeners('SIGINT');
1101 const oldContext = repl.context;
1107 repl.on('SIGINT', listener);
1112 repl.eval = controlEval;
1115 history.debug = repl.history;
1116 repl.history = history.control;
1118 repl.context = oldContext;
[all …]
Dinspect.js173 const repl = await startRepl();
174 this.repl = repl;
175 this.repl.on('exit', exitCodeZero);
184 if (this.repl) {
185 this.repl.pause();
193 if (this.repl) {
194 this.repl.resume();
195 this.repl.displayPrompt();
269 this.repl.displayPrompt(true);
/third_party/node/lib/internal/main/
Drepl.js42 cliRepl.createInternalRepl(process.env, (err, repl) => {
46 repl.on('exit', () => {
47 if (repl._flushing) {
48 repl.pause();
49 return repl.once('flushHistory', () => {
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt03.c38 struct ipt_replace repl; member
66 p.repl.num_entries = 2; in run()
67 p.repl.num_counters = 1; in run()
68 p.repl.size = sizeof(struct payload); in run()
69 p.repl.valid_hooks = 0; in run()
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_opt_mod_props.c34 bi_would_impact_abs(unsigned arch, bi_instr *I, bi_index repl, unsigned s) in bi_would_impact_abs() argument
37 bi_is_word_equiv(I->src[1 - s], repl); in bi_would_impact_abs()
41 bi_takes_fabs(unsigned arch, bi_instr *I, bi_index repl, unsigned s) in bi_takes_fabs() argument
47 return !bi_would_impact_abs(arch, I, repl, s); in bi_takes_fabs()
55 return !(I->clamp && bi_would_impact_abs(arch, I, repl, s)); in bi_takes_fabs()
111 bi_compose_float_index(bi_index old, bi_index repl) in bi_compose_float_index() argument
115 repl.neg = old.neg ^ (repl.neg && !old.abs); in bi_compose_float_index()
118 repl.abs |= old.abs; in bi_compose_float_index()
121 repl.swizzle = bi_compose_swizzle_16(old.swizzle, repl.swizzle); in bi_compose_float_index()
123 return repl; in bi_compose_float_index()
Dbi_opt_copy_prop.c113 bi_index repl = replacement[use.value]; in bi_opt_copy_prop() local
115 if (repl.type == BI_INDEX_CONSTANT && bi_reads_fau(ins)) in bi_opt_copy_prop()
118 if (!bi_is_null(repl)) in bi_opt_copy_prop()
119 ins->src[s] = bi_replace_index(ins->src[s], repl); in bi_opt_copy_prop()
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
DMacroExpander.cpp312 Token &repl = replacements->front(); in expandMacro() local
315 repl.text = ToString(identifier.location.line); in expandMacro()
319 repl.text = ToString(identifier.location.file); in expandMacro()
336 Token &repl = replacements->at(i); in expandMacro() local
341 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro()
342 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro()
344 repl.location = replacementLocation; in expandMacro()
477 const Token &repl = macro.replacements[i]; in replaceMacroParams() local
478 if (repl.type != Token::IDENTIFIER) in replaceMacroParams()
480 replacements->push_back(repl); in replaceMacroParams()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/
DMacroExpander.cpp318 Token &repl = replacements->front(); in expandMacro() local
321 repl.text = std::to_string(identifier.location.line); in expandMacro()
325 repl.text = std::to_string(identifier.location.file); in expandMacro()
342 Token &repl = replacements->at(i); in expandMacro() local
347 repl.setAtStartOfLine(identifier.atStartOfLine()); in expandMacro()
348 repl.setHasLeadingSpace(identifier.hasLeadingSpace()); in expandMacro()
350 repl.location = replacementLocation; in expandMacro()
481 const Token &repl = macro.replacements[i]; in replaceMacroParams() local
482 if (repl.type != Token::IDENTIFIER) in replaceMacroParams()
484 replacements->push_back(repl); in replaceMacroParams()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dopt_function_inlining.cpp40 ir_dereference *repl);
347 ir_variable_replacement_visitor(ir_variable *orig, ir_dereference *repl) in ir_variable_replacement_visitor() argument
350 this->repl = repl; in ir_variable_replacement_visitor()
369 ir_dereference *repl; member in ir_variable_replacement_visitor
377 *deref = this->repl->clone(ralloc_parent(*deref), NULL); in replace_deref()
461 ir_dereference *repl) in do_variable_replacement() argument
463 ir_variable_replacement_visitor v(orig, repl); in do_variable_replacement()
/third_party/python/Lib/
Dre.py202 def sub(pattern, repl, string, count=0, flags=0): argument
209 return _compile(pattern, flags).sub(repl, string, count)
211 def subn(pattern, repl, string, count=0, flags=0): argument
220 return _compile(pattern, flags).subn(repl, string, count)
315 def _compile_repl(repl, pattern): argument
317 return sre_parse.parse_template(repl, pattern)
/third_party/node/test/pseudo-tty/
Drepl-dumb-tty.js7 const repl = require('repl'); constant
10 repl.start('> ');
15 const replServer = new repl.REPLServer({

1234567