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

Method _for_helper

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

Source from the content-addressed store, hash-verified

1056 self._for_helper("async for ", node)
1057
1058 def _for_helper(self, fill, node):
1059 self.fill(fill)
1060 self.set_precedence(_Precedence.TUPLE, node.target)
1061 self.traverse(node.target)
1062 self.write(" in ")
1063 self.traverse(node.iter)
1064 with self.block(extra=self.get_type_comment(node)):
1065 self.traverse(node.body)
1066 if node.orelse:
1067 self.fill("else")
1068 with self.block():
1069 self.traverse(node.orelse)
1070
1071 def visit_If(self, node):
1072 self.fill("if ")

Callers 2

visit_ForMethod · 0.95
visit_AsyncForMethod · 0.95

Calls 6

fillMethod · 0.95
set_precedenceMethod · 0.95
traverseMethod · 0.95
writeMethod · 0.95
blockMethod · 0.95
get_type_commentMethod · 0.95

Tested by

no test coverage detected