관리-도구
편집 파일: parsetree.cpython-38.pyc
U +�e?J � @ sb d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ G dd� d�ZG d d � d e�ZG dd� de�Z G d d� de�Z G dd� de�ZG dd� de�ZG dd� de�Z G dd� de�ZG dd� deed�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�ZG d(d)� d)e�ZG d*d+� d+e�ZdS ),z5defines the parse tree components for Mako templates.� N)�ast)� exceptions)�filters)�utilc @ s4 e Zd ZdZdd� Zedd� �Zdd� Zdd � Zd S )�Nodez(base class for a Node in the parse tree.c C s || _ || _|| _|| _d S �N��source�lineno�pos�filename)�selfr r r r � r �</opt/hc_python/lib/python3.8/site-packages/mako/parsetree.py�__init__ s z Node.__init__c C s | j | j| j| jd�S )Nr r �r r r r �exception_kwargs s �zNode.exception_kwargsc C s g S r r r r r r �get_children$ s zNode.get_childrenc s, � fdd�}t � d| jj |�}|| � d S )Nc s | � � D ]}|�� � qd S r )r �accept_visitor)�node�n��visitorr r �traverse( s z%Node.accept_visitor.<locals>.traverse�visit)�getattr� __class__�__name__)r r r �methodr r r r '