You are here

public function SassRuleNode::parse in Sassy 7

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

* Parse this node and its children into static nodes. *

Parameters

SassContext the context in which this node is parsed: * @return array the parsed node and its children

File

phamlp/sass/tree/SassRuleNode.php, line 84

Class

SassRuleNode
SassRuleNode class. Represents a CSS rule. @package PHamlP @subpackage Sass.tree

Code

public function parse($context) {
  $node = clone $this;
  $node->selectors = $this
    ->resolveSelectors($context);
  $node->children = $this
    ->parseChildren($context);
  return array(
    $node,
  );
}