관리-도구
편집 파일: idtracking.cpython-37.pyc
B ^�a�) � @ s� d dl ZddlmZ ddlmZ dZdZdZdZ dej ej ejd d d �dd�Z dejejd d d �dd�ZG dd � d �ZG dd� de�ZG dd� de�ZdS )� N� )�nodes)�NodeVisitor�param�resolve�aliasZ undefined�Symbols)r �parent_symbols�returnc C s. t |d�}t|�}x| D ]}|�|� qW |S )N)�parent)r �FrameSymbolVisitor�visit)r r �sym�visitor�node� r �B/opt/alt/python37/lib/python3.7/site-packages/jinja2/idtracking.py�find_symbols s r )r r r c C s t |d�}|�| � |S )N)r )r �analyze_node)r r r r r r �symbols_for_node s r c @ s* e Zd Zd#ejd eje dd�dd�Zejej dd�dd�Z d$eejejeeje f ed�d d �Z eejej d�dd �Zeeje d�dd�Zeed�dd�Zd d�dd�Zedd�dd�Zeed�dd�Zedd�dd�Zejd dd�dd�Zejeef d�dd �Zeje d�d!d"�ZdS )%r N)r �levelr c C sD |d kr |d krd}n |j d }|| _ || _i | _i | _t� | _d S )Nr r )r r �refs�loads�set�stores)�selfr r r r r �__init__ s zSymbols.__init__)r �kwargsr c K s t | �}|j|f|� d S )N)�RootVisitorr )r r r r r r r r . s zSymbols.analyze_node)�name�loadr c C s2 d| j � d|� �}|| j|<