@@ 154-165 (lines=12) @@ | ||
151 | $this->count = $count; |
|
152 | } |
|
153 | ||
154 | private function hasElseNode(\Twig_NodeInterface $node) |
|
155 | { |
|
156 | if (!$node->hasNode('else')) { |
|
157 | return false; |
|
158 | } |
|
159 | ||
160 | if (null === $node->getNode('else')) { |
|
161 | return false; |
|
162 | } |
|
163 | ||
164 | return true; |
|
165 | } |
|
166 | } |
|
167 |
@@ 81-92 (lines=12) @@ | ||
78 | $compiler->raw(");\n"); |
|
79 | } |
|
80 | ||
81 | private function hasVariablesNode(\Twig_NodeInterface $node) |
|
82 | { |
|
83 | if (!$node->hasNode('variables')) { |
|
84 | return false; |
|
85 | } |
|
86 | ||
87 | if (null === $node->getNode('variables')) { |
|
88 | return false; |
|
89 | } |
|
90 | ||
91 | return true; |
|
92 | } |
|
93 | } |
|
94 |
@@ 281-292 (lines=12) @@ | ||
278 | $compiler->isTemplateName = false; |
|
279 | } |
|
280 | ||
281 | private function hasParentNode(\Twig_NodeInterface $node) |
|
282 | { |
|
283 | if (!$node->hasNode('parent')) { |
|
284 | return false; |
|
285 | } |
|
286 | ||
287 | if (null === $node->getNode('parent')) { |
|
288 | return false; |
|
289 | } |
|
290 | ||
291 | return true; |
|
292 | } |
|
293 | } |
|
294 |