Class Sass::Tree::Visitors::Extend
In: lib/sass/tree/visitors/extend.rb
Parent: Sass::Tree::Visitors::Base

A visitor for performing selector inheritance on a static CSS tree.

Destructively modifies the tree.

Methods

new   visit   visit   visit_children   visit_rule  

Public Class methods

@param root [Tree::Node] The root node of the tree to visit. @param extends [Sass::Util::SubsetMap{Selector::Simple =>

                                      Sass::Tree::Visitors::Cssize::Extend}]
  The extensions to perform on this tree.

@return [Object] The return value of \{visit} for the root node.

Protected Instance methods

If an exception is raised, this adds proper metadata to the backtrace.

Keeps track of the current parent directives.

Applies the extend to a single rule‘s selector.

[Validate]