| Index: Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/ReturnAnnotationChecker.java
|
| diff --git a/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/ReturnAnnotationChecker.java b/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/ReturnAnnotationChecker.java
|
| index 3b8c300dd79626a03ec90b75721b2ccfa1aa34b8..10803aa7320af3caace0abdd0681ff574127c51f 100644
|
| --- a/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/ReturnAnnotationChecker.java
|
| +++ b/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/ReturnAnnotationChecker.java
|
| @@ -101,7 +101,8 @@ public final class ReturnAnnotationChecker extends ContextTrackingChecker {
|
|
|
| if (isReturningFunction) {
|
| if (!function.hasReturnAnnotation() && isApiFunction) {
|
| - getContext().reportErrorInNode(functionNameNode, 0,
|
| + reportErrorAtNodeStart(
|
| + functionNameNode,
|
| "@return annotation is required for API functions that return value");
|
| }
|
| } else {
|
| @@ -110,7 +111,7 @@ public final class ReturnAnnotationChecker extends ContextTrackingChecker {
|
| if (function.hasReturnAnnotation()
|
| && !isInterfaceFunction
|
| && !throwingFunctions.contains(function)) {
|
| - getContext().reportErrorInNode(functionNameNode, 0,
|
| + reportErrorAtNodeStart(functionNameNode,
|
| "@return annotation found, yet function does not return value");
|
| }
|
| }
|
|
|