We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd0fb7 commit 9a38896Copy full SHA for 9a38896
src/iterateJsdoc.js
@@ -76,11 +76,14 @@ const curryUtils = (
76
77
if (greatGrandParentValue === 'class') {
78
const classJsdocNode = sourceCode.getJSDocComment(greatGrandParent);
79
- const indent = _.repeat(' ', classJsdocNode.loc.start.column);
80
- const classJsdoc = parseComment(classJsdocNode, indent);
81
82
- if (jsdocUtils.hasTag(classJsdoc, tagName)) {
83
- return true;
+ if (classJsdocNode) {
+ const indent = _.repeat(' ', classJsdocNode.loc.start.column);
+ const classJsdoc = parseComment(classJsdocNode, indent);
+
84
+ if (jsdocUtils.hasTag(classJsdoc, tagName)) {
85
+ return true;
86
+ }
87
}
88
89
0 commit comments