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

Method resolve

tools/inspector_protocol/jinja2/runtime.py:196–206  ·  view source on GitHub ↗

Looks up a variable like `__getitem__` or `get` but returns an :class:`Undefined` object with the name of the name looked up.

(self, key)

Source from the content-addressed store, hash-verified

194 return default
195
196 def resolve(self, key):
197 """Looks up a variable like `__getitem__` or `get` but returns an
198 :class:`Undefined` object with the name of the name looked up.
199 """
200 if self._legacy_resolve_mode:
201 rv = resolve_or_missing(self, key)
202 else:
203 rv = self.resolve_or_missing(key)
204 if rv is missing:
205 return self.environment.undefined(name=key)
206 return rv
207
208 def resolve_or_missing(self, key):
209 """Resolves a variable like :meth:`resolve` but returns the

Callers 15

resolve_or_missingMethod · 0.95
runShellCommandFunction · 0.45
runGitCommandFunction · 0.45
parseArgsFunction · 0.45
mainFunction · 0.45
run-worker.jsFile · 0.45
_gettext_aliasFunction · 0.45

Calls 2

resolve_or_missingMethod · 0.95
resolve_or_missingFunction · 0.85

Tested by 9

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36