MCPcopy Index your code
hub / github.com/ipython/ipython / visit

Method visit

IPython/extensions/deduperreload/deduperreload.py:136–140  ·  view source on GitHub ↗
(self, node: ast.AST)

Source from the content-addressed store, hash-verified

134 self.is_constexpr = False
135
136 def visit(self, node: ast.AST) -> None:
137 if not self.is_constexpr:
138 # can short-circuit if we've already detected that it's not a constexpr
139 return
140 super().visit(node)
141
142 def __call__(self, node: ast.AST) -> bool:
143 self.is_constexpr = True

Callers 6

visit_AttributeMethod · 0.95
__call__Method · 0.95
transform_astMethod · 0.80
timeitMethod · 0.80
visit_ModuleMethod · 0.80
scanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected