Home
last modified time | relevance | path

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

123

/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)
Dtest_univnewlines2k.py86 self.assertEqual(func.func_code.co_firstlineno, 3)
/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)
137 """ % (bug708901.__code__.co_firstlineno + 1,
138 bug708901.__code__.co_firstlineno + 2,
139 bug708901.__code__.co_firstlineno + 3)
165 """ % (bug1333982.__code__.co_firstlineno + 1,
167 bug1333982.__code__.co_firstlineno + 1,
[all …]
Dtest_traceback.py294 lineno = prn.__code__.co_firstlineno
321 lineno_f = f.__code__.co_firstlineno
368 lineno_g = g.__code__.co_firstlineno
404 lineno_h = h.__code__.co_firstlineno
495 lineno = fmt.__code__.co_firstlineno
866 lineno = extract.__code__.co_firstlineno
997 ' v = 4\n' % (__file__, some_inner.__code__.co_firstlineno + 4)
Dtest_code.py147 self.assertEqual(co.co_firstlineno, 15)
162 c.co_varnames, c.co_filename, c.co_name, c.co_firstlineno,
Dtest_sys_settrace.py324 self.compare_events(func.__code__.co_firstlineno,
334 self.compare_events(func.__code__.co_firstlineno,
387 self.compare_events(generator_example.__code__.co_firstlineno,
534 frame.f_lineno == f.__code__.co_firstlineno + 2):
585 self.firstLine = None if decorated else self.code.co_firstlineno
Dtest_opcodes.py30 self.assertEqual(co.co_firstlineno, 6)
/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.c215 co->co_firstlineno = firstlineno; in PyCode_New()
288 {"co_firstlineno", T_INT, OFF(co_firstlineno), READONLY},
483 if (co->co_firstlineno != 0) in code_repr()
484 lineno = co->co_firstlineno; in code_repr()
648 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare()
777 int line = co->co_firstlineno; in PyCode_Addr2Line()
802 line = co->co_firstlineno; in _PyCode_CheckLineNumber()
Dframeobject.c147 if (new_lineno < f->f_code->co_firstlineno) { in frame_setlineno()
153 else if (new_lineno == f->f_code->co_firstlineno) { in frame_setlineno()
155 new_lineno = f->f_code->co_firstlineno; in frame_setlineno()
165 line = f->f_code->co_firstlineno; in frame_setlineno()
772 f->f_lineno = code->co_firstlineno; in _PyFrame_New_NoTrack()
/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.py266 line_offset = first_line - co.co_firstlineno
446 lineno = code.co_firstlineno
472 self.first_line = co.co_firstlineno
476 self._line_offset = first_line - co.co_firstlineno
/external/tensorflow/tensorflow/python/util/
Dtf_stack.py66 func_start_lineno = co.co_firstlineno
/external/python/cpython2/Include/
Dcode.h25 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/cpython3/Lib/asyncio/
Dformat_helpers.py14 return (code.co_filename, code.co_firstlineno)
/external/python/cpython2/Lib/hotshot/
Dstats.py82 self.co_firstlineno = firstlineno
/external/python/cpython3/Include/
Dcode.h28 int co_firstlineno; /* first source line number */ member
/external/ply/ply/ply/
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
/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

123