@es-joy/jsdoccomment
Advanced tools
Comparing version 0.25.0 to 0.26.0
# CHANGES for `@es-joy/jsdoccomment` | ||
## 0.26.0 | ||
- feat(`getJSDocComment`): allow function to detect comments just preceding a | ||
parenthesized expression (these have no special AST but their tokens | ||
have to be overpassed) | ||
## 0.25.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@es-joy/jsdoccomment", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"author": "Brett Zamir <brettz9@yahoo.com>", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
@@ -163,2 +163,14 @@ /** | ||
) { | ||
let token = node; | ||
do { | ||
token = sourceCode.getTokenBefore(token, {includeComments: true}); | ||
} while (token.type === 'Punctuator' && token.value === '('); | ||
if (token.type === 'Block') { | ||
return node; | ||
} | ||
if (sourceCode.getCommentsBefore(node).length) { | ||
return node; | ||
} | ||
while ( | ||
@@ -165,0 +177,0 @@ !sourceCode.getCommentsBefore(parent).length && |
Sorry, the diff of this file is not supported yet
74372
1494