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

Method ref

src/jinja2/idtracking.py:80–87  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

78 return None
79
80 def ref(self, name: str) -> str:
81 rv = self.find_ref(name)
82 if rv is None:
83 raise AssertionError(
84 "Tried to resolve a name to a reference that was"
85 f" unknown to the frame ({name!r})"
86 )
87 return rv
88
89 def copy(self) -> "te.Self":
90 rv = object.__new__(self.__class__)

Callers 10

_load_templateMethod · 0.80
macro_bodyMethod · 0.80
pop_assign_trackingMethod · 0.80
visit_ImportMethod · 0.80
visit_FromImportMethod · 0.80
visit_MacroMethod · 0.80
visit_AssignMethod · 0.80
visit_NameMethod · 0.80
visit_NSRefMethod · 0.80

Calls 1

find_refMethod · 0.95

Tested by 1