You are here

public function SassRuleNode::parse in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/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 value

array the parsed node and its children

File

phpsass/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,
  );
}