private function HamlParser::addChildren in Sassy 7
* Adds children to a node if the current line has children. *
Parameters
HamlNode the node to add children to: * @param array line to test
2 calls to HamlParser::addChildren()
- HamlParser::buildTree in phamlp/
haml/ HamlParser.php - * Builds a parse tree under the parent node. *
- HamlParser::parseCode in phamlp/
haml/ HamlParser.php - * Parse code *
File
- phamlp/
haml/ HamlParser.php, line 494
Class
- HamlParser
- HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml
Code
private function addChildren($node, $line) {
if ($node instanceof HamlFilterNode) {
$this->inFilter = true;
}
if ($this
->hasChild($line, $this->inFilter)) {
$this
->buildTree($node);
if ($node instanceof HamlFilterNode) {
$this->inFilter = false;
}
}
}