Class | Sass::Script::Tree::Node |
In: |
lib/sass/script/tree/node.rb
|
Parent: | Object |
The abstract superclass for SassScript parse tree nodes.
Use \{perform} to evaluate a parse tree.
css_variable_warning | [RW] |
The warning that this node should emit if it executes in a way that‘s
not safe for a CSS variable value.
This is `nil` if this is not in a CSS variable value. @return [Sass::Script::CssVariableWarning] |
filename | [RW] |
The file name of the document on which this node appeared.
@return [String] |
line | [RW] |
The line of the document on which this node appeared.
@return [Integer] |
options | [R] |
The options hash for this node.
@return [{Symbol => Object}] |
source_range | [RW] |
The source range in the document on which this node appeared.
@return [Sass::Source::Range] |
Returns a deep clone of this node. The child nodes are cloned, but options are not.
@return [Node]
Forces any division operations with number literals in this expression to do real division, rather than returning strings.
Sets the options hash for this node, as well as for all child nodes. See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
@param options [{Symbol => Object}] The options
Evaluates the node.
\{perform} shouldn‘t be overridden directly; instead, override \{_perform}.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value] The SassScript object that is the value of the SassScript
Returns the text of this SassScript expression.
@options opts :quote [String]
The preferred quote style for quoted strings. If `:none`, strings are always emitted unquoted.
@return [String]
Evaluates this node. Note that all {Sass::Script::Value} objects created within this method should have their \{options} attribute set, probably via \{opts}.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value] The SassScript object that is the value of the SassScript @see perform
Sets the \{options} field on the given value and returns it.
@param value [Sass::Script::Value] @return [Sass::Script::Value]