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

Method visit_Const

tools/inspector_protocol/jinja2/compiler.py:1430–1435  ·  view source on GitHub ↗
(self, node, frame)

Source from the content-addressed store, hash-verified

1428 self.writeline('%s[%r]' % (ref, node.attr))
1429
1430 def visit_Const(self, node, frame):
1431 val = node.as_const(frame.eval_ctx)
1432 if isinstance(val, float):
1433 self.write(str(val))
1434 else:
1435 self.write(repr(val))
1436
1437 def visit_TemplateData(self, node, frame):
1438 try:

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
strFunction · 0.85
as_constMethod · 0.45

Tested by

no test coverage detected