Home
last modified time | relevance | path

Searched refs:co_firstlineno (Results 1 - 25 of 32) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_dis.py53 """ % (_C.__init__.__code__.co_firstlineno, _C.__init__.__code__.co_firstlineno + 1,)
76 """ % (_C.cm.__code__.co_firstlineno, _C.cm.__code__.co_firstlineno + 2,)
87 """ % (_C.sm.__code__.co_firstlineno, _C.sm.__code__.co_firstlineno + 2,)
116 """ % (_f.__code__.co_firstlineno,
117 _f.__code__.co_firstlineno + 1,
118 _f.__code__.co_firstlineno + 2)
156 """ % (bug708901.__code__.co_firstlineno,
[all...]
H A Dtest_traceback.py387 callable_line = get_exception.__code__.co_firstlineno + 2
395 lineno_f = f.__code__.co_firstlineno
413 lineno_f = f_with_unicode.__code__.co_firstlineno
430 lineno_f = f_with_type.__code__.co_firstlineno
450 lineno_f = f_with_multiline.__code__.co_firstlineno
480 lineno_f = f_with_multiline.__code__.co_firstlineno
506 lineno_f = f_with_multiline.__code__.co_firstlineno
523 lineno_f = f_with_binary_operator.__code__.co_firstlineno
540 lineno_f = f_with_binary_operator.__code__.co_firstlineno
557 lineno_f = f_with_binary_operator.__code__.co_firstlineno
[all...]
H A Dtest_code.py180 self.assertEqual(co.co_firstlineno, 15)
237 co.co_firstlineno,
269 ("co_firstlineno", 100),
314 co.co_firstlineno,
430 self.assertEqual(end_line, new_code.co_firstlineno + 1)
552 line = code.co_firstlineno
684 co_firstlineno=42,
H A Dtest_frame.py119 lines.append(f.f_lineno-f.f_code.co_firstlineno)
219 offset = outer.__code__.co_firstlineno
H A Dtest_sys_settrace.py361 self.compare_events(func.__code__.co_firstlineno,
371 self.compare_events(func.__code__.co_firstlineno,
428 self.compare_events(generator_example.__code__.co_firstlineno,
610 self.compare_events(doit_async.__code__.co_firstlineno,
662 self.compare_events(f.__code__.co_firstlineno,
1565 start_line = func.__code__.co_firstlineno
1743 frame.f_lineno == f.__code__.co_firstlineno + 2):
1808 self.firstLine = None if decorated else self.code.co_firstlineno
1814 # frame.f_code.co_firstlineno is the first line of the decorator when
H A Dtest_opcodes.py30 self.assertEqual(co.co_firstlineno, 1)
H A Dtest_bdb.py118 lineno = code.co_firstlineno
325 return ((lineno - self.frame.f_code.co_firstlineno + 1)
329 return (self.frame.f_code.co_firstlineno + lineno - 1
H A Dtest_compile.py162 self.assertEqual(co.co_firstlineno, 1)
864 line1 = call.__code__.co_firstlineno + 1
899 self.assertEqual(frame.f_lineno-frame.f_code.co_firstlineno, lastline)
914 self.assertEqual(line, code.co_firstlineno)
921 res.append(line - code.co_firstlineno)
H A Dtest_exception_group.py250 line0 = create_simple_eg.__code__.co_firstlineno
525 line0 = create_nested_eg.__code__.co_firstlineno
541 line0 = create_nested_eg.__code__.co_firstlineno
H A Dtest_sys_setprofile.py387 return code.co_firstlineno, code.co_name
H A Dtest_trace.py34 return func.__code__.co_firstlineno
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h162 " co_flags=-1, co_firstlineno=-1, co_code=None, co_consts=None,\n"
177 int co_firstlineno, PyBytesObject *co_code,
189 static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; in code_replace()
199 int co_firstlineno = self->co_firstlineno; in code_replace() local
274 co_firstlineno = _PyLong_AsInt(args[6]); in code_replace()
275 if (co_firstlineno == -1 && PyErr_Occurred()) { in code_replace()
397 return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); in code_replace()
/third_party/python/Objects/
H A Dcodeobject.c304 co->co_firstlineno = con->firstlineno; in init_code()
652 0, // Offset from co_firstlineno.
769 return co->co_firstlineno; in PyCode_Addr2Line()
797 _PyLineTable_InitAddressRange(linetable, length, co->co_firstlineno, bounds); in _PyCode_InitAddressRange()
986 *start_line = *end_line = co->co_firstlineno; in PyCode_Addr2Location()
1104 int line = code->co_firstlineno; in decode_linetable()
1651 if (co->co_firstlineno != 0) in code_repr()
1652 lineno = co->co_firstlineno; in code_repr()
1693 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare()
1904 code_replace_impl(PyCodeObject *self, int co_argcount, int co_posonlyargcount, int co_kwonlyargcount, int co_nlocals, int co_stacksize, int co_flags, int co_firstlineno, PyBytesObject *co_code, PyObject *co_consts, PyObject *co_names, PyObject *co_varnames, PyObject *co_freevars, PyObject *co_cellvars, PyObject *co_filename, PyObject *co_name, PyObject *co_qualname, PyBytesObject *co_linetable, PyBytesObject *co_exceptiontable) code_replace_impl() argument
[all...]
H A Dframeobject.c708 if (new_lineno < f->f_frame->f_code->co_firstlineno) { in frame_setlineno()
/third_party/python/Lib/asyncio/
H A Dcoroutines.py108 lineno = coro_code.co_firstlineno
H A Dformat_helpers.py14 return (code.co_filename, code.co_firstlineno)
/third_party/node/tools/inspector_protocol/jinja2/
H A Ddebug.py275 location, code.co_firstlineno,
282 location, code.co_firstlineno,
/third_party/python/Include/cpython/
H A Dcode.h48 * - co_firstlineno \
73 int co_firstlineno; /* first source line number */ \
/third_party/jinja2/
H A Ddebug.py136 code.co_firstlineno,
/third_party/python/Lib/
H A DcProfile.py127 return (code.co_filename, code.co_firstlineno, code.co_name)
H A Dprofile.py269 fn = (fcode.co_filename, fcode.co_firstlineno, fcode.co_name)
354 self.co_firstlineno = 0
H A Ddis.py344 line_offset = first_line - co.co_firstlineno
701 self.first_line = co.co_firstlineno
705 self._line_offset = first_line - co.co_firstlineno
H A Dbdb.py230 lineno = frame.f_code.co_firstlineno
H A Ddoctest.py1121 lineno = obj.co_firstlineno - 1
/third_party/python/Tools/scripts/
H A Dumarshal.py290 retval.co_firstlineno = self.r_long()

Completed in 28 milliseconds

12