You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
418 B
21 lines
418 B
/** |
|
* @param {Comment} node |
|
* @returns {boolean} |
|
*/ |
|
const isJSDocComment = (node) => |
|
node.type === 'Block' && |
|
node.value.charAt(0) === '*' && |
|
node.value.charAt(1) !== '*' |
|
|
|
/** |
|
* @param {Comment} node |
|
* @returns {boolean} |
|
*/ |
|
const isBlockComment = (node) => |
|
node.type === 'Block' && |
|
(node.value.charAt(0) !== '*' || node.value.charAt(1) === '*') |
|
|
|
module.exports = { |
|
isJSDocComment, |
|
isBlockComment |
|
}
|
|
|