public function SassDebugNode::parse in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassDebugNode.php \SassDebugNode::parse()
* Parse this node. * This raises an error. *
Return value
array An empty array
File
- phamlp/
sass/ tree/ SassDebugNode.php, line 66
Class
- SassDebugNode
- SassDebugNode class. Represents a Sass @debug or @warn directive. @package PHamlP @subpackage Sass.tree
Code
public function parse($context) {
if (!$this->warning || $this->root->parser->quiet === false) {
set_error_handler(array(
$this,
'errorHandler',
));
trigger_error($this->warning ? $this
->interpolate(Phamlp::t('sass', $this->message, $this->params), $context) : $this
->evaluate(Phamlp::t('sass', $this->message, $this->params), $context)
->toString());
restore_error_handler();
}
return array();
}