← Back
Editing: ast_matcher.cpython-311.pyc
� cR�a� � �� � d Z ddlmZmZmZmZmZ ddlmZ ddl m Z dZ G d� de� � Z G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � ZdS )z9 Module to looks for a specified pattern in a given AST. � )�AST�iter_fields�NodeVisitor�Dict�Set)�permutations)�isnan� c � � e Zd ZdZdS )�DamnTooLongPatternz@ Exception for long dict/set comparison to reduce compile time. N��__name__� __module__�__qualname__�__doc__� � �>/usr/lib/python3/dist-packages/pythran/analyses/ast_matcher.pyr r s � � � � � �J�J�J�Jr r c �$ � � e Zd ZdZd� fd� Z� xZS )�Placeholderz= Class to save information from ast while check for pattern. Nc �r �� || _ || _ t t | � � � � � dS )z1 Placehorder are identified using an identifier. N)�id�type�superr �__init__)�self� identifierr � __class__s �r r zPlaceholder.__init__ s3 �� ������ � �k�4� � �)�)�+�+�+�+�+r �N�r r r r r � __classcell__�r s @r r r sC �� � � � � �G�G�,� ,� ,� ,� ,� ,� ,� ,� ,� ,r r c � � e Zd ZdZdS )�AST_anyz< Class to specify we don't care about a field value in ast. Nr r r r r$ r$ s � � � � � �F�F�F�Fr r$ c �"