function hasJSDocThisTag(node, sourceCode) {
    const jsdocComment = sourceCode.getJSDocComment(node);

    if (jsdocComment && thisTagPattern.test(jsdocComment.value)) {
        return true;
    }

    // Checks `@this` in its leading comments for callbacks,
    // because callbacks don't have its JSDoc comment.
    // e.g.
    //     sinon.test(/* @this sinon.Sandbox */function() { this.spy(); });
    return sourceCode.getCommentsBefore(node).some(comment => thisTagPattern.test(comment.value));
}
function hasJSDocThisTag(node, sourceCode) {
    const jsdocComment = sourceCode.getJSDocComment(node);

    if (jsdocComment && thisTagPattern.test(jsdocComment.value)) {
        return true;
    }

    // Checks `@this` in its leading comments for callbacks,
    // because callbacks don't have its JSDoc comment.
    // e.g.
    //     sinon.test(/* @this sinon.Sandbox */function() { this.spy(); });
    return sourceCode.getCommentsBefore(node).some(comment => thisTagPattern.test(comment.value));
}
function hasJSDocThisTag ( node , sourceCode ) { const jsdocComment = sourceCode . getJSDocComment ( node ) ; if ( jsdocComment && thisTagPattern . test ( jsdocComment . value ) ) { return true ; } // Checks `@this` in its leading comments for callbacks, // because callbacks don't have its JSDoc comment. // e.g. //     sinon.test(/* @this sinon.Sandbox */function() { this.spy(); }); return sourceCode . getCommentsBefore ( node ) . some ( comment => thisTagPattern . test ( comment . value ) ) ; }
Checks whether or not a node has a `@this` tag in its comments.
@param {ASTNode} node - A node to check.
@param {SourceCode} sourceCode - A SourceCode instance to get comments.
@returns {boolean} Whether or not the node has a `@this` tag in its comments.
Checks whether or not a node has a
Checks if a node has a JSDoc This tag