lib/ng-directive-parser.js
function parseAst(filename, ast) {
  var directives = [];
  esprimaHelper.traverse(ast, function (node) {
    var calleeExpressionName = esprimaHelper.getCallExpressionName(node);
    if (calleeExpressionName === 'directive') {
      var directiveArguments = node['arguments'] || [];
      if (directiveArguments.length >= 2 && directiveArguments[0].type === 'Literal') {
        directives.push(new Directive(filename, directiveArguments));
      }
    }
  });
  return directives;
}
function parseAst(filename, ast) {
  var directives = [];
  esprimaHelper.traverse(ast, function (node) {
    var calleeExpressionName = esprimaHelper.getCallExpressionName(node);
    if (calleeExpressionName === 'directive') {
      var directiveArguments = node['arguments'] || [];
      if (directiveArguments.length >= 2 && directiveArguments[0].type === 'Literal') {
        directives.push(new Directive(filename, directiveArguments));
      }
    }
  });
  return directives;
}
function parseAst ( filename , ast ) { var directives = [ ] ; esprimaHelper . traverse ( ast , function ( node ) { var calleeExpressionName = esprimaHelper . getCallExpressionName ( node ) ; if ( calleeExpressionName === 'directive' ) { var directiveArguments = node [ 'arguments' ] || [ ] ; if ( directiveArguments . length >= 2 && directiveArguments [ 0 ] . type === 'Literal' ) { directives . push ( new Directive ( filename , directiveArguments ) ) ; } } } ) ; return directives ; }
Parse the given AST

@returns {Directive[]}
Parse the given AST