(source, anon_name)
| 35 | |
| 36 | |
| 37 | def parse_globals(source, anon_name): |
| 38 | for srcinfo in source: |
| 39 | m = GLOBAL_RE.match(srcinfo.text) |
| 40 | if not m: |
| 41 | # We need more text. |
| 42 | continue |
| 43 | for item in _parse_next(m, srcinfo, anon_name): |
| 44 | if callable(item): |
| 45 | parse_body = item |
| 46 | yield from parse_body(source) |
| 47 | else: |
| 48 | yield item |
| 49 | else: |
| 50 | # We ran out of lines. |
| 51 | if srcinfo is not None: |
| 52 | srcinfo.done() |
| 53 | return |
| 54 | |
| 55 | |
| 56 | def _parse_next(m, srcinfo, anon_name): |
no test coverage detected
searching dependent graphs…