/** * Parse this node. * * @param Context $context the context in which this node is parsed * @return array parsed child nodes */ public function parse($context) { $children = []; if ($this->variable && $this->in) { $context = new Context($context); list($in, $sep) = \PHPSass\Script\Literals\SassList::_parse_list($this->in, 'auto', TRUE, $context); foreach ($in as $var) { $context->setVariable($this->variable, $var); $children = array_merge($children, $this->parseChildren($context)); } } $context->merge(); return $children; }