public function SassMixinNode::__construct in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassMixinNode.php \SassMixinNode::__construct()
* SassMixinDefinitionNode constructor. *
Parameters
object source token: * @return SassMixinNode
Overrides SassNode::__construct
File
- phamlp/
sass/ tree/ SassMixinNode.php, line 39
Class
- SassMixinNode
- SassMixinNode class. Represents a Mixin. @package PHamlP @subpackage Sass.tree
Code
public function __construct($token) {
parent::__construct($token);
preg_match(self::MATCH, $token->source, $matches);
$this->name = $matches[self::NAME];
if (isset($matches[self::ARGS])) {
$this->args = SassScriptFunction::extractArgs($matches[self::ARGS]);
}
}