({ node, parent }, languageName)
| 74 | ); |
| 75 | } |
| 76 | function hasLanguageComment({ node, parent }, languageName) { |
| 77 | return ( |
| 78 | hasLeadingBlockCommentWithName(node, languageName) || |
| 79 | (isAsConstExpression(parent) && |
| 80 | hasLeadingBlockCommentWithName(parent, languageName)) || |
| 81 | (parent.type === "ExpressionStatement" && |
| 82 | hasLeadingBlockCommentWithName(parent, languageName)) |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | function isAsConstExpression(node) { |
| 87 | return ( |
no test coverage detected
searching dependent graphs…