+
     þÎj¯  ã                   ó”   € ^ RI t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	  ! R R]4      t
]R8X  d   ] P                  ! 4        R# R# )é    N©Únjit)ÚTestCase)Úget_func_body_first_linenoc                   óŠ   a € ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tRtV tR# )ÚTestFirstLineFinderzv
The following methods contains tests that are sensitive to the source
locations w.r.t. the beginning of each method.
c                ó’   € \         P                  ! 4       p\         P                  ! V4      pV^,          P                  P                  # )é   )ÚinspectÚcurrentframeÚgetouterframesÚframeÚf_code)Úselfr   Úcaller_frames   &  ÚV/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_firstlinefinder.pyÚ_get_grandparent_caller_codeÚ0TestFirstLineFinder._get_grandparent_caller_code   s6   € Ü×$Ò$Ó&ˆÜ×-Ò-¨eÓ4ˆØ˜A�×$Ñ$×+Ñ+Ð+ó    c                ón   € V P                  4       pVP                  pV P                  WV,           4       R # ©N)r   Úco_firstlinenoÚassertEqual)r   ÚexpectedÚoffset_from_callerÚgrandparent_coÚlnos   &&&  r   Úassert_line_locationÚ(TestFirstLineFinder.assert_line_location   s/   € Ø×:Ñ:Ó<ˆØ×+Ñ+ˆØ×Ñ˜Ð);Õ#;Ö<r   c                óX   € \         R  4       p\        V4      pV P                  V^4       R# )c                  ó   € ^# ©é   © r$   r   r   ÚfooÚBTestFirstLineFinder.test_decorated_odd_comment_indent.<locals>.foo   s   € ñ r   N©r   r   r   ©r   r%   Úfirst_def_lines   &  r   Ú!test_decorated_odd_comment_indentÚ5TestFirstLineFinder.test_decorated_odd_comment_indent   s0   € Ü	ñ	ó 
ð	ô 4°CÓ8ˆØ×!Ñ! .°!Ö4r   c                óX   € R  p\        \        V4      4      pV P                  V^4       R# )c                  ó   € ^# r"   r$   r$   r   r   r%   ÚDTestFirstLineFinder.test_undecorated_odd_comment_indent.<locals>.foo%   s   € ár   N)r   r   r   r(   s   &  r   Ú#test_undecorated_odd_comment_indentÚ7TestFirstLineFinder.test_undecorated_odd_comment_indent$   s'   € ò	ô 4´D¸³IÓ>ˆØ×!Ñ! .°!Ö4r   c                óV   € R  p\        \        V4      4      pV P                  V4       R# )c                  ó   € ^# r"   r$   r$   r   r   Ú<lambda>Ú9TestFirstLineFinder.test_unnamed_lambda.<locals>.<lambda>-   s   € ‘ar   N)r   r   ÚassertIsNoner(   s   &  r   Útest_unnamed_lambdaÚ'TestFirstLineFinder.test_unnamed_lambda,   s#   € ÙˆÜ3´D¸³IÓ>ˆà×Ñ˜.Ö)r   c                óT   € R  pV! 4       p\        V4      pV P                  V^4       R# )c                  ó   € \         R  4       p V # )c                  ó   € ^# r"   r$   r$   r   r   r%   ÚBTestFirstLineFinder.test_nested_function.<locals>.foo.<locals>.foo4   s   € ñ r   r   )r%   s    r   r%   Ú5TestFirstLineFinder.test_nested_function.<locals>.foo3   s   € Üñó ðð ˆJr   N)r   r   )r   r%   Úinnerr)   s   &   r   Útest_nested_functionÚ(TestFirstLineFinder.test_nested_function2   s*   € ò	ñ “ˆÜ3°EÓ:ˆØ×!Ñ! .°!Ö4r   c                óX   € \         R  4       p\        V4      pV P                  V^4       R# )c                  ó   € R # r   r$   r$   r   r   r%   Ú4TestFirstLineFinder.test_pass_statement.<locals>.foo@   s   € ár   Nr'   r(   s   &  r   Útest_pass_statementÚ'TestFirstLineFinder.test_pass_statement?   s0   € Ü	ñ	ó 
ð	ô 4°CÓ8ˆØ×!Ñ! .°!Ö4r   c                ón   € R p/ p\        W4       VR,          p\        V4      pV P                  V4       R# )ú$def foo():
            pass
        r%   N)Úexecr   r5   )r   ÚsourceÚglobalnsr%   r)   s   &    r   Útest_string_evalÚ$TestFirstLineFinder.test_string_evalG   s9   € ðˆð ˆÜˆVÔØ�u�oˆä3°CÓ8ˆà×Ñ˜.Ö)r   c                óä   € R p\        V4      WRP                  R4      V3pV\        P                  V&   \	        W!R4      p/ p\        Wx4       Wƒ,          p	\        V	4      p
V P                  W¤4       R # )NTrG   )ÚlenÚ
splitlinesÚ	linecacheÚcacheÚcompilerG   r   r   )r   ÚfilenamerH   Úfunction_nameÚexpected_first_lineÚ	timestampÚentryÚcoderI   Úfunctionr)   s   &&&&&      r   Ú_test_with_patched_linecacheÚ0TestFirstLineFinder._test_with_patched_linecacheT   so   € ð
 ˆ	Ü�V“˜i×):Ñ):¸4Ó)@À(ÐKˆØ$)Œ	�‰˜Ñ!ô �v¨Ó0ˆàˆÜˆTÔØÕ*ˆô 4°HÓ=ˆØ×Ñ˜Ö=r   c                ó<   € R pRpRp^pV P                  W!VV4       R# )rF   z<foo-basic>r%   N©rY   ©r   rH   rR   rS   rT   s   &    r   Ú test_string_eval_linecache_basicÚ4TestFirstLineFinder.test_string_eval_linecache_basicj   s0   € ðˆð !ˆØˆØÐØ×)Ñ)¨(¸MØ*=ö	?r   c                ó<   € R pRpRp^pV P                  W!VV4       R# )z„if True:
        # indent designed to test against potential indent error in ast.parse

        def foo():
            pass
        z<foo-indent>r%   Nr\   r]   s   &    r   Ú!test_string_eval_linecache_indentÚ5TestFirstLineFinder.test_string_eval_linecache_indentu   s0   € ðˆð "ˆØˆØÐØ×)Ñ)¨(¸MØ*=ö	?r   c                ód   € \         P                  ! R 4      pRpRp^pV P                  W!VV4       R# )z†
        def foo_gen():
            def foo():
                pass
            return foo

        generated_foo = foo_gen()
        z	<foo-gen>Úgenerated_fooN©ÚtextwrapÚdedentrY   r]   s   &    r   Ú"test_string_eval_linecache_closureÚ6TestFirstLineFinder.test_string_eval_linecache_closureƒ   s<   € Ü—’ð "ó ˆð ˆØ'ˆØÐØ×)Ñ)¨(¸MØ*=ö	?r   c                ód   € \         P                  ! R 4      pRpRp^	pV P                  W!VV4       R# )zª
        def decorator(function):
            return function

        @decorator
        @decorator
        @decorator
        def decorated():
            pass
        z<foo-stacked-decorator>Ú	decoratedNre   r]   s   &    r   Ú-test_string_eval_linecache_stacked_decoratorsÚATestFirstLineFinder.test_string_eval_linecache_stacked_decorators“   s<   € Ü—’ð 	"ó 	ˆð -ˆØ#ˆØÐØ×)Ñ)¨(¸MØ*=ö	?r   c                ó<   € R pRpRp^
pV P                  W!VV4       R# )a  if 1:
        def decorator(function):
            return function

        def gen_decorated_foo():
            @decorator
            @decorator
            @decorator
            def _foo():
                pass

            return _foo

        foo_all = gen_decorated_foo()
        z	<foo-all>Úfoo_allNr\   r]   s   &    r   Útest_string_eval_linecache_allÚ2TestFirstLineFinder.test_string_eval_linecache_all¥   s0   € ðˆð  ˆØ!ˆØ ÐØ×)Ñ)¨(¸MØ*=ö	?r   c                óX   € \         R  4       p\        V4      pV P                  V^4       R# )c                  ó   € R # r   r$   r$   r   r   r%   Ú:TestFirstLineFinder.test_single_line_function.<locals>.foo¾   s   € Ùr   Nr'   r(   s   &  r   Útest_single_line_functionÚ-TestFirstLineFinder.test_single_line_function½   s*   € Ü	Ùó 
Øä3°CÓ8ˆØ×!Ñ! .°!Ö4r   c                óX   € \         R  4       p\        V4      pV P                  V^4       R# )c                 ó   € R# ©zDocstring
            Nr$   r$   r   r   r%   Ú/TestFirstLineFinder.test_docstring.<locals>.fooÅ   s   € ñ r   Nr'   r(   s   &  r   Útest_docstringÚ"TestFirstLineFinder.test_docstringÄ   s0   € Ü	ñ	ó 
ð	ô
 4°CÓ8ˆØ×!Ñ! .°!Ö4r   c                óX   € \         R  4       p\        V4      pV P                  V^4       R# )c                 ó   €  R# ry   r$   r$   r   r   r%   Ú1TestFirstLineFinder.test_docstring_2.<locals>.fooÏ   s
   € ðár   Nr'   r(   s   &  r   Útest_docstring_2Ú$TestFirstLineFinder.test_docstring_2Î   s0   € Ü	ñ	ó 
ð	ô 4°CÓ8ˆØ×!Ñ! .°!Ö4r   r$   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r*   r/   r6   r>   rC   rJ   rY   r^   ra   rh   rl   rp   ru   r{   r€   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sd   ø‡ € ñò
,ò
=ò
5ò5ò*ò5ò5ò*ò>ò,	?ò?ò?ò ?ò$?ò05ò5÷5ð 5r   r   Ú__main__)ÚunittestrO   r   rf   Únumbar   Únumba.tests.supportr   Únumba.misc.firstlinefinderr   r   r‚   Úmainr$   r   r   Ú<module>r�      sA   ðÛ Û Û Û å Ý (Ý AôN5˜(ô N5ðb ˆzÔØ‡M‚M†Oñ r   