§
    ùNgT  ã                   óF   — d dl mZ ddlmZ ddlmZ  G d„ de¦  «        ZdS )é    )Úabsolute_importé   )ÚVisitorTransform)ÚStatListNodec                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )ÚExtractPxdCodeaý  
    Finds nodes in a pxd file that should generate code, and
    returns them in a StatListNode.

    The result is a tuple (StatListNode, ModuleScope), i.e.
    everything that is needed from the pxd after it is processed.

    A purer approach would be to separately compile the pxd code,
    but the result would have to be slightly more sophisticated
    than pure strings (functions + wanted interned strings +
    wanted utility code + wanted cached objects) so for now this
    approach is taken.
    c                 ó~   — g | _         |                      |¦  «         t          |j        | j         ¬¦  «        |j        fS )N)Ústats)ÚfuncsÚvisitchildrenr   ÚposÚscope)ÚselfÚroots     úZ/var/www/html/ai-engine/env/lib/python3.11/site-packages/Cython/Compiler/CodeGeneration.pyÚ__call__zExtractPxdCode.__call__   s;   € ØˆŒ
Ø×Ò˜4Ñ Ô Ð Ý˜TœX¨T¬ZÐ8Ñ8Ô8¸$¼*ÐEÐEó    c                 ó:   — | j                              |¦  «         |S ©N)r   Úappend©r   Únodes     r   Úvisit_FuncDefNodez ExtractPxdCode.visit_FuncDefNode   s   € ØŒ
×Ò˜$ÑÔÐð ˆr   c                 ó0   — |                       |¦  «         |S r   )r   r   s     r   Ú
visit_NodezExtractPxdCode.visit_Node!   s   € Ø×Ò˜4Ñ Ô Ð Øˆr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      sN   € € € € € ðð ðFð Fð Fð
ð ð ðð ð ð ð r   r   N)Ú
__future__r   ÚVisitorr   ÚNodesr   r   r    r   r   ú<module>r$      sp   ðØ &Ð &Ð &Ð &Ð &Ð &à %Ð %Ð %Ð %Ð %Ð %Ø Ð Ð Ð Ð Ð ðð ð ð ð Ð%ñ ô ð ð ð r   