MCPcopy Create free account
hub / github.com/nodejs/node / resolve_or_missing

Function resolve_or_missing

tools/inspector_protocol/jinja2/runtime.py:125–130  ·  view source on GitHub ↗
(context, key, missing=missing)

Source from the content-addressed store, hash-verified

123
124
125def resolve_or_missing(context, key, missing=missing):
126 if key in context.vars:
127 return context.vars[key]
128 if key in context.parent:
129 return context.parent[key]
130 return missing
131
132
133class Context(with_metaclass(ContextMeta)):

Callers 2

resolveMethod · 0.85
resolve_or_missingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected