
    f                     "    d Z d Z G d d      Zy)zU
This file is about errors in Python files and not about exception handling in
Jedi.
c                 \    | j                  |      D cg c]  }t        |       c}S c c}w N)iter_errorsSyntaxError)grammarmodule_nodees      J/var/www/cvtools/html/venv/lib/python3.12/site-packages/jedi/api/errors.pyparso_to_jedi_errorsr
      s%    $+$7$7$DEqKNEEEs   )c                   b    e Zd ZdZd Zed        Zed        Zed        Zed        Z	d Z
d Zy	)
r   zK
    Syntax errors are generated by :meth:`.Script.get_syntax_errors`.
    c                     || _         y r   )_parso_error)selfparso_errors     r	   __init__zSyntaxError.__init__   s
    '    c                 4    | j                   j                  d   S )z2The line where the error starts (starting with 1).    r   	start_posr   s    r	   linezSyntaxError.line          **1--r   c                 4    | j                   j                  d   S )z4The column where the error starts (starting with 0).   r   r   s    r	   columnzSyntaxError.column   r   r   c                 4    | j                   j                  d   S )z0The line where the error ends (starting with 1).r   r   end_posr   s    r	   
until_linezSyntaxError.until_line          ((++r   c                 4    | j                   j                  d   S )z2The column where the error ends (starting with 0).r   r   r   s    r	   until_columnzSyntaxError.until_column!   r    r   c                 .    | j                   j                  S r   )r   messager   s    r	   get_messagezSyntaxError.get_message&   s      (((r   c                     d| j                   j                  d| j                  j                  d| j                  j                  dS )N<z from=z to=>)	__class____name__r   r   r   r   s    r	   __repr__zSyntaxError.__repr__)   s7    NN##''%%
 	
r   N)r*   
__module____qualname____doc__r   propertyr   r   r   r"   r%   r+    r   r	   r   r      sf    ( . . . . , , , ,)
r   r   N)r.   r
   r   r0   r   r	   <module>r1      s   F#
 #
r   