$this->expr = $expr;
}
+ public function __toString()
+ {
+ return get_class($this).'('.$this->expr.')';
+ }
+
public function compile($compiler)
{
$compiler->addDebugInfo($this);
{
$repr = array(get_class($this).'(');
foreach ($this->elements as $name => $node) {
- foreach (explode("\n", ' '.$name.' => '.$node) as $line) {
- $repr[] = ' '.$line;
+ foreach (explode("\n", '\''.$name.'\' => '.$node) as $line) {
+ $repr[] = ' '.$line;
}
}
$repr[] = ')';
public function __toString()
{
- return get_class($this).'('.$this->value.')';
+ return get_class($this).'(\''.$this->value.'\')';
}
public function compile($compiler)
public function __toString()
{
- return get_class($this).'('.$this->name.')';
+ return get_class($this).'(\''.$this->name.'\')';
}
public function compile($compiler)
public function __toString()
{
- return get_class($this).'('.$this->expr.')';
+ return get_class($this).'('.$this->expr.($this->sandboxed ? ', sandboxed' : '').($this->variables ? ', '.$this->variables : '').')';
}
public function getNodes()
public function __toString()
{
- return get_class($this).'('.$this->data.')';
+ return get_class($this).'(\''.str_replace("\n", '\n', $this->data).'\')';
}
public function compile($compiler)