lib/infer-angular.js
function inferAngular(ast) {
  return esprimaTools.breadthFirst(ast)
    .map(getAnnotationCandidates)
    .filter(Boolean)
    .map(followReference)
    .filter(Boolean);
}
function inferAngular(ast) {
  return esprimaTools.breadthFirst(ast)
    .map(getAnnotationCandidates)
    .filter(Boolean)
    .map(followReference)
    .filter(Boolean);
}
Find functions that are obvious angular entities.
@param {object} ast An esprima syntax tree