'use babel'

/* @flow */

export function getParents() {
  const parents = []

  return parents
}

'use babel'

/* @flow */

export function getParents(files: Map<string, Array<string>>): Map<string, Array<string>> {
  const parents = new Map()

  for (const [filePath, imports] of files) {
    for (const entry of imports) {
      let entryParents = parents.get(entry)
      if (!entryParents) {
        parents.set(entry, entryParents = [])
      }
      entryParents.push(filePath)
    }
  }

  return parents
}

Add a proper getParents helper
:new: Add a proper getParents helper
