function hasJSDocThisTag(node,sourceCode){var 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.getComments(node).leading.some(function(comment){return 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.