def last_child(node)
      last = node.children.inject(node) do |lowest, child|
        return lowest unless child.respond_to?(:line)
        lowest.line < child.line ? child : lowest
      end

      # In this case, none of the children have associated line numbers or the
      # node has no children at all, so return `nil`.
      return if last == node

      last
    end
def last_child(node)
      last = node.children.inject(node) do |lowest, child|
        return lowest unless child.respond_to?(:line)
        lowest.line < child.line ? child : lowest
      end

      # In this case, none of the children have associated line numbers or the
      # node has no children at all, so return `nil`.
      return if last == node

      last
    end
Gets the child of the node that resides on the lowest line in the file.

 This is necessary due to the fact that our monkey patching of the parse
 tree's {#children} method does not return nodes sorted by their line
 number.

 Returns `nil` if node has no children or no children with associated line
 numbers.

 @param node [Sass::Tree::Node, Sass::Script::Tree::Node]
 @return [Sass::Tree::Node, Sass::Script::Tree::Node]