K2: implement BUILDER_INFERENCE_STUB_RECEIVER

#KT-59369 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-11-28 23:30:11 +01:00
committed by Space Team
parent 5e5e5b8b9f
commit 0ed6256bcc
21 changed files with 162 additions and 70 deletions
@@ -869,6 +869,9 @@ object FirErrors {
val PRE_RELEASE_CLASS by error1<PsiElement, String>()
val IR_WITH_UNSTABLE_ABI_COMPILED_CLASS by error1<PsiElement, String>()
// Builder inference
val BUILDER_INFERENCE_STUB_RECEIVER by error2<PsiElement, Name, Name>()
init {
RootDiagnosticRendererFactory.registerFactory(FirErrorsDefaultMessages)
}
@@ -571,6 +571,7 @@ val FIR_NON_SUPPRESSIBLE_ERROR_NAMES: Set<String> = setOf(
"INCOMPATIBLE_CLASS",
"PRE_RELEASE_CLASS",
"IR_WITH_UNSTABLE_ABI_COMPILED_CLASS",
"BUILDER_INFERENCE_STUB_RECEIVER",
"OVERRIDE_CANNOT_BE_STATIC",
"JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION",
"JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION",