Module: Sass::Tree

Defined in:
lib/sass/tree/node.rb,
lib/sass/css.rb,
lib/sass/tree/if_node.rb,
lib/sass/tree/for_node.rb,
lib/sass/tree/prop_node.rb,
lib/sass/tree/root_node.rb,
lib/sass/tree/rule_node.rb,
lib/sass/tree/debug_node.rb,
lib/sass/tree/mixin_node.rb,
lib/sass/tree/while_node.rb,
lib/sass/tree/import_node.rb,
lib/sass/tree/comment_node.rb,
lib/sass/tree/variable_node.rb,
lib/sass/tree/directive_node.rb,
lib/sass/tree/mixin_def_node.rb

Overview

A namespace for nodes in the Sass parse tree.

The Sass parse tree has two states. When it's first parsed, it has nodes for mixin definitions and for loops and so forth, in addition to nodes for CSS rules and properties.

However, Node#perform returns a different sort of tree. This tree maps more closely to the resulting CSS document than it does to the original Sass document. It still has nodes for CSS rules and properties, but it doesn't have any dynamic-generation-related nodes.

Nodes that only appear in the pre-perform state are called dynamic nodes; those that appear in both states are called static nodes.

Defined Under Namespace

Classes: CommentNode, DebugNode, DirectiveNode, ForNode, IfNode, ImportNode, MixinDefNode, MixinNode, Node, PropNode, RootNode, RuleNode, VariableNode, WhileNode