
    %
iM                         d Z ddlmZmZmZ ddlmZ  G d dej        ej                  Z G d dej	                  Z	dS )	z,A module for managing the AXDebug I*Contexts   )adbaxdebuggateways)_wrapc                       e Zd Zej        j        ej        j        z   Zej        j        ej        j        z   Zd Zd Z	d Z
d Zd Zd ZdS )DebugCodeContextc                     || _         || _        || _        d| _        || _        t
          j                            |            || _        d S )N    )		debugSiteoffsetlengthbreakPointStatelinenor   r   __init__codeContainer)selflineNocharPoslenr   r   s         C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\win32comext/axdebug/contexts.pyr   zDebugCodeContext.__init__   sK    " !**4000*    c                     d | _         d S N)r   r   s    r   _ClosezDebugCodeContext._Close   s    r   c                     | j         0| j                             | j        j        | j        | j                  S t          | t          j                  S r   )	r   GetDocumentContextFromPositionr   sourceContextr   r   r   r   IID_IDebugDocumentContextr   s    r   GetDocumentContextz#DebugCodeContext.GetDocumentContext"   sJ    >%>@@"0$+t{  
 w@AAAr   c                 J    || _         t          j        | || j                   d S r   )r   r   OnSetBreakPointr   )r   bpss     r   SetBreakPointzDebugCodeContext.SetBreakPoint,   s'    "D#t{33333r   c                     | j         j        S r   )r   debugDocumentr   s    r   GetDocumentzDebugCodeContext.GetDocument1   s    !//r   c                 R    t          t          | g          t          j                  S r   )r   EnumDebugCodeContextsr   IID_IEnumDebugCodeContextsr   s    r   EnumCodeContextsz!DebugCodeContext.EnumCodeContexts4   s     *D622G4VWWWr   N)__name__
__module____qualname__r   r   _public_methods_DebugDocumentContext_com_interfaces_r   r   r    r$   r'   r+    r   r   r   r   	   s        
 	!2

'
8	9 
 	!2

'
8	9 
+ + +  B B B4 4 4
0 0 0X X X X Xr   r   c                       e Zd Zd ZdS )r)   c                 6    t          |t          j                  S r   )r   r   IID_IDebugCodeContext)r   objs     r   r   zEnumDebugCodeContexts._wrap9   s    S'7888r   N)r,   r-   r.   r   r2   r   r   r)   r)   8   s#        9 9 9 9 9r   r)   N)
__doc__ r   r   r   utilr   r   r0   r)   r2   r   r   <module>r:      s    2 2 $ $ $ $ $ $ $ $ $ $      ,X ,X ,X ,X ,Xx0(2O ,X ,X ,X^9 9 9 9 9H: 9 9 9 9 9r   