public function SassWhileNode::__construct in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassWhileNode.php \SassWhileNode::__construct()
* SassWhileNode constructor. *
Parameters
object source token: * @return SassWhileNode
Overrides SassNode::__construct
File
- phamlp/
sass/ tree/ SassWhileNode.php, line 38
Class
- SassWhileNode
- SassWhileNode class. Represents a Sass @while loop and a Sass @do loop. @package PHamlP @subpackage Sass.tree
Code
public function __construct($token) {
parent::__construct($token);
preg_match(self::MATCH, $token->source, $matches);
$this->expression = $matches[self::EXPRESSION];
$this->isDo = $matches[self::LOOP] === SassWhileNode::IS_DO;
}