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