| Index: Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/RequiredThisAnnotationChecker.java
|
| diff --git a/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/RequiredThisAnnotationChecker.java b/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/RequiredThisAnnotationChecker.java
|
| index 490438c3a98d505449b1511d9ddd07788c1b3c2a..191ad535c06c80bf7dca667a503bdcdd11845100 100644
|
| --- a/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/RequiredThisAnnotationChecker.java
|
| +++ b/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/RequiredThisAnnotationChecker.java
|
| @@ -37,7 +37,7 @@ public final class RequiredThisAnnotationChecker extends ContextTrackingChecker
|
| if (!functionsRequiringThisAnnotation.contains(function)) {
|
| AstNode functionNameNode = AstUtil.getFunctionNameNode(functionNode);
|
| if (functionNameNode != null && !function.isTopLevelFunction() &&
|
| - AstUtil.hasThisAnnotation(functionNode, getContext())) {
|
| + hasAnnotationTag(functionNode, "this")) {
|
| reportErrorAtNodeStart(
|
| functionNameNode,
|
| "@this annotation found for function not referencing 'this'");
|
| @@ -45,7 +45,7 @@ public final class RequiredThisAnnotationChecker extends ContextTrackingChecker
|
| return;
|
| }
|
| AstNode functionNameNode = AstUtil.getFunctionNameNode(functionNode);
|
| - if (functionNameNode != null && !AstUtil.hasThisAnnotation(functionNode, getContext())) {
|
| + if (functionNameNode != null && !hasAnnotationTag(functionNode, "this")) {
|
| reportErrorAtNodeStart(
|
| functionNameNode,
|
| "@this annotation is required for functions referencing 'this'");
|
|
|