3 �G�\�# � @ sp d dl mZ d dlmZ dZdZdZdZddd �Zdd d�Z G dd � d e �ZG dd� de�ZG dd� de�Z dS )� )�NodeVisitor)� iteritems�paramZresolve�aliasZ undefinedNc C s. t |d�}t|�}x| D ]}|j|� qW |S )N)�parent)�Symbols�FrameSymbolVisitor�visit)�nodes�parent_symbols�sym�visitor�node� r � /usr/lib/python3.6/idtracking.py�find_symbols s r c C s t |d�}|j| � |S )N)r )r �analyze_node)r r r r r r �symbols_for_node s r c @ sx e Zd Zddd�Zdd� Zddd�Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )r Nc C sD |d kr |d krd}n |j d }|| _ || _i | _i | _t� | _d S )Nr � )�levelr �refs�loads�set�stores)�selfr r r r r �__init__ s zSymbols.__init__c K s t | �}|j|f|� d S )N)�RootVisitorr )r r �kwargsr r r r r '