UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

14 lines (13 loc) 421 B
/** * @dgService ExportDefaultDeclarationNodeMatcher * @returns {String|Null} code name from node */ module.exports = function ExportDefaultDeclarationNodeMatcherFactory (codeNameService) { /** * @param {Node} node AST node to process * @returns {String|Null} code name from node */ return function ExportDefaultDeclarationNodeMatcher (node) { return codeNameService.find(node.right) || null; }; };