public function SassWhileNode::__construct in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/tree/SassWhileNode.php \SassWhileNode::__construct()
SassWhileNode constructor.
Parameters
object source token:
Return value
Overrides SassNode::__construct
File
- phpsass/
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;
}