(self, resolve_context: ResolveContext)
| 687 | return q_objects |
| 688 | |
| 689 | def resolve(self, resolve_context: ResolveContext) -> ResolveResult: |
| 690 | q_objects = self._resolve_q_objects() |
| 691 | |
| 692 | modifier = QueryModifier() |
| 693 | for node in q_objects: |
| 694 | modifier &= node.resolve(resolve_context) |
| 695 | |
| 696 | if isinstance(self.then, Expression): |
| 697 | then = self.then.resolve(resolve_context).term |
| 698 | else: |
| 699 | then = cast(Term, Term.wrap_constant(self.then)) |
| 700 | |
| 701 | return ResolveResult(term=_WhenThen(modifier.where_criterion, then)) |
| 702 | |
| 703 | |
| 704 | class Case(Expression): |
nothing calls this directly
no test coverage detected