private function compileClosureBlock(\Twig_Compiler $compiler, $parentName, $name)
    {
        $compiler
            ->addDebugInfo($this)
            ->write('$')->raw($name)->raw(' = ')
            ->raw('$this->env->getExtension(\'Fxp\Component\Block\Twig\Extension\BlockExtension\')->createNamed(')
            ->raw('\'Fxp\Component\Block\Extension\Core\Type\ClosureType\'')
            ->raw(', ')
            ->raw('array("data" => function ($blockView) use ($context, $blocks) { $this->block_')->raw($name)->raw('(array_merge($context, array(\'closure\' => $blockView)), $blocks); }')
            ->raw(', "block_name" => ')->string($name)->raw(', "label" => "")')
            ->raw(');')->raw("\n")
            ->write('$')->raw($parentName)->raw('Children[] = array(\'parent\' => $')->raw($parentName)->raw(', \'child\' => $')->raw($name)->raw(');')->raw("\n")
        ;
    }
private function compileClosureBlock(\Twig_Compiler $compiler, $parentName, $name)
    {
        $compiler
            ->addDebugInfo($this)
            ->write('$')->raw($name)->raw(' = ')
            ->raw('$this->env->getExtension(\'Fxp\Component\Block\Twig\Extension\BlockExtension\')->createNamed(')
            ->raw('\'Fxp\Component\Block\Extension\Core\Type\ClosureType\'')
            ->raw(', ')
            ->raw('array("data" => function ($blockView) use ($context, $blocks) { $this->block_')->raw($name)->raw('(array_merge($context, array(\'closure\' => $blockView)), $blocks); }')
            ->raw(', "block_name" => ')->string($name)->raw(', "label" => "")')
            ->raw(');')->raw("\n")
            ->write('$')->raw($parentName)->raw('Children[] = array(\'parent\' => $')->raw($parentName)->raw(', \'child\' => $')->raw($name)->raw(');')->raw("\n")
        ;
    }
private function compileClosureBlock ( \ Twig_Compiler $ compiler , $ parentName , $ name ) { $ compiler -> addDebugInfo ( $ this ) -> write ( '$' ) -> raw ( $ name ) -> raw ( ' = ' ) -> raw ( '$this->env->getExtension(\'Fxp\Component\Block\Twig\Extension\BlockExtension\')->createNamed(' ) -> raw ( '\'Fxp\Component\Block\Extension\Core\Type\ClosureType\'' ) -> raw ( ', ' ) -> raw ( 'array("data" => function ($blockView) use ($context, $blocks) { $this->block_' ) -> raw ( $ name ) -> raw ( '(array_merge($context, array(\'closure\' => $blockView)), $blocks); }' ) -> raw ( ', "block_name" => ' ) -> string ( $ name ) -> raw ( ', "label" => "")' ) -> raw ( ');' ) -> raw ( "\n" ) -> write ( '$' ) -> raw ( $ parentName ) -> raw ( 'Children[] = array(\'parent\' => $' ) -> raw ( $ parentName ) -> raw ( ', \'child\' => $' ) -> raw ( $ name ) -> raw ( ');' ) -> raw ( "\n" ) ; }
Compile the closure block.

@param \Twig_Compiler $compiler   The compiler
@param string         $parentName The name of parent block
@param string         $name       The name of block
Compile the closure block .