foo['bar']
or foo[2]
. This is sometimes called an "element-get" operation, hence the name of the node. Node type is
The node bounds extend from the beginning position of the target through the closing right-bracket. In the presence of a syntax error, the right bracket position is -1, and the node ends at the end of the element expression.