public function SassVariableNode::parse in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/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 value
array the parsed node - an empty array
File
- phpsass/
tree/ SassVariableNode.php, line 73
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();
}