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

Method as_const

tools/inspector_protocol/jinja2/nodes.py:440–450  ·  view source on GitHub ↗
(self, eval_ctx=None)

Source from the content-addressed store, hash-verified

438 abstract = True
439
440 def as_const(self, eval_ctx=None):
441 eval_ctx = get_eval_context(self, eval_ctx)
442 # intercepted operators cannot be folded at compile time
443 if self.environment.sandboxed and \
444 self.operator in self.environment.intercepted_unops:
445 raise Impossible()
446 f = _uaop_to_func[self.operator]
447 try:
448 return f(self.node.as_const(eval_ctx))
449 except Exception:
450 raise Impossible()
451
452
453class Name(Expr):

Callers

nothing calls this directly

Calls 4

get_eval_contextFunction · 0.70
ImpossibleClass · 0.70
fFunction · 0.50
as_constMethod · 0.45

Tested by

no test coverage detected