You are here

private function SassRuleNode::hasParentReference in Sassy 7

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

* Determines if there is a parent reference in the selector *

Parameters

string selector: * @return boolean true if there is a parent reference in the selector

1 call to SassRuleNode::hasParentReference()
SassRuleNode::resolveSelectors in phamlp/sass/tree/SassRuleNode.php
* Resolves selectors. * Interpolates SassScript in selectors and resolves any parent references or * appends the parent selectors. *

File

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

Class

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

Code

private function hasParentReference($selector) {
  return $this
    ->parentReferencePos($selector) !== false;
}