PHP Class SassImportNode

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

Public Methods

Method Description
__construct ( object $token, $parent ) : SassImportNode SassImportNode.
parse ( SassContext $context ) : array Parse this node.

Method Details

__construct() public method

SassImportNode.
public __construct ( object $token, $parent ) : SassImportNode
$token object source token
return SassImportNode

parse() public method

If the node is a CSS import return the CSS import rule. Else returns the rendered tree for the file.
public parse ( SassContext $context ) : array
$context SassContext the context in which this node is parsed
return array the parsed node