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

Method leave_frame

src/jinja2/compiler.py:600–606  ·  view source on GitHub ↗
(self, frame: Frame, with_python_scope: bool = False)

Source from the content-addressed store, hash-verified

598 self.writeline(f"{' = '.join(undefs)} = missing")
599
600 def leave_frame(self, frame: Frame, with_python_scope: bool = False) -> None:
601 if not with_python_scope:
602 undefs = []
603 for target in frame.symbols.loads:
604 undefs.append(target)
605 if undefs:
606 self.writeline(f"{' = '.join(undefs)} = missing")
607
608 def choose_async(self, async_value: str = "async ", sync_value: str = "") -> str:
609 return async_value if self.environment.is_async else sync_value

Callers 8

macro_bodyMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95
visit_FilterBlockMethod · 0.95
visit_WithMethod · 0.95
visit_AssignBlockMethod · 0.95
visit_ScopeMethod · 0.95
visit_OverlayScopeMethod · 0.95

Calls 1

writelineMethod · 0.95

Tested by

no test coverage detected