source, $matches); if (empty($matches)) { return new SassBoolean('false'); } } /** * Parse this node. * Set passed arguments and any optional arguments not passed to their * defaults, then render the children of the return definition. * @param SassContext the context in which this node is parsed * @return array the parsed node */ public function parse($pcontext) { $return = $this; $context = new SassContext($pcontext); $children = array(); foreach ($context->getContent() as $child) { $child->parent = $this->parent; $ctx = new SassContext($pcontext->parent); $ctx->variables = $pcontext->variables; $children = array_merge($children, $child->parse($ctx)); } return $children; } /** * Contents a value indicating if the token represents this type of node. * @param object token * @return boolean true if the token represents this type of node, false if not */ public static function isa($token) { return $token->source[0] === self::NODE_IDENTIFIER; } }