(self, eval_ctx=None)
| 674 | fields = ('node', 'name', 'args', 'kwargs', 'dyn_args', 'dyn_kwargs') |
| 675 | |
| 676 | def as_const(self, eval_ctx=None): |
| 677 | test = self.environment.tests.get(self.name) |
| 678 | |
| 679 | if test is None: |
| 680 | raise Impossible() |
| 681 | |
| 682 | eval_ctx = get_eval_context(self, eval_ctx) |
| 683 | args, kwargs = args_as_const(self, eval_ctx) |
| 684 | args.insert(0, self.node.as_const(eval_ctx)) |
| 685 | |
| 686 | try: |
| 687 | return test(*args, **kwargs) |
| 688 | except Exception: |
| 689 | raise Impossible() |
| 690 | |
| 691 | |
| 692 | class Call(Expr): |
nothing calls this directly
no test coverage detected