You are here

public function SassReturnNode::parse in Sassy 7.3

Parse this node. Set passed arguments and any optional arguments not passed to their defaults, then render the children of the return definition.

Parameters

SassContext the context in which this node is parsed:

Return value

array the parsed node

File

phpsass/tree/SassReturnNode.php, line 52

Class

SassReturnNode
SassReturnNode class. Represents a Return. @package PHamlP @subpackage Sass.tree

Code

public function parse($pcontext) {
  $return = $this;
  $context = new SassContext($pcontext);
  $statement = $this->statement;
  $parent = $this->parent->parent->parser;
  $script = $this->parent->parent->script;
  $lexer = $script->lexer;
  $result = $script
    ->evaluate($statement, $context);
  throw new SassReturn($result);
}