public static function preProcessing(Compiler $compiler, array $params, $prepend, $append, $type)
 {
     $with =& $compiler->findBlock('with', true);
     $params['initialized'] = true;
     $compiler->injectBlock($type, $params);
     return '';
 }
 public static function preProcessing(Compiler $compiler, array $params, $prepend, $append, $type)
 {
     $preContent = '';
     while (true) {
         $preContent .= $compiler->removeTopBlock();
         $block =& $compiler->getCurrentBlock();
         $reflectionClass = new \ReflectionClass($block['class']);
         if ($reflectionClass->implementsInterface('Dwoo\\IElseable')) {
             break;
         }
     }
     $params['initialized'] = true;
     $compiler->injectBlock($type, $params);
     return $preContent;
 }
 public static function preProcessing(Compiler $compiler, array $params, $prepend, $append, $type)
 {
     $preContent = '';
     while (true) {
         $preContent .= $compiler->removeTopBlock();
         $block =& $compiler->getCurrentBlock();
         if (!$block) {
             throw new CompilationException($compiler, 'An else block was found but it was not preceded by an if or other else-able construct');
         }
         $reflectionClass = new \ReflectionClass($block['class']);
         if ($reflectionClass->implementsInterface('Dwoo\\IElseable')) {
             break;
         }
     }
     $params['initialized'] = true;
     $compiler->injectBlock($type, $params);
     return $preContent;
 }