You are here

protected function SassNode::evaluate in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassNode.php \SassNode::evaluate()

* Evaluates a SassScript expression. *

Parameters

string expression to evaluate: * @param SassContext the context in which the expression is evaluated * @return SassLiteral value of parsed expression

2 calls to SassNode::evaluate()
SassMixinNode::parse in phamlp/sass/tree/SassMixinNode.php
* Parse this node. * Set passed arguments and any optional arguments not passed to their * defaults, then render the children of the mixin definition. *
SassVariableNode::parse in phamlp/sass/tree/SassVariableNode.php
* Parse this node. * Sets the variable in the current context. *

File

phamlp/sass/tree/SassNode.php, line 298

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

protected function evaluate($expression, $context, $x = null) {
  $context->node = $this;
  return $this->script
    ->evaluate($expression, $context, $x);
}