@@ -6,6 +6,15 @@ var n = require('babel-types'),
6
6
isJSDocComment = require ( '../../lib/is_jsdoc_comment' ) ,
7
7
parse = require ( '../../lib/parse' ) ;
8
8
9
+ /**
10
+ * Given an AST node, try to find a comment in front of it that
11
+ * has a `lends` tag, and if it has that, return the tag, split by
12
+ * .s.
13
+ *
14
+ * @private
15
+ * @param {Object } node AST node
16
+ * @returns {string|undefined } lends identifier, if any
17
+ */
9
18
function findLendsIdentifiers ( node ) {
10
19
if ( ! node || ! node . leadingComments ) {
11
20
return ;
@@ -44,6 +53,7 @@ function extractIdentifiers(path) {
44
53
45
54
/**
46
55
* Count leading identifiers that refer to a module export (`exports` or `module.exports`).
56
+ * @private
47
57
* @param {Object } comment parsed comment
48
58
* @param {Array<string> } identifiers array of identifier names
49
59
* @returns {number } number of identifiers referring to a module export (0, 1 or 2)
@@ -65,6 +75,7 @@ function countModuleIdentifiers(comment, identifiers) {
65
75
* tags from the placement of JSDoc
66
76
* annotations within a file
67
77
*
78
+ * @private
68
79
* @param {Object } comment parsed comment
69
80
* @returns {Object } comment with membership inferred
70
81
*/
0 commit comments