+
    NV-j-  ã                   ón  € R t ^ RIt^RIHt ^RIHt ^RIHt ]P                  '       d   ^RI	H
t
  ! R R]4      tR R	 lt]P                  ]P                  ]P                  ]P                   3t]P$                  ]P                  ]P                  ]P                  ]P                   3,          tR
 R ltR# )z_Functions that expose information about templates that might be
interesting for introspection.
N)Únodes)ÚCodeGenerator©ÚFrame)ÚEnvironmentc                   ól   a a€ ] tR t^t oRtV3R lV 3R lltV3R lR ltV3R lV 3R lltRtVt	V ;t
# )	ÚTrackingCodeGeneratorz.We abuse the code generator for introspection.c                ó"   <€ V ^8„  d   QhRRRR/# )é   Úenvironmentr   ÚreturnN© )ÚformatÚ__classdict__s   "€Ú\/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/jinja2/meta.pyÚ__annotate__Ú"TrackingCodeGenerator.__annotate__   s   ø€ ÷ 8ñ 8 Mð 8°dñ 8ó    c                óH   <€ \         SV `  VR R 4       \        4       V n        R# )z<introspection>N)ÚsuperÚ__init__ÚsetÚundeclared_identifiers)Úselfr   Ú	__class__s   &&€r   r   ÚTrackingCodeGenerator.__init__   s    ø€ Ü‰Ñ˜Ð&7Ð9JÔKÜ25³%ˆÖ#r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r
   Úxr   N)Ústr)r   r   s   "€r   r   r      s   ø€ ÷ ñ ‘sð ˜tñ r   c                ó   € R# )zDon't write.Nr   )r   r   s   &&r   ÚwriteÚTrackingCodeGenerator.write   s   ‚ r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r
   Úframer   Nr   )r   r   s   "€r   r   r      s   ø€ ÷ 7ñ 7¡ð 7¨4ñ 7r   c                ó  <€ \         SV `  V4       VP                  P                  P	                  4        FH  w  pw  r4VR8X  g   K  W@P
                  P                  9  g   K-  V P                  P                  V4       KJ  	  R# )z$Remember all undeclared identifiers.ÚresolveN)	r   Úenter_frameÚsymbolsÚloadsÚitemsr   Úglobalsr   Úadd)r   r#   Ú_ÚactionÚparamr   s   &&   €r   r&   Ú!TrackingCodeGenerator.enter_frame   sa   ø€ ä‰Ñ˜EÔ"à"'§-¡-×"5Ñ"5×";Ñ";Ö"=ÑˆA‰�Ø˜Ö" u×4DÑ4D×4LÑ4LÖ'LØ×+Ñ+×/Ñ/°Ö6ó #>r   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r    r&   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r   s   @@r   r   r      s+   ù‡ € Ù8÷8ó 8÷ð ÷7÷ 7ó 7r   r   c                ón   € V ^8„  d   QhR\         P                  R\        P                  \        ,          /# ©r
   Úastr   )r   ÚTemplateÚtÚSetr   )r   s   "r   r   r   "   s&   € ÷ *ñ *¤5§>¡>ð *´a·e±e¼Cµjñ *r   c                óf   € \        V P                  4      pVP                  V 4       VP                  # )aÞ  Returns a set of all variables in the AST that will be looked up from
the context at runtime.  Because at compile time it's not known which
variables will be used depending on the path the execution takes at
runtime, all variables are returned.

>>> from jinja2 import Environment, meta
>>> env = Environment()
>>> ast = env.parse('{% set foo = 42 %}{{ bar + foo }}')
>>> meta.find_undeclared_variables(ast) == {'bar'}
True

.. admonition:: Implementation

   Internally the code generator is used for finding undeclared variables.
   This is good to know because the code generator might raise a
   :exc:`TemplateAssertionError` during compilation and as a matter of
   fact this function can currently raise that exception as well.
)r   r   Úvisitr   )r:   Úcodegens   & r   Úfind_undeclared_variablesrA   "   s*   € ô& $ C§O¡OÓ4€GØ‡M�M�#ÔØ×)Ñ)Ð)r   c                ó˜   € V ^8„  d   QhR\         P                  R\        P                  \        P                  \
        ,          ,          /# r9   )r   r;   r<   ÚIteratorÚOptionalr   )r   s   "r   r   r   >   s/   € ÷ 2ñ 2¤5§>¡>ð 2´a·j±jÄÇÁÌCÅÕ6Qñ 2r   c              #  ó<  "  € V P                  \        4       EF}  pVP                  p\        V\        P
                  4      '       g¡   \        V\        P                  \        P                  34      '       dk   VP                   FY  p\        V\        P
                  4      '       d3   \        VP                  \        4      '       d   VP                  x € KS  KU  Rx € K[  	  MRx € KÐ  \        VP                  \        4      '       d   VP                  x € EK  \        V\        P                  4      '       dY   \        VP                  \        \        34      '       d3   VP                   F  p\        V\        4      '       g   K  Vx € K!  	  EKy  Rx € EK€  	  R# 5i)a6  Finds all the referenced templates from the AST.  This will return an
iterator over all the hardcoded template extensions, inclusions and
imports.  If dynamic inheritance or inclusion is used, `None` will be
yielded.

>>> from jinja2 import Environment, meta
>>> env = Environment()
>>> ast = env.parse('{% extends "layout.html" %}{% include helper %}')
>>> list(meta.find_referenced_templates(ast))
['layout.html', None]

This function is useful for dependency tracking.  For example if you want
to rebuild parts of the website after a layout template has changed.
N)Úfind_allÚ
_ref_typesÚtemplateÚ
isinstancer   ÚConstÚTupleÚListr)   Úvaluer   ÚIncludeÚtupleÚlist)r:   ÚnoderH   Útemplate_names   &   r   Úfind_referenced_templatesrS   >   s  é € ð" —‘œZ×(ˆØ#Ÿ}™}ˆä˜(¤E§K¡K×0Ò0ä˜(¤U§[¡[´%·*±*Ð$=×>Ò>Ø%-§^¤^�Mô " -´·±×=Ò=Ü% m×&9Ñ&9¼3×?Ò?Ø"/×"5Ñ"5Ô5ñ @ð #œ
ò &4ð ’
Ùä�h—n‘n¤c×*Ò*Ø—.‘.Õ ô ˜œeŸm™m×,Ò,´Ø�N‰NœU¤D˜M÷2
ò 2
ð "*§¤�Ü˜m¬S×1Ô1Ø'Ô'ô "0ð
 �JóC )ùs   ‚E?FÆF)r4   Útypingr<   Ú r   Úcompilerr   r   ÚTYPE_CHECKINGr   r   r   rA   ÚExtendsÚ
FromImportÚImportrN   rG   ÚUnionÚ_RefTyperS   r   r   r   Ú<module>r]      s…   ðñó å Ý #Ý à‡?‡?€?Ý(ô7˜Mô 7õ&*ð0 �m‰m˜U×-Ñ-¨u¯|©|¸U¿]¹]ÐK€
Ø�7‰7�5—=‘= %×"2Ñ"2°E·L±LÀ%Ç-Á-ÐOÕP€÷2r   