You are here

public function SassNode::parseChildren in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassNode.php \SassNode::parseChildren()

Parse the children of the node.

Parameters

SassContext the context in which the children are parsed:

Return value

array the parsed child nodes

9 calls to SassNode::parseChildren()
SassDirectiveNode::parse in phpsass/tree/SassDirectiveNode.php
Parse this node.
SassEachNode::parse in phpsass/tree/SassEachNode.php
Parse this node.
SassForNode::parse in phpsass/tree/SassForNode.php
Parse this node.
SassIfNode::parse in phpsass/tree/SassIfNode.php
Parse this node.
SassPropertyNode::parse in phpsass/tree/SassPropertyNode.php
Parse this node. If the node is a property namespace return all parsed child nodes. If not return the parsed version of this node.

... See full list

File

phpsass/tree/SassNode.php, line 336

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

public function parseChildren($context) {
  $children = array();
  foreach ($this->children as $child) {
    $children = array_merge($children, $child
      ->parse($context));
  }

  // foreach
  return $children;
}