Language
========

.. autoclass:: tree_sitter.Language

   Methods
   -------

   .. automethod:: copy
   .. automethod:: field_id_for_name
   .. automethod:: field_name_for_id
   .. automethod:: id_for_node_kind
   .. automethod:: lookahead_iterator
   .. automethod:: next_state
   .. automethod:: node_kind_for_id
   .. automethod:: node_kind_is_named
   .. automethod:: node_kind_is_supertype
   .. automethod:: node_kind_is_visible
   .. automethod:: query

      .. deprecated:: 0.25.0
         Use the :class:`Query` constructor instead.
   .. automethod:: subtypes

      .. versionadded:: 0.25.0

   Special Methods
   ---------------

   .. automethod:: __copy__
   .. automethod:: __eq__
   .. automethod:: __hash__

      .. important::

         On 32-bit platforms, you must use ``hash(self) & 0xFFFFFFFF`` to get the actual hash.
   .. automethod:: __ne__
   .. automethod:: __repr__

   Attributes
   ----------

   .. autoattribute:: abi_version

      .. versionadded:: 0.25.0
   .. autoattribute:: field_count
   .. autoattribute:: name

      .. versionadded:: 0.25.0
   .. autoattribute:: node_kind_count
   .. autoattribute:: parse_state_count
   .. autoattribute:: semantic_version

      .. versionadded:: 0.25.0
   .. autoattribute:: supertypes

      .. versionadded:: 0.25.0
   .. autoattribute:: version

      .. deprecated:: 0.25.0
         Use :attr:`abi_version` instead.
