Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function compile(JsCompiler $compiler, \Twig_NodeInterface $node) |
||
16 | { |
||
17 | if (!$node instanceof \Twig_Node_Do) { |
||
18 | throw new \RuntimeException( |
||
19 | sprintf('$node must be an instanceof of \Twig_Node_Do, but got "%s".', get_class($node)) |
||
20 | ); |
||
21 | } |
||
22 | |||
23 | $compiler |
||
24 | ->addDebugInfo($node) |
||
25 | ->write('') |
||
26 | ->subcompile($node->getNode('expr')) |
||
27 | ->raw(";\n") |
||
28 | ; |
||
29 | } |
||
30 | } |
||
31 |