(self, context: Context)
| 642 | return nodes.Output([result], lineno=lineno) |
| 643 | |
| 644 | def _render(self, context: Context) -> str: |
| 645 | result = { |
| 646 | "context": context.get_all(), |
| 647 | "filters": sorted(self.environment.filters.keys()), |
| 648 | "tests": sorted(self.environment.tests.keys()), |
| 649 | } |
| 650 | |
| 651 | # Set the depth since the intent is to show the top few names. |
| 652 | return pprint.pformat(result, depth=3, compact=True) |
| 653 | |
| 654 | |
| 655 | def extract_from_ast( |