You are here

public function SassDebugNode::parse in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassDebugNode.php \SassDebugNode::parse()

Parse this node. This raises an error.

Return value

array An empty array

File

phpsass/tree/SassDebugNode.php, line 65

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($this->message, $context) : $this
      ->evaluate($this->message, $context)
      ->toString());
    restore_error_handler();
  }
  return array();
}