Home
last modified time | relevance | path

Searched refs:sourceline (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Lib/idlelib/
Dstackviewer.py75 sourceline = linecache.getline(filename, lineno)
76 sourceline = sourceline.strip()
78 item = "%s, line %d: %s" % (modname, lineno, sourceline)
81 lineno, sourceline)
Ddebugger.py402 sourceline = linecache.getline(filename, lineno)
403 sourceline = sourceline.strip()
405 item = "%s, line %d: %s" % (modname, lineno, sourceline)
408 lineno, sourceline)
/third_party/python/Python/
D_warnings.c483 PyObject *category, PyObject *sourceline) in show_warning() argument
518 if (sourceline) { in show_warning()
525 if (PyUnicode_READY(sourceline) < 1) in show_warning()
528 kind = PyUnicode_KIND(sourceline); in show_warning()
529 data = PyUnicode_DATA(sourceline); in show_warning()
530 len = PyUnicode_GET_LENGTH(sourceline); in show_warning()
537 truncated = PyUnicode_Substring(sourceline, i, len); in show_warning()
541 PyFile_WriteObject(sourceline, f_stderr, Py_PRINT_RAW); in show_warning()
557 PyObject *sourceline, PyObject *source) in call_show_warning() argument
570 show_warning(filename, lineno, text, category, sourceline); in call_show_warning()
[all …]
/third_party/node/src/
Dnode_errors.cc57 std::string sourceline(*encoded_source, encoded_source.length()); in GetErrorSource() local
66 return sourceline; in GetErrorSource()
69 if (sourceline.find("node-do-not-add-exception-line") != std::string::npos) { in GetErrorSource()
70 return sourceline; in GetErrorSource()
114 sourceline.c_str()); in GetErrorSource()
120 static_cast<size_t>(end) > sourceline.size()) { in GetErrorSource()
129 if (sourceline[i] == '\0' || off >= kUnderlineBufsize) { in GetErrorSource()
133 underline_buf[off++] = (sourceline[i] == '\t') ? '\t' : ' '; in GetErrorSource()
136 if (sourceline[i] == '\0' || off >= kUnderlineBufsize) { in GetErrorSource()
/third_party/python/Lib/test/
Dtest_sys.py386 for i, (filename, lineno, funcname, sourceline) in enumerate(stack):
392 self.assertEqual(sourceline, "g456()")
395 filename, lineno, funcname, sourceline = stack[i+1]
397 self.assertIn(sourceline, ["leave_g.wait()", "entered_g.set()"])
453 for i, (filename, lineno, funcname, sourceline) in enumerate(stack):
459 self.assertEqual(sourceline, "g456()")
462 filename, lineno, funcname, sourceline = stack[i+1]
464 self.assertTrue(sourceline.startswith("if leave_g.wait("))
/third_party/wayland_standard/protocol/
Dgenerate-shm-formats.py134 last_line = node.sourceline
/third_party/vk-gl-cts/scripts/khr_util/
Dregistry.py35 …warning('%s:%d, %s %s: ' + fmt, elem.base, elem.sourceline, elem.tag, elem.get('name') or '', *arg…
61 kwargs['location'] = (elem.base, elem.sourceline)