Sha256: a3d2fdae60f949f29c1270c1243632ab34309dd60daba9c5fe8818e907bfa4fd

Contents?: true

Size: 1.35 KB

Versions: 107

Compression:

Stored size: 1.35 KB

Contents

require 'sass/tree/node'

module Sass::Tree
  # A static node representing 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::Tree::Node}s
    # representing `#{}`-interpolation.
    #
    # @return [Array<String, Sass::Script::Tree::Node>]
    attr_accessor :selector

    # The extended selector source range.
    #
    # @return [Sass::Source::Range]
    attr_accessor :selector_source_range

    # Whether the `@extend` is allowed to match no selectors or not.
    #
    # @return [Boolean]
    def optional?; @optional; end

    # @param selector [Array<String, Sass::Script::Tree::Node>]
    #   The CSS selector to extend,
    #   interspersed with {Sass::Script::Tree::Node}s
    #   representing `#{}`-interpolation.
    # @param optional [Boolean] See \{ExtendNode#optional?}
    # @param selector_source_range [Sass::Source::Range] The extended selector source range.
    def initialize(selector, optional, selector_source_range)
      @selector = selector
      @optional = optional
      @selector_source_range = selector_source_range
      super()
    end
  end
end

Version data entries

107 entries across 104 versions & 9 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/extend_node.rb
sass-3.7.4 lib/sass/tree/extend_node.rb
brakeman-4.4.0 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb
sass-3.7.3 lib/sass/tree/extend_node.rb
sass-3.7.2 lib/sass/tree/extend_node.rb
sass-3.7.1 lib/sass/tree/extend_node.rb
sass-3.7.0 lib/sass/tree/extend_node.rb
sass-3.6.0 lib/sass/tree/extend_node.rb