Lines Matching defs:visitor
23 from .visitor import NodeVisitor
61 def visitor(self: "CodeGenerator", node: nodes.BinExpr, frame: Frame) -> None:
78 return visitor
85 def visitor(self: "CodeGenerator", node: nodes.UnaryExpr, frame: Frame) -> None:
98 return visitor
148 visitor = UndeclaredNameVisitor(names)
151 visitor.visit(node)
154 return visitor.undeclared
253 """A visitor that collects filter and test calls."""
272 """A visitor that checks if a name is accessed without being
273 declared. This is different from the frame visitor as it will
549 visitor = DependencyFinderVisitor()
552 visitor.visit(node)
554 for id_map, names, dependency in (self.filters, visitor.filters, "filters"), (
556 visitor.tests,
1784 # Back to the visitor function to handle visiting the target of