(node)
| 73 | } |
| 74 | |
| 75 | function hasDecoratorsBeforeExport(node) { |
| 76 | if ( |
| 77 | node.type !== "ExportDefaultDeclaration" && |
| 78 | node.type !== "ExportNamedDeclaration" && |
| 79 | node.type !== "DeclareExportDeclaration" |
| 80 | ) { |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | const decorators = node.declaration?.decorators; |
| 85 | |
| 86 | return isNonEmptyArray(decorators) && hasSameLocStart(node, decorators[0]); |
| 87 | } |
| 88 | |
| 89 | export { |
| 90 | printClassMemberDecorators, |
no test coverage detected
searching dependent graphs…