@@ 20-31 (lines=12) @@ | ||
17 | /** |
|
18 | * @{inheritDoc} |
|
19 | */ |
|
20 | public function compile(Buffer $buffer) |
|
21 | { |
|
22 | $buffer->raw('array('); |
|
23 | $i = 0; |
|
24 | foreach ($this->nodes as $child) { |
|
25 | if ($i++ > 0) { |
|
26 | $buffer->raw(', '); |
|
27 | } |
|
28 | $child->compile($buffer); |
|
29 | } |
|
30 | $buffer->raw(')'); |
|
31 | } |
|
32 | } |
|
33 |
@@ 36-47 (lines=12) @@ | ||
33 | /** |
|
34 | * @{inheritDoc} |
|
35 | */ |
|
36 | public function compile(Buffer $buffer) |
|
37 | { |
|
38 | $buffer->raw('$z->lookup('); |
|
39 | foreach ($this->nodes as $i => $node) { |
|
40 | if ($i > 0) { |
|
41 | $buffer->raw(', '); |
|
42 | $buffer->raw('array('); |
|
43 | } |
|
44 | $node->compile($buffer); |
|
45 | } |
|
46 | $buffer->raw('))'); |
|
47 | } |
|
48 | } |
|
49 |