You are here

public function SassNode::addWarning in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassNode.php \SassNode::addWarning()

* Adds a warning to the node. *

Parameters

string warning message: * @param array line

2 calls to SassNode::addWarning()
SassPropertyNode::__construct in phamlp/sass/tree/SassPropertyNode.php
* SassPropertyNode constructor. *
SassVariableNode::__construct in phamlp/sass/tree/SassVariableNode.php
* SassVariableNode constructor. *

File

phamlp/sass/tree/SassNode.php, line 319

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

public function addWarning($message, $params = array()) {
  $warning = new SassDebugNode($this->token, $message, $params);
  $this
    ->addChild($warning);
}