You are here

public static function SassVariableNode::isa in Sassy 7

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

* Returns a value indicating if the token represents this type of node. *

Parameters

object token: * @return boolean true if the token represents this type of node, false if not

Overrides SassNode::isa

1 call to SassVariableNode::isa()
SassParser::getNode in phamlp/sass/SassParser.php
* Creates and returns the next SassNode. * The tpye of SassNode depends on the content of the SassToken. *

File

phamlp/sass/tree/SassVariableNode.php, line 87

Class

SassVariableNode
SassVariableNode class. Represents a variable. @package PHamlP @subpackage Sass.tree

Code

public static function isa($token) {
  return $token->source[0] === self::SASS_IDENTIFIER || $token->source[0] === self::SCSS_IDENTIFIER;
}