MCPcopy Index your code
hub / github.com/nodejs/node / get_source

Method get_source

tools/inspector_protocol/jinja2/loaders.py:282–286  ·  view source on GitHub ↗
(self, environment, template)

Source from the content-addressed store, hash-verified

280 self.mapping = mapping
281
282 def get_source(self, environment, template):
283 if template in self.mapping:
284 source = self.mapping[template]
285 return source, None, lambda: source == self.mapping.get(template)
286 raise TemplateNotFound(template)
287
288 def list_templates(self):
289 return sorted(self.mapping)

Callers

nothing calls this directly

Calls 2

TemplateNotFoundClass · 0.90
getMethod · 0.65

Tested by

no test coverage detected