(ast: AST)
| 4088 | |
| 4089 | /** @internal */ |
| 4090 | export function getConstructorDescriptor(ast: AST): ConstructorDescriptor | undefined { |
| 4091 | if (!isDeclaration(ast)) return undefined |
| 4092 | const getDescriptor = ast.annotations?.[InternalAnnotations.CONSTRUCTOR_ANNOTATION_KEY] |
| 4093 | return Predicate.isFunction(getDescriptor) ? getDescriptor(ast.typeParameters) : undefined |
| 4094 | } |
| 4095 | |
| 4096 | /** |
| 4097 | * Returns all annotations from the AST node. |
nothing calls this directly
no outgoing calls
no test coverage detected