KTIJ-28167 [AA] Add a note about type aliases to the findAvailableConstructors function

This commit is contained in:
Roman Golyshev
2024-01-04 15:28:24 +01:00
committed by Space Team
parent df8c6c694a
commit 8feb4def4d
@@ -294,6 +294,8 @@ private class FirShorteningContext(val analysisSession: KtFirAnalysisSession) {
* Finds constructors with a given [targetClassName] available within the [scope], including SAM constructors
* (which are not explicitly declared in the class).
*
* Includes type-aliased constructors too if typealias confirms to the [targetClassName].
*
* Do not confuse with constructors **declared** in the scope (see [FirScope.processDeclaredConstructors]).
*/
private fun findAvailableConstructors(scope: FirScope, targetClassName: Name): List<FirFunctionSymbol<*>> {