code: private void visitGetElem(Node n) {
      validator.expectIndexMatch(n, getJSType(n.getFirstChild()), getJSType(n.getLastChild()));
      ensureTyped(n);
    }
docs: Visits a GETELEM node.
  
  @param n The node being visited.