
    >/ip                     L    S SK r S SKr\R                  " \5      r " S S5      rg)    Nc                   H    \ rS rSr\R
                  " 5       rS rS rS r	Sr
g)BanditMetaAst   c                     g )N )selfs    N/home/james-whalen/.local/lib/python3.13/site-packages/bandit/core/meta_ast.py__init__BanditMetaAst.__init__   s        c                 ~    [        [        U5      5      n[        R                  SXC5        UUUS.U R                  U'   g)zAdd a node to the AST node collection

:param node: The AST node to add
:param parent_id: The ID of the node's parent
:param depth: The depth of the node
:return: -
zadding node : %s [%s])raw	parent_iddepthN)hexidLOGdebugnodes)r   noder   r   node_ids        r	   add_nodeBanditMetaAst.add_node   s9     bh-		)7:"


7r   c                     SnU R                   R                  5        H   u  p#USU S3-  nUS[        U5       S3-  nM"     US[        U R                   5       S3-  nU$ )zkDumps a listing of all of the nodes

Dumps a listing of all of the nodes for debugging purposes
:return: -
 zNode: 
	zLength: )r   itemsstrlen)r   tmpstrkvs       r	   __str__BanditMetaAst.__str__!   sm     JJ$$&DAqcn$F3q6("o%F ' 	HS_-R00r   r   N)__name__
__module____qualname____firstlineno__collectionsOrderedDictr   r
   r   r$   __static_attributes__r   r   r	   r   r      s    ##%E
 r   r   )r*   logging	getLoggerr&   r   r   r   r   r	   <module>r/      s'   
  !! !r   