You are here

public function SassNode::addWarning in Sassy 7.3

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

Adds a warning to the node.

Parameters

string warning message:

array line:

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

File

phpsass/tree/SassNode.php, line 326

Class

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

Code

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