Returns an iterator of index token lists
(self)
| 463 | return ordering.normalized if ordering else None |
| 464 | |
| 465 | def get_array_indices(self): |
| 466 | """Returns an iterator of index token lists""" |
| 467 | |
| 468 | for token in self.tokens: |
| 469 | if isinstance(token, SquareBrackets): |
| 470 | # Use [1:-1] index to discard the square brackets |
| 471 | yield token.tokens[1:-1] |
| 472 | |
| 473 | |
| 474 | class IdentifierList(TokenList): |
no outgoing calls