관리-도구
편집 파일: as_string.cpython-311.pyc
� �܋f�a � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ er ddl m Z ddlmZm Z mZmZmZmZmZmZmZmZmZ dZ G d � d � � Zdd �Z ed� � ZdS )z+This module renders Astroid nodes as string� )�annotations)�Iterator)� TYPE_CHECKING)�nodes)�Const)�Match�MatchAs� MatchCase� MatchClass�MatchMapping�MatchOr� MatchSequence�MatchSingleton� MatchStar� MatchValue�Unknown� c � � e Zd ZdZdvdwd�Zdxd�Zdyd �Zdzd{d�Zdzd|d�Zd}d�Z dxd�Z dxd�Zdxd�Zdxd�Z dxd�Zdxd�Zdxd�Zdxd�Zdxd�Zdxd�Zdxd�Zdxd�Zdxd�Zdxd �Zdxd!�Zdxd"�Zdxd#�Zdxd$�Zdxd%�Zdxd&�Zdxd'�Zdxd(�Zdxd)�Z dxd*�Z!d~d,�Z"dxd-�Z#dxd.�Z$dxd/�Z%dxd0�Z&dxd1�Z'dxd2�Z(dxd3�Z)dxd4�Z*dxd5�Z+dxd6�Z,dxd7�Z-dxd8�Z.dxd9�Z/dxd:�Z0dxd;�Z1dxd<�Z2dxd=�Z3dxd>�Z4dxd?�Z5dxd@�Z6dxdA�Z7dxdB�Z8dxdC�Z9dxdD�Z:dxdE�Z;dxdF�Z<dxdG�Z=dxdH�Z>dxdI�Z?dxdJ�Z@dxdK�ZAdxdL�ZBdxdM�ZCdxdN�ZDdxdO�ZEdxdP�ZFdxdQ�ZGdxdR�ZHdxdS�ZIdxdT�ZJdxdU�ZKdxdV�ZLdxdW�ZMdxdX�ZNdd[�ZOd�d]�ZPd�d_�ZQeRd�da�� � ZSd�dc�ZTd�de�ZUd�dg�ZVd�di�ZWd�dk�ZXd�dm�ZYdn� ZZdo� Z[dp� Z\dq� Z]dr� Z^d�dt�Z_duS )��AsStringVisitorz?Visitor to render an Astroid node as a valid python code string� �indent�strc � � || _ d S �N�r )�selfr s �h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/nodes/as_string.py�__init__zAsStringVisitor.__init__( s � �!����� �returnc �^ � |� | � � � t d� � S )z.Makes this visitor behave as a simple function� )�accept�replace�DOC_NEWLINE�r �nodes r �__call__zAsStringVisitor.__call__+ s$ � ��{�{�4� � �(�(��d�;�;�;r �doc_node�Const | Nonec �| � |sdS d� | j |j � dt � � � � S )z7Stop newlines in docs being indented by self._stmt_list� z {}"""{}"""r"