function getResultPerAstFile(ast) {
  // Visit AST...
  const transformedEntryResult = [];
  // Do the traverse: https://babeljs.io/docs/en/babel-traverse
  // Inside of ypur traverse function, add when there is a match wrt intended analysis
  transformedEntryResult.push({ matched: 'entry' });
  return transformedEntryResult;
}
This file takes the output of one AST (or 'program'), which
corresponds to one file.
The contents of this function should be designed in such a way that they
can be directly pasted and edited in https://astexplorer.net/
@param {File} ast