Generator yielding ungrouped tokens. This method is recursively called for all child tokens.
(self)
| 205 | idx = end |
| 206 | |
| 207 | def flatten(self): |
| 208 | """Generator yielding ungrouped tokens. |
| 209 | |
| 210 | This method is recursively called for all child tokens. |
| 211 | """ |
| 212 | for token in self.tokens: |
| 213 | if token.is_group: |
| 214 | yield from token.flatten() |
| 215 | else: |
| 216 | yield token |
| 217 | |
| 218 | def get_sublists(self): |
| 219 | for token in self.tokens: |
no test coverage detected