PHP Class SassRootNode

Also the root node of a document.
Inheritance: extends SassNode
Afficher le fichier Open project: richthegeek/phpsass Class Usage Examples

Méthodes publiques

Свойство Type Description
$extend_parent Extend_parent - for resolving extends across imported files.
$extenders extenders for this tree in the form extendee=>extender
$parser SassParser
$renderer the renderer for this node
$script SassScript parser

Méthodes publiques

Méthode Description
__construct ( SassParser $parser ) : SassRootNode Root SassNode constructor.
extend ( $extendee, $selectors ) : mixed | null
getExtenders ( )
isa ( $line ) Returns a value indicating if the line represents this type of node.
parse ( SassContext $context ) : SassNode Parses this node and its children into the render tree.
render ( mixed $context = null ) : string Render this node.

Method Details

__construct() public méthode

Root SassNode constructor.
public __construct ( SassParser $parser ) : SassRootNode
$parser SassParser Sass parser
Résultat SassRootNode

extend() public méthode

public extend ( $extendee, $selectors ) : mixed | null
$extendee
$selectors
Résultat mixed | null

getExtenders() public méthode

public getExtenders ( )

isa() public static méthode

Child classes must override this method.
public static isa ( $line )

parse() public méthode

Dynamic nodes are evaluated, files imported, etc. Only static nodes for rendering are in the resulting tree.
public parse ( SassContext $context ) : SassNode
$context SassContext the context in which this node is parsed
Résultat SassNode root node of the render tree

render() public méthode

Render this node.
public render ( mixed $context = null ) : string
$context mixed
Résultat string the rendered node

Property Details

$extend_parent public_oe property

Extend_parent - for resolving extends across imported files.
public $extend_parent

$extenders public_oe property

extenders for this tree in the form extendee=>extender
public $extenders

$parser public_oe property

public SassParser $parser
Résultat SassParser

$renderer public_oe property

the renderer for this node
public $renderer

$script public_oe property

SassScript parser
public $script