[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:
+5
-1
@@ -266,7 +266,11 @@ public class DebugSymbolRenderer(
|
||||
|
||||
withIndent {
|
||||
appendLine().append("psi: ")
|
||||
renderValue(call.psi?.javaClass?.simpleName, renderSymbolsFully = false)
|
||||
val psi =
|
||||
if (call.psi?.containingKtFile?.isCompiled == true) {
|
||||
null
|
||||
} else call.psi
|
||||
renderValue(psi?.javaClass?.simpleName, renderSymbolsFully = false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-43
@@ -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
|
||||
Vendored
+2
-4
@@ -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
|
||||
+1
-2
@@ -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
|
||||
Reference in New Issue
Block a user