File: //home/arjun/projects/env/lib64/python3.10/site-packages/__pycache__/mccabe.cpython-310.pyc
o
we�) � @ s d Z ddlmZ ddlZddlZddlZddlmZ zddlZddlm Z W n e
y7 ddlmZm Z Y nw dZG dd � d e
�ZG d
d� de
�ZG dd
� d
e
�ZG dd� de�ZG dd� de
�Zddd�Zddd�Zdd� Zd dd�Zedkr�eejdd� � dS dS )!z� Meager code path measurement tool.
Ned Batchelder
http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html
MIT License.
� )�with_statementN)�defaultdict)�iter_child_nodes)�astr z0.7.0c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�
ASTVisitorz'Performs a depth-first walk of the AST.c C s d | _ i | _d S �N)�node�_cache��self� r �?/home/arjun/projects/env/lib/python3.10/site-packages/mccabe.py�__init__ �
zASTVisitor.__init__c G s$ t |�D ]}| j|g|�R � qd S r )r �dispatch)r r �args�childr r r
�default s �zASTVisitor.defaultc G sT || _ |j}| j�|�}|d u r"|j}t| jd| | j�}|| j|<