* Determines if a node is a class declaration. * If className is provided, node must also match class name.
(node, className)
| 17 | * If className is provided, node must also match class name. |
| 18 | */ |
| 19 | function isClassNameDeclaration(node, className) { |
| 20 | const isClassDeclaration = node.type === 'ExportNamedDeclaration' && node.declaration.type === 'ClassDeclaration'; |
| 21 | if (className) { |
| 22 | return isClassDeclaration && node.declaration.id.name === className; |
| 23 | } |
| 24 | return isClassDeclaration; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Determines if a node is an typescript enum declaration. |
no outgoing calls
no test coverage detected