lib/scss_lint/sass/tree.rb in scss_lint-0.38.0 vs lib/scss_lint/sass/tree.rb in scss_lint-0.39.0
- old
+ new
@@ -102,11 +102,11 @@
end
end
class IfNode
def children
- concat_expr_lists super, expr
+ concat_expr_lists super, expr, self.else
end
end
class MixinDefNode
def children
@@ -161,8 +161,19 @@
end
class WhileNode
def children
concat_expr_lists super, expr
+ end
+ end
+
+ class ImportNode
+ # Compares the names and values of two imports.
+ #
+ # @param other [Object] The object to compare with
+ # @return [Boolean] Whether or not this node and the other object
+ # are the same
+ def ==(other)
+ self.class == other.class && imported_filename == other.imported_filename && super
end
end
end