| 1 | <?php |
||
| 10 | class SyntaxCheckNodeVisitor extends \Twig_BaseNodeVisitor |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $path = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function getPriority() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | * |
||
| 28 | * @throws \Twig_Error_Syntax |
||
| 29 | */ |
||
| 30 | protected function doEnterNode(\Twig_Node $node, \Twig_Environment $env) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | protected function doLeaveNode(\Twig_Node $node, \ Twig_Environment $env) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param BaseNode $node |
||
| 62 | * |
||
| 63 | * @throws \Twig_Error_Syntax |
||
| 64 | */ |
||
| 65 | private function checkAllowedParents(BaseNode $node) |
||
| 88 | } |
||
| 89 |