You are here

public function SassNode::inSassScriptDirective in Sassy 7

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

* Returns a value indicating whether this node is in a SassScript directive *

Parameters

boolean true if this node is in a SassScript directive, false if not:

File

phamlp/sass/tree/SassNode.php, line 281

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

public function inSassScriptDirective() {
  return $this->parent instanceof SassEachNode || $this->parent->parent instanceof SassEachNode || $this->parent instanceof SassForNode || $this->parent->parent instanceof SassForNode || $this->parent instanceof SassIfNode || $this->parent->parent instanceof SassIfNode || $this->parent instanceof SassWhileNode || $this->parent->parent instanceof SassWhileNode;
}