File: //usr/share/glib-2.0/codegen/__pycache__/parser.cpython-312.pyc
�
3�ec2 � �F � d dl Zd dlZddlmZ ddlmZ G d� d� Zd� Zy)� N� )� dbustypes)�print_errorc �` � e Zd ZdZdZdZdZdZdZdZ dZ
d Zdd
�ZdZ
dZd
ZdZd� Zd� Zd� Zd� Zy)�
DBusXMLParser�top�node� interface�method�signal�property�arg�
annotation�ignoredc � � t j j j � | _ | j
| j _ | j | j _ | j | j _
| j | j _ g | _
d | _ t j | _ g | _ d | _ g | _ d| _ || _ | j j- |� y )N� )�xml�parsers�expat�ParserCreate�_parser�handle_comment�CommentHandler�handle_char_data�CharacterDataHandler�handle_start_element�StartElementHandler�handle_end_element�EndElementHandler�parsed_interfaces�_cur_objectr � STATE_TOP�state�state_stack�_cur_object_stack�doc_comment_last_symbol�_h_type_implies_unix_fd�Parse)�self�xml_data�h_type_implies_unix_fds �%/usr/share/glib-2.0/codegen/parser.py�__init__zDBusXMLParser.__init__( s� � ��{�{�(�(�5�5�7���&*�&9�&9����#�,0�,A�,A����)�+/�+D�+D����(�)-�)@�)@����&�!#������"�,�,��
�������!#���')��$�'=��$������8�$� �begin�params�body�skipc � � t j }t j |� j d� }d}d}d}i }|D �]� }|t j k( r�t |� dkD s�&|j
d� } | dk( rD|j d� r"|dt |� dz
}t j }�ot j }��|d| }|| d z d j � }
t |
� dkD r||
� d�z
}t j }��|t j k( r�|j d
� rM|j
d� } | dk( r#t j }|s|dz
}d}||� d�z
}��|d| }|| d z d }|||<