Returns an iterator over all val_exprs including those nested within this function's args.
(self, filter=None)
| 193 | return any(self.iter_exprs(lambda expr: expr.is_func and expr.contains_subquery)) |
| 194 | |
| 195 | def iter_exprs(self, filter=None): |
| 196 | '''Returns an iterator over all val_exprs including those nested within this |
| 197 | function's args. |
| 198 | ''' |
| 199 | for arg in self.args: |
| 200 | if not isinstance(arg, ValExpr): |
| 201 | continue |
| 202 | if not filter or filter(arg): |
| 203 | yield arg |
| 204 | for expr in arg.iter_exprs(filter=filter): |
| 205 | yield expr |
| 206 | |
| 207 | def __hash__(self): |
| 208 | return hash(type(self)) + hash(self.signature) + hash(tuple(self.args)) |
no test coverage detected