(source, anon_name, parent)
| 27 | |
| 28 | |
| 29 | def parse_struct_body(source, anon_name, parent): |
| 30 | done = False |
| 31 | while not done: |
| 32 | done = True |
| 33 | for srcinfo in source: |
| 34 | m = STRUCT_MEMBER_RE.match(srcinfo.text) |
| 35 | if m: |
| 36 | break |
| 37 | else: |
| 38 | # We ran out of lines. |
| 39 | if srcinfo is not None: |
| 40 | srcinfo.done() |
| 41 | return |
| 42 | for item in _parse_struct_next(m, srcinfo, anon_name, parent): |
| 43 | if callable(item): |
| 44 | parse_body = item |
| 45 | yield from parse_body(source) |
| 46 | else: |
| 47 | yield item |
| 48 | done = False |
| 49 | |
| 50 | |
| 51 | def _parse_struct_next(m, srcinfo, anon_name, parent): |
nothing calls this directly
no test coverage detected
searching dependent graphs…