| @@ 40-52 (lines=13) @@ | ||
| 37 | /** |
|
| 38 | * @param Twig_Compiler $compiler |
|
| 39 | */ |
|
| 40 | public function compile(Twig_Compiler $compiler) |
|
| 41 | { |
|
| 42 | $compiler->addDebugInfo($this) |
|
| 43 | ->write(self::CODE_FIX_CONTEXT) |
|
| 44 | ->write(self::CODE_INSTANCE.'->startHeaderFooter(') |
|
| 45 | ->repr($this->baseType)->raw(', ') |
|
| 46 | ->subcompile($this->getNode('type'))->raw(', ') |
|
| 47 | ->subcompile($this->getNode('properties')) |
|
| 48 | ->raw(');'.PHP_EOL) |
|
| 49 | ->subcompile($this->getNode('body')) |
|
| 50 | ->addDebugInfo($this) |
|
| 51 | ->write(self::CODE_INSTANCE.'->endHeaderFooter();'.PHP_EOL); |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|
| @@ 15-26 (lines=12) @@ | ||
| 12 | /** |
|
| 13 | * @param Twig_Compiler $compiler |
|
| 14 | */ |
|
| 15 | public function compile(Twig_Compiler $compiler) |
|
| 16 | { |
|
| 17 | $compiler->addDebugInfo($this) |
|
| 18 | ->write(self::CODE_FIX_CONTEXT) |
|
| 19 | ->write(self::CODE_INSTANCE.'->startSheet(') |
|
| 20 | ->subcompile($this->getNode('index'))->raw(', ') |
|
| 21 | ->subcompile($this->getNode('properties')) |
|
| 22 | ->raw(');'.PHP_EOL) |
|
| 23 | ->subcompile($this->getNode('body')) |
|
| 24 | ->addDebugInfo($this) |
|
| 25 | ->write(self::CODE_INSTANCE.'->endSheet();'.PHP_EOL); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * {@inheritdoc} |
|