code: public function offsetGet($offset)
      {
          $item = $this->nodes[$offset];
  
          if (is_array($item) && isset($item['kind'])) {
              $this->nodes[$offset] = $item = AST::fromArray($item);
          }
  
          return $item;
      }
docs: @param mixed $offset
  
  @return mixed