require 'sass/tree/node' module Sass::Tree # A static node reprenting an `@extend` directive. # # @see Sass::Tree class ExtendNode < Node # The parsed selector after interpolation has been resolved. # Only set once {Tree::Visitors::Perform} has been run. # # @return [Selector::CommaSequence] attr_accessor :resolved_selector # The CSS selector to extend, interspersed with {Sass::Script::Node}s # representing `#{}`-interpolation. # # @return [Array] attr_accessor :selector # @param selector [Array] # The CSS selector to extend, # interspersed with {Sass::Script::Node}s # representing `#{}`-interpolation. def initialize(selector) @selector = selector super() end # Disables this `@extend` due to it being inside a directive. def disable! @disabled = true end # Whether this `@extend` is disabled due to it being inside a directive. # # @return [Boolean] def disabled? @disabled end end end