code: function parseFile(filename, code) {
      if (/directive/.test(code)) {
        return ngDirectiveParser.parseAst(filename, esprima.parse(code));
      }
      return [];
    }
docs: Parses the given source
  @returns {Directive[]}