| @@ 73-86 (lines=14) @@ | ||
| 70 | /** |
|
| 71 | * @param Nodes\Code $node |
|
| 72 | */ |
|
| 73 | protected function visitCode(Code $node) |
|
| 74 | { |
|
| 75 | $this->visitCodeOpening($node); |
|
| 76 | ||
| 77 | if (isset($node->block)) { |
|
| 78 | $this->indents++; |
|
| 79 | $this->visit($node->block); |
|
| 80 | $this->indents--; |
|
| 81 | ||
| 82 | if (!$node->buffer) { |
|
| 83 | $this->buffer($this->createCode('}')); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| @@ 16-28 (lines=13) @@ | ||
| 13 | /** |
|
| 14 | * @param Nodes\CaseNode $node |
|
| 15 | */ |
|
| 16 | protected function visitCasenode(CaseNode $node) |
|
| 17 | { |
|
| 18 | $this->switchNode = $node; |
|
| 19 | $this->visit($node->block); |
|
| 20 | ||
| 21 | if (!isset($this->switchNode)) { |
|
| 22 | unset($this->switchNode); |
|
| 23 | $this->indents--; |
|
| 24 | ||
| 25 | $code = $this->createCode('}'); |
|
| 26 | $this->buffer($code); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param string $expression |
|