MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / visit_For

Method visit_For

pythonwhat/parsing.py:580–591  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

578 self.out = []
579
580 def visit_For(self, node):
581 tv = Parser.get_target_vars(node.target)
582 self.out.append(
583 {
584 "node": node,
585 "iter": node.iter,
586 "body": {"node": node.body, "target_vars": tv},
587 "orelse": {"node": node.orelse, "target_vars": tv},
588 "target": node.target,
589 "_target_vars": tv,
590 }
591 )
592
593
594class ClassDefParser(Parser):

Callers

nothing calls this directly

Calls 1

get_target_varsMethod · 0.80

Tested by

no test coverage detected