MCPcopy Create free account
hub / github.com/ipython/ipython / visit_FunctionDef

Method visit_FunctionDef

IPython/core/magics/execution.py:133–139  ·  view source on GitHub ↗

Fill in the setup statement

(self, node)

Source from the content-addressed store, hash-verified

131 self.ast_stmt = ast_stmt
132
133 def visit_FunctionDef(self, node):
134 "Fill in the setup statement"
135 self.generic_visit(node)
136 if node.name == "inner":
137 node.body[:1] = self.ast_setup.body
138
139 return node
140
141 def visit_For(self, node):
142 "Fill in the statement to be timed"

Callers

nothing calls this directly

Calls 1

generic_visitMethod · 0.80

Tested by

no test coverage detected