def parse(contents, filename="", options={})
      @doc_processor.filename = @filename = filename

      parse_js_or_scss(contents, filename, options).map do |docset|
        expand(docset)
      end.flatten.map do |docset|
        merge(docset)
      end
    end
def parse(contents, filename="", options={})
      @doc_processor.filename = @filename = filename

      parse_js_or_scss(contents, filename, options).map do |docset|
        expand(docset)
      end.flatten.map do |docset|
        merge(docset)
      end
    end
Parses file into final docset that can be fed into Aggregator