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

Method as_const

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

Source from the content-addressed store, hash-verified

517 fields = ('data',)
518
519 def as_const(self, eval_ctx=None):
520 eval_ctx = get_eval_context(self, eval_ctx)
521 if eval_ctx.volatile:
522 raise Impossible()
523 if eval_ctx.autoescape:
524 return Markup(self.data)
525 return self.data
526
527
528class Tuple(Literal):

Callers

nothing calls this directly

Calls 3

get_eval_contextFunction · 0.70
ImpossibleClass · 0.70
MarkupClass · 0.50

Tested by

no test coverage detected