UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

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