/**
  * @param string $name
  *
  * @return SimpleSlot|null
  */
 public function getSlot($name)
 {
     if (in_array($name, $this->cache->dirtySymbols, true)) {
         for ($slot = $this->lastSlot; $slot !== null; $slot = $slot->parent) {
             if ($slot->getName() === $name) {
                 return $slot;
             }
         }
     }
     return $this->cache->getSlot($name);
 }