protected function compileCode(&$code) { $this->value->compileCode($code); $code .= '['; if ($this->index !== null) { $this->index->compileCode($code); } $code .= ']'; }