[AA, LL] use stubs to build deserialized Fir elements in IDE

^KTIJ-24638

Notice on `DebugSymbolRenderer`:
stub based deserializer sets source directly,
but it's available in IDE mode only.
Thus, standalone and IDE tests have different results.
In order to avoid this, sources for compiled code are explicitly ignored

Notice on distinct callables:
for a file which belong to multiple libraries, decompiled code would be build per library.
In order to avoid ambiguity errors for members in that file,
we need to distinct provided elements by origins
failed test from IJ repo:
 FirReferenceResolveWithCrossLibTestGenerated#testSetWithTypeParameters
This commit is contained in:
Anna Kozlova
2023-02-15 14:22:59 +01:00
committed by teamcity
parent 96c15f6c71
commit d59d66e876
41 changed files with 1957 additions and 90 deletions
@@ -1,43 +0,0 @@
KtNamedClassOrObjectSymbol:
annotationsList: []
classIdIfNonLocal: java/lang/String
classKind: CLASS
companionObject: null
contextReceivers: []
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: String
origin: JAVA
superTypes: [
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/Any
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: java/io/Serializable
KtUsualClassType:
annotationsList: []
ownTypeArguments: [
KtFlexibleType:
annotationsList: []
type: kotlin/String!
]
type: kotlin/Comparable<kotlin/String!>
KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/CharSequence
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
getContainingModule: Could not render due to java.util.NoSuchElementException: Collection contains no element matching the predicate.
annotationApplicableTargets: null
deprecationStatus: null
@@ -40,11 +40,9 @@ KtConstructorSymbol:
type: (kotlin/collections/MutableCollection<out E!>..kotlin/collections/Collection<E!>?)
symbolKind: LOCAL
typeParameters: []
getContainingModule: Could not render due to java.util.NoSuchElementException: Collection contains no element matching the predicate.
getContainingModule: KtSdkModule "SDK jdk"
deprecationStatus: null
]
visibility: Public
getContainingModule: Could not render due to java.util.NoSuchElementException: Collection contains no element matching the predicate.
getContainingModule: KtSdkModule "SDK jdk"
deprecationStatus: null
@@ -43,6 +43,5 @@ KtSamConstructorSymbol:
deprecationStatus: null
]
getContainingModule: Could not render due to java.util.NoSuchElementException: Collection contains no element matching the predicate.
getContainingModule: KtSdkModule "SDK jdk"
deprecationStatus: null