public function SassVariableNode::parse in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassVariableNode.php \SassVariableNode::parse()
* Parse this node. * Sets the variable in the current context. *
Parameters
SassContext the context in which this node is parsed: * @return array the parsed node - an empty array
File
- phamlp/
sass/ tree/ SassVariableNode.php, line 72
Class
- SassVariableNode
- SassVariableNode class. Represents a variable. @package PHamlP @subpackage Sass.tree
Code
public function parse($context) {
if (!$this->isDefault || !$context
->hasVariable($this->name)) {
$context
->setVariable($this->name, $this
->evaluate($this->value, $context));
}
$this
->parseChildren($context);
// Parse any warnings
return array();
}