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

Method visit_Const

deps/v8/third_party/jinja2/compiler.py:1629–1634  ·  view source on GitHub ↗
(self, node: nodes.Const, frame: Frame)

Source from the content-addressed store, hash-verified

1627 self.writeline(f"{ref}[{node.attr!r}]")
1628
1629 def visit_Const(self, node: nodes.Const, frame: Frame) -> None:
1630 val = node.as_const(frame.eval_ctx)
1631 if isinstance(val, float):
1632 self.write(str(val))
1633 else:
1634 self.write(repr(val))
1635
1636 def visit_TemplateData(self, node: nodes.TemplateData, frame: Frame) -> None:
1637 try:

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
strFunction · 0.85
as_constMethod · 0.45

Tested by

no test coverage detected