Home
last modified time | relevance | path

Searched refs:co_firstlineno (Results 1 – 25 of 76) sorted by relevance

1234

/external/python/cpython2/Lib/test/
Dtest_dis.py21 """%(_f.func_code.co_firstlineno + 1,
22 _f.func_code.co_firstlineno + 2)
45 """%(bug708901.func_code.co_firstlineno + 1,
46 bug708901.func_code.co_firstlineno + 2,
47 bug708901.func_code.co_firstlineno + 3)
75 """%(bug1333982.func_code.co_firstlineno + 1,
76 bug1333982.func_code.co_firstlineno + 2,
77 bug1333982.func_code.co_firstlineno + 3)
Dtest_traceback.py215 lineno = prn.__code__.co_firstlineno
228 lineno = fmt.__code__.co_firstlineno
247 lineno = extract.__code__.co_firstlineno
Dtest_hotshot.py92 f_lineno = f.func_code.co_firstlineno
93 g_lineno = g.func_code.co_firstlineno
Dtest_sys_settrace.py285 self.compare_events(func.func_code.co_firstlineno,
295 self.compare_events(func.func_code.co_firstlineno,
348 self.compare_events(generator_example.__code__.co_firstlineno,
463 frame.f_lineno == f.func_code.co_firstlineno + 2):
491 self.firstLine = None if decorated else self.code.co_firstlineno
Dtest_code.py113 self.assertEqual(co.co_firstlineno, 15)
/external/python/cpython3/Lib/test/
Dtest_dis.py48 """ % (_C.__init__.__code__.co_firstlineno + 1,)
68 """ % (_C.cm.__code__.co_firstlineno + 2,)
77 """ % (_C.sm.__code__.co_firstlineno + 2,)
103 """ % (_f.__code__.co_firstlineno + 1,
104 _f.__code__.co_firstlineno + 2)
136 """ % (bug708901.__code__.co_firstlineno + 1,
137 bug708901.__code__.co_firstlineno + 2,
138 bug708901.__code__.co_firstlineno + 1,
139 bug708901.__code__.co_firstlineno + 3)
166 """ % (bug1333982.__code__.co_firstlineno + 1,
[all …]
Dtest_sys_settrace.py353 self.compare_events(func.__code__.co_firstlineno,
363 self.compare_events(func.__code__.co_firstlineno,
420 self.compare_events(generator_example.__code__.co_firstlineno,
602 self.compare_events(doit_async.__code__.co_firstlineno,
688 frame.f_lineno == f.__code__.co_firstlineno + 2):
739 self.firstLine = None if decorated else self.code.co_firstlineno
Dtest_traceback.py292 lineno = prn.__code__.co_firstlineno
319 lineno_f = f.__code__.co_firstlineno
366 lineno_g = g.__code__.co_firstlineno
402 lineno_h = h.__code__.co_firstlineno
493 lineno = fmt.__code__.co_firstlineno
884 lineno = extract.__code__.co_firstlineno
1022 ' v = 4\n' % (__file__, some_inner.__code__.co_firstlineno + 3)
Dtest_code.py171 self.assertEqual(co.co_firstlineno, 15)
228 co.co_firstlineno,
Dtest_opcodes.py30 self.assertEqual(co.co_firstlineno, 3)
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h23 int co_firstlineno, PyBytesObject *co_code,
43 int co_firstlineno = self->co_firstlineno; in code_replace() local
151 co_firstlineno = _PyLong_AsInt(args[6]); in code_replace()
152 if (co_firstlineno == -1 && PyErr_Occurred()) { in code_replace()
251 …onlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_c… in code_replace()
/external/python/cpython2/Objects/
Dcodeobject.c142 co->co_firstlineno = firstlineno; in PyCode_New()
213 {"co_firstlineno", T_INT, OFF(co_firstlineno), READONLY},
371 if (co->co_firstlineno != 0) in code_repr()
372 lineno = co->co_firstlineno; in code_repr()
395 cmp = co->co_firstlineno - cp->co_firstlineno; in code_compare()
580 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare()
703 int line = co->co_firstlineno; in PyCode_Addr2Line()
726 line = co->co_firstlineno; in _PyCode_CheckLineNumber()
Dframeobject.c159 if (new_lineno < f->f_code->co_firstlineno) { in frame_setlineno()
165 else if (new_lineno == f->f_code->co_firstlineno) { in frame_setlineno()
167 new_lineno = f->f_code->co_firstlineno; in frame_setlineno()
177 line = f->f_code->co_firstlineno; in frame_setlineno()
775 f->f_lineno = code->co_firstlineno; in PyFrame_New()
/external/python/cpython3/Objects/
Dcodeobject.c252 co->co_firstlineno = firstlineno; in PyCode_NewWithPosOnlyArgs()
390 {"co_firstlineno", T_INT, OFF(co_firstlineno), READONLY},
641 int co_firstlineno, PyBytesObject *co_code, in code_replace_impl() argument
661 CHECK_INT_ARG(co_firstlineno); in code_replace_impl()
676 co_firstlineno, (PyObject*)co_lnotab); in code_replace_impl()
683 if (co->co_firstlineno != 0) in code_repr()
684 lineno = co->co_firstlineno; in code_repr()
857 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare()
987 int line = co->co_firstlineno; in PyCode_Addr2Line()
1012 line = co->co_firstlineno; in _PyCode_CheckLineNumber()
/external/libchrome/third_party/ply/
Dlex.py360 func_code(func).co_filename, func_code(func).co_firstlineno,
682 line = func_code(t).co_firstlineno
709 … f.sort(lambda x,y: cmp(func_code(x[1]).co_firstlineno,func_code(y[1]).co_firstlineno))
712 f.sort(key=lambda x: func_code(x[1]).co_firstlineno)
730 line = func_code(f).co_firstlineno
800 line = func_code(f).co_firstlineno
934 line = func_code(f).co_firstlineno
/external/python/cpython3/Lib/
Ddis.py276 line_offset = first_line - co.co_firstlineno
460 lineno = code.co_firstlineno
490 self.first_line = co.co_firstlineno
494 self._line_offset = first_line - co.co_firstlineno
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py65 func_code.co_firstlineno, func_code.co_lnotab,
76 func_code.co_firstlineno, func_code.co_lnotab,
84 func_code.co_firstlineno, func_code.co_lnotab,
/external/python/cpython2/Include/
Dcode.h25 int co_firstlineno; /* first source line number */ member
/external/tensorflow/tensorflow/compiler/xla/python/
Dtraceback.cc58 frame.first->co_firstlineno, in Frames()
/external/python/cpython2/Lib/hotshot/
Dstats.py82 self.co_firstlineno = firstlineno
/external/python/cpython3/Lib/asyncio/
Dformat_helpers.py14 return (code.co_filename, code.co_firstlineno)
/external/python/cpython3/Include/cpython/
Dcode.h26 int co_firstlineno; /* first source line number */ member
/external/libchrome/third_party/jinja2/
Ddebug.py275 location, code.co_firstlineno,
282 location, code.co_firstlineno,
/external/python/pycparser/pycparser/ply/
Dlex.py362 func.__code__.co_filename, func.__code__.co_firstlineno,
696 line = t.__code__.co_firstlineno
722 f.sort(key=lambda x: x[1].__code__.co_firstlineno)
734 line = f.__code__.co_firstlineno
803 line = f.__code__.co_firstlineno
952 line = f.__code__.co_firstlineno
/external/selinux/python/sepolgen/src/sepolgen/
Dlex.py362 func.__code__.co_filename, func.__code__.co_firstlineno,
695 line = t.__code__.co_firstlineno
721 f.sort(key=lambda x: x[1].__code__.co_firstlineno)
733 line = f.__code__.co_firstlineno
802 line = f.__code__.co_firstlineno

1234