lib/sass/tree/rule_node.rb in sass-3.1.5 vs lib/sass/tree/rule_node.rb in sass-3.1.6

- old
+ new

@@ -48,10 +48,17 @@ # This is only set in a CSS tree. # # @return [Boolean] attr_accessor :group_end + # The stack trace. + # This is only readable in a CSS tree as it is written during the perform step + # and only when the :trace_selectors option is set. + # + # @return [Array<String>] + attr_accessor :stack_trace + # @param rule [Array<String, Sass::Script::Node>] # The CSS rule. See \{#rule} def initialize(rule) merged = Sass::Util.merge_adjacent_strings(rule) @rule = Sass::Util.strip_string_array(merged) @@ -111,14 +118,9 @@ # # @return [{#to_s => #to_s}] def debug_info {:filename => filename && ("file://" + URI.escape(File.expand_path(filename))), :line => self.line} - end - - # Returns sub nodes that are not tree children. - def subnodes - rule.select{|r| r.is_a?(Sass::Script::Node)} end private def try_to_parse_non_interpolated_rules