MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / visit_Constant

Method visit_Constant

tools/python-3.11.9-amd64/Lib/ast.py:1264–1274  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

1262 self.write(repr(value))
1263
1264 def visit_Constant(self, node):
1265 value = node.value
1266 if isinstance(value, tuple):
1267 with self.delimit("(", ")"):
1268 self.items_view(self._write_constant, value)
1269 elif value is ...:
1270 self.write("...")
1271 else:
1272 if node.kind == "u":
1273 self.write("u")
1274 self._write_constant(node.value)
1275
1276 def visit_List(self, node):
1277 with self.delimit("[", "]"):

Callers

nothing calls this directly

Calls 4

delimitMethod · 0.95
items_viewMethod · 0.95
writeMethod · 0.95
_write_constantMethod · 0.95

Tested by

no test coverage detected