You are here

private function SassRuleNode::hasParentReference in Sassy 7.3

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

Determines if there is a parent reference in the selector

Parameters

string selector:

Return value

boolean true if there is a parent reference in the selector

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

File

phpsass/tree/SassRuleNode.php, line 284

Class

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

Code

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