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

Method find_ref

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

Source from the content-addressed store, hash-verified

69 return None
70
71 def find_ref(self, name: str) -> t.Optional[str]:
72 if name in self.refs:
73 return self.refs[name]
74
75 if self.parent is not None:
76 return self.parent.find_ref(name)
77
78 return None
79
80 def ref(self, name: str) -> str:
81 rv = self.find_ref(name)

Callers 6

refMethod · 0.95
loadMethod · 0.95
branch_updateMethod · 0.95
dump_storesMethod · 0.95
storeMethod · 0.80
test_complexFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_complexFunction · 0.64