\SassRootNode
SassRootNode class.
Also the root node of a document.
Synopsis
class SassRootNode
extends SassNode
{
- // members
- public SassScriptParser $script;
- public SassRenderer $renderer;
- public SassParser $parser;
- public array $extenders = ;
- // Inherited members from SassNode
- public SassNode $parent;
- public SassNode $root;
- public array $children;
- public $token;
- // methods
- public SassNode __construct()
- public SassNode parse()
- public string render()
- public void extend()
- public void getExtenders()
- public static void isa()
- // Inherited methods from SassNode
- public SassNode __construct()
- public mixed __get()
- public SassNode __set()
- public void __clone()
- public array hasParent()
- public array getParent()
- public SassNode addChild()
- public boolean hasChildren()
- public array getChildren()
- public boolean isChildOf()
- public SassNode getLastChild()
- public integer getLevel()
- public string getSource()
- public boolean getDebug_info()
- public string getLine()
- public boolean getLine_numbers()
- public string getFilename()
- public SassParser getParser()
- public string getPropertySyntax()
- public SassScriptParser getScript()
- public SassRenderer getRenderer()
- public string getStyle()
- public void inDirective()
- public void inSassScriptDirective()
- public SassLiteral evaluate()
- public string interpolate()
- public void addWarning()
- public array parseChildren()
- public static boolean isa()
Hierarchy
Extends
Members
public
- $children — array
- $extenders — array
- $parent — SassNode
- $parser — SassParser
- $renderer — SassRenderer
- $root — SassNode
- $script — SassScriptParser
- $token —
Methods
public
- __construct() — Root SassNode constructor.
- extend()
- getExtenders()
- isa() — Returns a value indicating if the line represents this type of node.
- parse() — Parses this node and its children into the render tree.
- render() — Render this node.
Inherited from SassNode
public
- __clone() — Resets children when cloned
- __get() — Getter.
- __set() — Setter.
- addChild() — Adds a child to this node.
- addWarning() — Adds a warning to the node.
- evaluate() — Evaluates a SassScript expression.
- getChildren() — Returns the node's children
- getDebug_info() — Returns the debug_info option setting for this node
- getFilename() — Returns the filename for this node
- getLastChild() — Returns the last child node of this node.
- getLevel() — Returns the level of this node.
- getLine() — Returns the line number for this node
- getLine_numbers() — Returns the line_numbers option setting for this node
- getParent() — Returns the node's parent
- getParser() — Returns the Sass parser.
- getPropertySyntax() — Returns the property syntax being used.
- getRenderer() — Returns the renderer.
- getScript() — Returns the SassScript parser.
- getSource() — Returns the source for this node
- getStyle() — Returns the render style of the document tree.
- hasChildren() — Returns a value indicating if this node has children
- hasParent() — Return a value indicating if this node has a parent
- inDirective() — Returns a value indicating whether this node is in a directive
- inSassScriptDirective() — Returns a value indicating whether this node is in a SassScript directive
- interpolate() — Replace interpolated SassScript contained in '#{}' with the parsed value.
- isChildOf() — Returns a value indicating if this node is a child of the passed node.
- isa() — Returns a value indicating if the token represents this type of node.
- parseChildren() — Parse the children of the node.