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

Method as_const

deps/v8/third_party/jinja2/nodes.py:612–618  ·  view source on GitHub ↗
(self, eval_ctx: t.Optional[EvalContext] = None)

Source from the content-addressed store, hash-verified

610 data: str
611
612 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:
613 eval_ctx = get_eval_context(self, eval_ctx)
614 if eval_ctx.volatile:
615 raise Impossible()
616 if eval_ctx.autoescape:
617 return Markup(self.data)
618 return self.data
619
620
621class Tuple(Literal):

Callers

nothing calls this directly

Calls 3

MarkupClass · 0.90
get_eval_contextFunction · 0.70
ImpossibleClass · 0.70

Tested by

no test coverage detected