public function compile($node)
{
$this->visit($node);
$code = ltrim(implode('', $this->buffer));
if ($this->jsPhpize) {
$code = $this->createCode($this->jsPhpize->compileDependencies()) . $code;
}
if ($this->phpSingleLine) {
// Separate in several lines to get a useable line number in case of an error occurs
$code = str_replace(array('<?php', '?>'), array("<?php\n", "\n" . $this->closingTag()), $code);
}
return $code;
}