[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
@@ -32,6 +32,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -94,6 +94,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -52,6 +52,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 7
DefaultStarImportingScope, index = 8
@@ -667,6 +667,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 7
DefaultStarImportingScope, index = 8
@@ -51,6 +51,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 7
DefaultStarImportingScope, index = 8
@@ -667,7 +667,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 7
@@ -58,7 +58,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -283,6 +283,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 9
@@ -32,6 +32,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -94,6 +94,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -29,7 +29,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -41,7 +41,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -23,7 +23,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -23,7 +23,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -93,7 +93,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 11
@@ -94,7 +94,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 11
@@ -953,7 +953,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 11
@@ -893,6 +893,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 12
@@ -63,7 +63,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 10
@@ -105,7 +105,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 10
@@ -50,6 +50,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 10
@@ -147,6 +147,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 10
@@ -48,7 +48,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 7
@@ -400,7 +400,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 7
@@ -55,6 +55,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 9
@@ -376,6 +376,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 9
@@ -32,7 +32,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -94,7 +94,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 5
@@ -72,7 +72,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 10
@@ -384,7 +384,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 10
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 10
@@ -45,7 +45,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -66,7 +66,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -154,7 +154,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 19
DefaultStarImportingScope, index = 20
DefaultStarImportingScope, index = 19
@@ -1125,7 +1125,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 19
DefaultStarImportingScope, index = 20
DefaultStarImportingScope, index = 19
@@ -74,7 +74,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 11
@@ -277,7 +277,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 12
DefaultStarImportingScope, index = 11
@@ -74,6 +74,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 12
@@ -277,6 +277,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 11
DefaultStarImportingScope, index = 11
DefaultStarImportingScope, index = 12
@@ -57,7 +57,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -279,7 +279,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -31,6 +31,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 6
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 7
@@ -79,6 +79,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 6
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 7
@@ -58,6 +58,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 10
@@ -285,6 +285,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 9
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 10
@@ -40,6 +40,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 7
DefaultStarImportingScope, index = 8
@@ -160,6 +160,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 7
DefaultStarImportingScope, index = 7
DefaultStarImportingScope, index = 8
@@ -26,6 +26,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -105,6 +105,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 5
DefaultStarImportingScope, index = 5
DefaultStarImportingScope, index = 6
@@ -32,6 +32,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 6
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 7
@@ -99,6 +99,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 6
DefaultStarImportingScope, index = 6
DefaultStarImportingScope, index = 7
@@ -58,7 +58,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 9
DefaultStarImportingScope, index = 8
@@ -305,6 +305,5 @@ scopes:
callables: 0
constructors: 0
DefaultSimpleImportingScope, index = 8
DefaultStarImportingScope, index = 8
DefaultStarImportingScope, index = 9