[toy-model] Don't visit shape pointer when there is a compexpr
@@ -894,6 +894,7 @@ class PathFinder(NodeVisitor):
self.visit(shape.elements)
def visit_ShapeElement(self, el: qlast.ShapeElement) -> None:
+ if not el.compexpr:
self.visit_Path(el.expr, always_partial=True)
self.visit(el.compexpr)
with self.subquery(), self.update_path(el.expr):
