/opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__/optimizer.cpython-311.pyc (2870B)
§
Ú‹s`“}ã óˆ — d Z ddlZddlmZ ddlmZ ej rddlm Z dej
dd d
ej
fd„Z G d„ d
e¦ « ZdS )a¯ The optimizer tries to constant fold expressions and modify the AST
in place so that it should be faster to evaluate.
Because the AST does not contain all the scoping information and the
compiler has to find that out, we cannot do all the optimizations we
want. For example, loop unrolling doesn't work because unrolled loops
would have a different scope. The solution would be a second syntax tree
that stored the scoping rules.
é Né )Únodes)ÚNodeTransformer)ÚEnvironmentÚnodeÚenvironmentr Úreturnc ó„ — t |¦ « }t j t j | | ¦ « ¦ « S )z^The context hint can be used to perform an static optimization
based on the context given.)Ú OptimizerÚtÚcastr ÚNodeÚvisit)r r Ú optimizers úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/jinja2/optimizer.pyÚoptimizer s1 € õ ˜+Ñ&Ô&€IÝŒ6•%”*˜iŸošo¨dÑ3Ô3Ñ4Ô4Ð4ó c ó` ‡ — e Zd Zd
d„Zdej dej dej dej fˆ fd „Zˆ xZ S )r r út.Optional[Environment]r Nc ó — || _ d S )N)r )Úselfr s r Ú__init__zOptimizer.__init__ s € Ø&ˆÔÐÐr r ÚargsÚkwargsc ó4 •— t ¦ « j |g|¢R i |¤Ž}t |t j ¦ « r_ t j | |r|d nd ¦ « |j | j ¬¦ « S # t j
$ r Y nw xY w|S )Nr )Úlinenor )ÚsuperÚ
generic_visitÚ
isinstancer ÚExprÚConstÚfrom_untrustedÚas_constr r Ú
Impossible)r r r r Ú __class__s €r r zOptimizer.generic_visit s¸ ø€ ð %�u‰wŒwÔ$ TÐ;¨DÐ;Ð;Ð;°FÐ;Ð;ˆõ �d�EœJÑ'Ô'ð ð
Ý”{×1Ò1Ø—M’M¨TÐ"; $ q¤' '°tÑ<Ô<Øœ;Ø $Ô 0ð 2ñ ô ð øõ
Ô#ð
ð
ð
Ø�ð
øøøð ˆs ºAB ÂBÂB)r r r N)
Ú__name__Ú
__module__Ú__qualname__r r r r ÚAnyr Ú
__classcell__)r% s @r r r sy ø€ € € € € ð'ð 'ð 'ð 'ðØ”JðØ'(¤uðØ89¼ðà Œðð ð ð ð ð ð ð ð ð r r )
Ú__doc__Útypingr Ú r Úvisitorr Ú
TYPE_CHECKINGr r r r r © r r ú
r1 s¾ ððð ð Ð Ð Ð à Ð Ð Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $à„?ð )Ø(Ð(Ð(Ð(Ð(Ð(ð5�5”:ð 5¨Mð 5¸e¼jð 5ð 5ð 5ð 5ðð ð ð ð �ñ ô ð ð ð r