getBlocksParsed() public method

public getBlocksParsed ( ) : boolean
return boolean
Beispiel #1
0
 /**
  * Parse blocks
  *
  * @param ContextInterface $context
  * @param Cursor           $cursor
  */
 private function parseBlocks(ContextInterface $context, Cursor $cursor)
 {
     while (!$context->getContainer()->isCode() && !$context->getBlocksParsed()) {
         $parsed = false;
         foreach ($this->environment->getBlockParsers() as $parser) {
             if ($parser->parse($context, $cursor)) {
                 $parsed = true;
                 break;
             }
         }
         if (!$parsed || $context->getContainer()->acceptsLines()) {
             $context->setBlocksParsed(true);
         }
     }
 }