bundles/org.eclipse.orion.client.javascript/web/eslint/lib/utils/source-code.js
function findJSDocComment(comments, line) {

    if (comments) {
        for (var i = comments.length - 1; i >= 0; i--) {
            if (comments[i].type === "Block" && comments[i].value.charAt(0) === "*") {

                if (line - comments[i].loc.end.line <= 1) {
                    return comments[i];
                }
                break;
            }
        }
    }

    return null;
}
function findJSDocComment(comments, line) {

    if (comments) {
        for (var i = comments.length - 1; i >= 0; i--) {
            if (comments[i].type === "Block" && comments[i].value.charAt(0) === "*") {

                if (line - comments[i].loc.end.line <= 1) {
                    return comments[i];
                }
                break;
            }
        }
    }

    return null;
}
function findJSDocComment ( comments , line ) { if ( comments ) { for ( var i = comments . length - 1 ; i >= 0 ; i -- ) { if ( comments [ i ] . type === "Block" && comments [ i ] . value . charAt ( 0 ) === "*" ) { if ( line - comments [ i ] . loc . end . line <= 1 ) { return comments [ i ] ; } break ; } } } return null ; }
Finds a JSDoc comment node in an array of comment nodes.
@param {ASTNode[]} comments The array of comment nodes to search.
@param {int} line Line number to look around
@returns {ASTNode} The node if found, null if not.
@private
Finds a JSDoc comment node in an array of comment nodes .