MCPcopy
hub / github.com/pallets/jinja / dump_local_context

Method dump_local_context

src/jinja2/compiler.py:716–721  ·  view source on GitHub ↗
(self, frame: Frame)

Source from the content-addressed store, hash-verified

714 return rv
715
716 def dump_local_context(self, frame: Frame) -> str:
717 items_kv = ", ".join(
718 f"{name!r}: {target}"
719 for name, target in frame.symbols.dump_stores().items()
720 )
721 return f"{{{items_kv}}}"
722
723 def write_commons(self) -> None:
724 """Writes a common preamble that is used by root and block functions.

Callers 3

derive_contextMethod · 0.95
visit_IncludeMethod · 0.95
_import_commonMethod · 0.95

Calls 2

itemsMethod · 0.80
dump_storesMethod · 0.80

Tested by

no test coverage detected