Home
last modified time | relevance | path

Searched refs:repl (Results 1 - 25 of 91) sorted by relevance

1234

/third_party/node/lib/internal/repl/
H A Dutils.js50 let debug = require('internal/util/debuglog').debuglog('repl', (fn) => {
60 const REPL_MODE_STRICT = Symbol('repl-strict');
143 function setupPreview(repl, contextSymbol, bufferSymbol, active) {
161 const displayPos = repl._getDisplayPos(`${repl.getPrompt()}${repl.line}`);
162 const cursorPos = repl.line.length !== repl.cursor ?
163 repl.getCursorPos() :
178 moveCursor(repl
[all...]
H A Dhistory.js15 let debug = require('internal/util/debuglog').debuglog('repl', (fn) => {
28 function _writeToOutput(repl, message) {
29 repl._writeToOutput(message);
30 repl._refreshLine();
33 function setupHistory(repl, historyPath, ready) {
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);
[all...]
/third_party/node/test/parallel/
H A Dtest-repl-options.js28 const repl = require('repl');
31 assert.strictEqual(repl.repl, undefined);
32 repl._builtinLibs; // eslint-disable-line no-unused-expressions
37 'repl._builtinLibs is deprecated. Check module.builtinModules instead',
38 DEP0141: 'repl.inputStream and repl.outputStream are deprecated. ' +
39 'Use repl.input and repl
[all...]
H A Dtest-repl-use-global.js7 const repl = require('internal/repl');
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
[all...]
H A Dtest-repl-underscore.js5 const repl = require('repl');
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({
H A Dtest-repl-mode.js5 const repl = require('repl');
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({
H A Dtest-repl-preview.js6 const { REPLServer } = require('repl');
14 const PROMPT = 'repl > ';
51 function runAndWait(cmds, repl) {
52 const promise = repl.inputStream.wait();
54 repl.inputStream.run(cmd);
60 const repl = REPLServer({
68 repl.inputStream.run([
96 noPreview: 'repl > ', // No "undefined" output.
162 const hasPreview = repl.terminal &&
169 let lines = await runAndWait(toBeRun, repl);
[all...]
H A Dtest-repl-reverse-search.js7 const REPL = require('internal/repl');
28 // Close the repl. Note that it must have a clean prompt to do so.
68 'repl.repl.historyIndex', ENTER,
246 'repl.repl.historyIndex\nbck-i-search: re_', '\x1B[1A', '\x1B[8G',
248 'repl.repl.historyIndex', '\x1B[8G',
252 `${prompt}repl.repl
[all...]
H A Dtest-repl-programmatic-history.js6 const REPL = require('repl');
30 // Close the repl. Note that it must have a clean prompt to do so.
64 const emptyHiddenHistoryPath = fixtures.path('.empty-hidden-repl-history-file');
66 '.dev-null-repl-history-file');
216 const repl = REPL.start({
242 repl.setupHistory(historyFile, function(err, repl) {
248 repl.once('close', () => {
249 if (repl._flushing) {
250 repl
[all...]
H A Dtest-repl-envvars.js8 const REPL = require('internal/repl');
11 const { REPL_MODE_SLOPPY, REPL_MODE_STRICT } = require('repl');
69 REPL.createInternalRepl(process.env, opts, function(err, repl) {
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();
H A Dtest-repl-end-emits-exit.js26 const repl = require('repl');
34 const r1 = repl.start({
53 const r2 = repl.start({
H A Dtest-repl-recoverable.js6 const repl = require('repl');
15 return cb(evalCount === 1 ? new repl.Recoverable() : null, true);
30 repl.start('', putIn, customEval);
H A Dtest-repl-reset-event.js26 const repl = require('repl');
35 const r = repl.start({
58 const r = repl.start({
H A Dtest-repl-persistent-history.js8 const REPL = require('internal/repl');
32 // Close the repl. Note that it must have a clean prompt to do so.
66 const emptyHiddenHistoryPath = fixtures.path('.empty-hidden-repl-history-file');
68 '.dev-null-repl-history-file');
242 }, function(err, repl) {
248 repl.once('close', () => {
249 if (repl._flushing) {
250 repl.once('flushHistory', onClose);
270 repl.inputStream.run(test);
H A Dtest-repl-context.js5 const repl = require('repl');
13 const r = repl.start({
24 // Ensure that the repl context gets its own "console" instance.
27 // Ensure that the repl console instance is not the global one.
36 // Ensure that the repl context gets its own "console" instance.
39 // Ensure that the repl's global property is the context.
42 // Ensure that the repl console instance is writable.
49 const server = repl.start({ input: stream, output: stream });
54 // An assignment to '_' in the repl serve
[all...]
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
H A 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/node/lib/internal/debugger/
H A 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
[all...]
H A Dinspect_repl.js53 const Repl = require('repl');
99 repl Enter a debug repl that works like exec
370 let repl;
1096 get repl() {
1098 const listeners = ArrayPrototypeSlice(repl.listeners('SIGINT'));
1099 repl.removeAllListeners('SIGINT');
1101 const oldContext = repl.context;
1107 repl.on('SIGINT', listener);
1111 // Exit debug repl
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
H A 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/
H A 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/panfrost/bifrost/
H A 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
113 /* abs(-x) = abs(+x) so ignore repl.neg if old.abs is set, otherwise in bi_compose_float_index()
115 repl.neg = old.neg ^ (repl.neg && !old.abs); in bi_compose_float_index()
118 repl in bi_compose_float_index()
[all...]
H A 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/mesa3d/src/compiler/glsl/
H A Dopt_function_inlining.cpp40 ir_dereference *repl);
337 * Replaces references to the "orig" variable with a clone of "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()
463 ir_variable_replacement_visitor v(orig, repl); in do_variable_replacement()
459 do_variable_replacement(exec_list *instructions, ir_variable *orig, ir_dereference *repl) do_variable_replacement() argument
/third_party/python/Lib/re/
H A D__init__.py178 def sub(pattern, repl, string, count=0, flags=0):
181 replacement repl. repl can be either a string or a callable;
185 return _compile(pattern, flags).sub(repl, string, count)
187 def subn(pattern, repl, string, count=0, flags=0):
191 string by the replacement repl. number is the number of
192 substitutions that were made. repl can be either a string or a
196 return _compile(pattern, flags).subn(repl, string, count)
306 def _compile_repl(repl, pattern):
308 return _parser.parse_template(repl, patter
[all...]
/third_party/python/Lib/test/
H A Dtest_codeccallbacks.py27 def __init__(self, repl="<?>"):
28 self.repl = repl
35 return (self.repl, self.pos)
36 return (self.repl, exc.end)
802 return (repl, exc.end)
806 for enc, input, repl in (
812 self.assertEqual(res, ("[" + repl + "]").encode(enc))
814 for enc, input, repl in (
830 return (repl, ex
[all...]

Completed in 9 milliseconds

1234