PHP Class SassMixinNode

Represents a Mixin.
Inheritance: extends SassNode
Mostra file Open project: richthegeek/phpsass Class Usage Examples

Public Methods

Method Description
__construct ( object $token ) : SassMixinNode SassMixinDefinitionNode constructor.
isa ( object $token ) : boolean Returns a value indicating if the token represents this type of node.
parse ( SassContext $pcontext ) : array Parse this node.
resolveSelectors ( SassContext $context ) : array Resolves selectors.

Method Details

__construct() public method

SassMixinDefinitionNode constructor.
public __construct ( object $token ) : SassMixinNode
$token object source token
return SassMixinNode

isa() public static method

Returns a value indicating if the token represents this type of node.
public static isa ( object $token ) : boolean
$token object token
return boolean true if the token represents this type of node, false if not

parse() public method

Set passed arguments and any optional arguments not passed to their defaults, then render the children of the mixin definition.
public parse ( SassContext $pcontext ) : array
$pcontext SassContext the context in which this node is parsed
return array the parsed node

resolveSelectors() public method

Interpolates SassScript in selectors and resolves any parent references or appends the parent selectors.
public resolveSelectors ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
return array