[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:
committed by
Space Team
parent
adf4f823ae
commit
115d685d91
analysis/analysis-api/testData/components/scopeProvider/importingScopeContext/errorImport.pretty.txt
Vendored
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
|
||||
Vendored
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
|
||||
analysis/analysis-api/testData/components/scopeProvider/importingScopeContext/importAlias.pretty.txt
Vendored
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
class A
|
||||
|
||||
Vendored
+7
-8
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
KtNamedClassOrObjectSymbol:
|
||||
@@ -45,4 +43,5 @@ scopes:
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
callables: 0
|
||||
constructors: 0
|
||||
constructors: 0
|
||||
|
||||
|
||||
Vendored
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
|
||||
Vendored
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
|
||||
+5
-7
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
class A
|
||||
|
||||
Vendored
+7
-8
@@ -2,21 +2,19 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
KtNamedClassOrObjectSymbol:
|
||||
@@ -45,4 +43,5 @@ scopes:
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
callables: 0
|
||||
constructors: 0
|
||||
constructors: 0
|
||||
|
||||
|
||||
Vendored
+5
-7
@@ -2,9 +2,7 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
class A
|
||||
@@ -12,13 +10,13 @@ scopes:
|
||||
fun b()
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
|
||||
Vendored
+7
-8
@@ -2,9 +2,7 @@ implicit receivers:
|
||||
scopes:
|
||||
DefaultStarImportingScope, index = 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 1
|
||||
|
||||
ExplicitStarImportingScope, index = 2
|
||||
ExplicitStarImportingScope, index = 1
|
||||
packages: 0
|
||||
classifiers: 1
|
||||
KtNamedClassOrObjectSymbol:
|
||||
@@ -64,14 +62,15 @@ scopes:
|
||||
visibility: Public
|
||||
constructors: 0
|
||||
|
||||
DefaultSimpleImportingScope, index = 2
|
||||
|
||||
DefaultSimpleImportingScope, index = 3
|
||||
|
||||
DefaultSimpleImportingScope, index = 4
|
||||
PackageMemberScope, index = 4
|
||||
|
||||
PackageMemberScope, index = 5
|
||||
|
||||
ExplicitSimpleImportingScope, index = 6
|
||||
ExplicitSimpleImportingScope, index = 5
|
||||
packages: 0
|
||||
classifiers: 0
|
||||
callables: 0
|
||||
constructors: 0
|
||||
constructors: 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user