Module Sass::Tree
In: lib/sass/tree/comment_node.rb
lib/sass/tree/node.rb
lib/sass/tree/extend_node.rb
lib/sass/tree/for_node.rb
lib/sass/tree/warn_node.rb
lib/sass/tree/debug_node.rb
lib/sass/tree/import_node.rb
lib/sass/tree/while_node.rb
lib/sass/tree/mixin_def_node.rb
lib/sass/tree/root_node.rb
lib/sass/tree/if_node.rb
lib/sass/tree/mixin_node.rb
lib/sass/tree/directive_node.rb
lib/sass/tree/rule_node.rb
lib/sass/tree/prop_node.rb
lib/sass/tree/variable_node.rb
Haml::Util Engine Color SyntaxError UnitConversionError StandardError AbstractSequence CommaSequence Sequence SimpleSequence Simple Parent Universal Class Negation Id Pseudo Attribute Interpolation Element Node Operation Literal UnaryOperation StringInterpolation Funcall Variable Interpolation Lexer CssLexer Number String Bool Parser Parser CssParser EvaluationContext StaticParser SassParser CssParser Node DebugNode IfNode CommentNode ForNode PropNode MixinNode DirectiveNode VariableNode RootNode WarnNode ExtendNode RuleNode MixinDefNode WhileNode Enumerable ImportNode Merb::BootLoader MerbBootLoader Repl CSS Environment Rack StalenessChecker lib/sass/repl.rb lib/sass/css.rb lib/sass/environment.rb lib/sass/error.rb lib/sass/engine.rb lib/sass/selector/simple_sequence.rb lib/sass/selector/abstract_sequence.rb lib/sass/selector/sequence.rb lib/sass/selector/comma_sequence.rb lib/sass/selector/simple.rb lib/sass/selector.rb Selector lib/sass/script/css_parser.rb lib/sass/script/lexer.rb lib/sass/script/color.rb lib/sass/script/string.rb lib/sass/script/unary_operation.rb lib/sass/script/variable.rb lib/sass/script/funcall.rb lib/sass/script/string_interpolation.rb lib/sass/script/operation.rb lib/sass/script/bool.rb lib/sass/script/parser.rb lib/sass/script/node.rb lib/sass/script/literal.rb lib/sass/script/interpolation.rb lib/sass/script/css_lexer.rb lib/sass/script/number.rb lib/sass/script/functions.rb Functions Script lib/sass/scss/sass_parser.rb lib/sass/scss/static_parser.rb lib/sass/scss/parser.rb lib/sass/scss/css_parser.rb ScriptParser ScriptLexer RX SCSS Files Callbacks lib/sass/tree/while_node.rb lib/sass/tree/if_node.rb lib/sass/tree/mixin_def_node.rb lib/sass/tree/debug_node.rb lib/sass/tree/root_node.rb lib/sass/tree/for_node.rb lib/sass/tree/import_node.rb lib/sass/tree/prop_node.rb lib/sass/tree/node.rb lib/sass/tree/comment_node.rb lib/sass/tree/extend_node.rb lib/sass/tree/mixin_node.rb lib/sass/tree/warn_node.rb lib/sass/tree/directive_node.rb lib/sass/tree/rule_node.rb lib/sass/tree/variable_node.rb Tree lib/sass/plugin/rack.rb lib/sass/plugin/staleness_checker.rb lib/sass/plugin/merb.rb Plugin Sass dot/m_61_0.png

A namespace for nodes in the Sass parse tree.

The Sass parse tree has three states: dynamic, static Sass, and static CSS.

When it‘s first parsed, a Sass document is in the dynamic state. It has nodes for mixin definitions and `@for` loops and so forth, in addition to nodes for CSS rules and properties. Nodes that only appear in this state are called **dynamic nodes**.

{Tree::Node#perform} returns a static Sass tree, which is different. It still has nodes for CSS rules and properties but it doesn‘t have any dynamic-generation-related nodes. The nodes in this state are in the same structure as the Sass document: rules and properties are nested beneath one another. Nodes that can be in this state or in the dynamic state are called **static nodes**.

{Tree::Node#cssize} then returns a static CSS tree. This is like a static Sass tree, but the structure exactly mirrors that of the generated CSS. Rules and properties can‘t be nested beneath one another in this state.

Finally, {Tree::Node#to_s} can be called on a static CSS tree to get the actual CSS code as a string.

Classes and Modules

Class Sass::Tree::CommentNode
Class Sass::Tree::DebugNode
Class Sass::Tree::DirectiveNode
Class Sass::Tree::ExtendNode
Class Sass::Tree::ForNode
Class Sass::Tree::IfNode
Class Sass::Tree::ImportNode
Class Sass::Tree::MixinDefNode
Class Sass::Tree::MixinNode
Class Sass::Tree::Node
Class Sass::Tree::PropNode
Class Sass::Tree::RootNode
Class Sass::Tree::RuleNode
Class Sass::Tree::VariableNode
Class Sass::Tree::WarnNode
Class Sass::Tree::WhileNode

[Validate]