( c: ast.ConstructorDeclaration )
| 556 | * @internal |
| 557 | */ |
| 558 | export const getConstructorDeclarationSignature = ( |
| 559 | c: ast.ConstructorDeclaration |
| 560 | ): string => |
| 561 | pipe( |
| 562 | Option.fromNullishOr(c.compilerNode.body), |
| 563 | Option.match({ |
| 564 | onNone: () => c.getText(), |
| 565 | onSome: (body) => { |
| 566 | const end = body.getStart() - c.getStart() - 1 |
| 567 | return c.getText().substring(0, end) |
| 568 | } |
| 569 | }) |
| 570 | ) |
| 571 | |
| 572 | const getClassDeclarationSignature = (c: ast.ClassDeclaration) => { |
| 573 | const name = c.getName() ?? "" |
no test coverage detected