Writes a common preamble that is used by root and block functions. Primarily this sets up common local helpers and enforces a generator through a dead branch.
(self)
| 603 | in iteritems(frame.symbols.dump_stores())) |
| 604 | |
| 605 | def write_commons(self): |
| 606 | """Writes a common preamble that is used by root and block functions. |
| 607 | Primarily this sets up common local helpers and enforces a generator |
| 608 | through a dead branch. |
| 609 | """ |
| 610 | self.writeline('resolve = context.resolve_or_missing') |
| 611 | self.writeline('undefined = environment.undefined') |
| 612 | self.writeline('if 0: yield None') |
| 613 | |
| 614 | def push_parameter_definitions(self, frame): |
| 615 | """Pushes all parameter targets from the given frame into a local |
no test coverage detected