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

Method visit_If

docs/sphinxext/apigen.py:51–57  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

49 for d in node.decorator_list)
50
51 def visit_If(self, node):
52 if isinstance(node.test, ast.Compare) \
53 and isinstance(node.test.left, ast.Name) \
54 and node.test.left.id == '__name__':
55 return # Ignore classes defined in "if __name__ == '__main__':"
56
57 self.generic_visit(node)
58
59 def visit_FunctionDef(self, node):
60 if not (node.name.startswith('_') or self.has_undoc_decorator(node)) \

Callers

nothing calls this directly

Calls 1

generic_visitMethod · 0.80

Tested by

no test coverage detected