o
    * iA                     @   s    d dl Z d dlmZ dd ZdS )    N)gastc                 C   sP   t | tjtjfstdt|  dt | tjrt| } t|  t| S )z/
    Transforms ast node into source code.
    z=Type of ast_root should be gast.AST or ast.AST, but received .)	
isinstancer   ASTast	TypeErrortypeZgast_to_astfix_missing_locationsunparse)Zast_node r   j/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/paddle/jit/dy2static/ast_utils.pyast_to_source_code   s   


r   )r   Zpaddle.utilsr   r   r   r   r   r   <module>   s   