public function SassDirectiveNode::parse in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassDirectiveNode.php \SassDirectiveNode::parse()
Parse this node.
Parameters
SassContext the context in which this node is parsed:
Return value
array the parsed node
File
- phpsass/
tree/ SassDirectiveNode.php, line 44
Class
- SassDirectiveNode
- SassDirectiveNode class. Represents a CSS directive. @package PHamlP @subpackage Sass.tree
Code
public function parse($context) {
$this->token->source = $this->script
->evaluate($this->token->source, $context)->value;
$this->children = $this
->parseChildren($context);
return array(
$this,
);
}