[FIR] Fix ambiguity of Throws and other std annotations importing

Including `SharedImmutable` and `ThreadLocal`

Simplify code, remove `DefaultImportPriority.KOTLIN_THROWS`

Introduce `FirNativeClassMapper`
This commit is contained in:
Ivan Kochurkin
2023-11-14 17:22:13 +01:00
committed by Space Team
parent adf4f823ae
commit 115d685d91
151 changed files with 656 additions and 931 deletions
@@ -2,32 +2,30 @@ Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirDefaultSimpleImportingScope
Element 2
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirDefaultSimpleImportingScope
Element 5
Scope: FirPackageMemberScope
Element 6
Element 5
Scope: FirExplicitSimpleImportingScope
Element 7
Element 6
Scope: FirMemberTypeParameterScope
Classifiers:
FirTypeParameterSymbol T
Element 8
Element 7
Scope: FirLocalScope
Properties:
FirValueParameterSymbol param: R|kotlin/String|
Element 9
Element 8
Context receivers:
FirNamedFunctionSymbol context(R|test/ContextReceiver|)
public final fun <T> R|test/Receiver|.test(param: R|kotlin/String|): R|T|
Type: test.ContextReceiver
Label: ContextReceiver
Element 10
Element 9
Implicit receiver:
FirNamedFunctionSymbol context(R|test/ContextReceiver|)
public final fun <T> R|test/Receiver|.test(param: R|kotlin/String|): R|T|
@@ -48,4 +46,4 @@ FILE: [ResolvedTo(IMPORTS)] wholeDeclaration_fun.kt
}
context(R|test/ContextReceiver|)
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> R|test/Receiver|.test([ResolvedTo(BODY_RESOLVE)] param: R|kotlin/String|): R|T| {
}
}