You are here

public function SassPropertyNode::inNamespace in Sassy 7.3

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

Returns a value indicating if this node is in a namespace

Return value

boolean true if this node is in a property namespace, false if not

1 call to SassPropertyNode::inNamespace()
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.

File

phpsass/tree/SassPropertyNode.php, line 129

Class

SassPropertyNode
SassPropertyNode class. Represents a CSS property. @package PHamlP @subpackage Sass.tree

Code

public function inNamespace() {
  $parent = $this->parent;
  do {
    if ($parent instanceof SassPropertyNode) {
      return true;
    }
    $parent = $parent->parent;
  } while (is_object($parent));
  return false;
}