You are here

public function SassRootNode::parse in Sassy 7

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

* Parses this node and its children into the render tree. * Dynamic nodes are evaluated, files imported, etc. * Only static nodes for rendering are in the resulting tree. *

Parameters

SassContext the context in which this node is parsed: * @return SassNode root node of the render tree

1 call to SassRootNode::parse()
SassRootNode::render in phamlp/sass/tree/SassRootNode.php
* Render this node. *

File

phamlp/sass/tree/SassRootNode.php, line 64

Class

SassRootNode
SassRootNode class. Also the root node of a document. @package PHamlP @subpackage Sass.tree

Code

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