FIR2IR: use information about callable reference adaptation from resolve

This commit is contained in:
Mikhail Glukhikh
2021-02-11 11:28:20 +03:00
parent dcad9c84fc
commit 8bab208322
23 changed files with 169 additions and 88 deletions
@@ -535,6 +535,7 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
resolvedCallableReference.configure {
+fieldList("inferredTypeArguments", coneKotlinTypeType)
+field("mappedArguments", callableReferenceMappedArgumentsType)
}
delegateFieldReference.configure {
@@ -86,3 +86,5 @@ val declarationAttributesType = generatedType("declarations", "FirDeclarationAtt
val annotationResolveStatusType = generatedType("expressions", "FirAnnotationResolveStatus")
val exhaustivenessStatusType = generatedType("expressions", "ExhaustivenessStatus")
val callableReferenceMappedArgumentsType = type("fir.resolve.calls", "CallableReferenceMappedArguments")