public function section($name, $class = null)
    {
        /** @var \Foil\Contracts\SectionInterface $section */
        $section = $this->factory->factory($name, $this->mode(), $class);
        $section->start();
        $this->stack->push($section);
        $this->names->push($name);
    }