A numeric or string subscript
(index_node)
| 75 | return Leaf(token.NUMBER, n, prefix=prefix) |
| 76 | |
| 77 | def Subscript(index_node): |
| 78 | """A numeric or string subscript""" |
| 79 | return Node(syms.trailer, [Leaf(token.LBRACE, "["), |
| 80 | index_node, |
| 81 | Leaf(token.RBRACE, "]")]) |
| 82 | |
| 83 | def String(string, prefix=None): |
| 84 | """A string leaf""" |
no test coverage detected