From e4995175a47ea255ef4e5fc1d158cab937f70b9c Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Tue, 11 Aug 2020 14:07:53 +0300 Subject: [PATCH] FIR IDE: fix idea-frontend-fir testdata --- .../testData/memberScopeByFqName/Int.txt | 70 +++++++++++++++++++ .../memberScopeByFqName/MutableList.txt | 23 ++++++ .../memberScopeByFqName/java.lang.String.txt | 66 +++++++++++++++++ .../symbolsByFqName/fileWalkDirectionEnum.txt | 3 + .../testData/symbolsByPsi/classMembes.kt | 1 + .../testData/symbolsByPsi/function.kt | 1 + .../symbolsByPsi/functionWithTypeParams.kt | 1 + .../testData/symbolsByPsi/implicitReturn.kt | 1 + 8 files changed, 166 insertions(+) diff --git a/idea/idea-frontend-fir/testData/memberScopeByFqName/Int.txt b/idea/idea-frontend-fir/testData/memberScopeByFqName/Int.txt index 295ad78bcef..1b7f023e309 100644 --- a/idea/idea-frontend-fir/testData/memberScopeByFqName/Int.txt +++ b/idea/idea-frontend-fir/testData/memberScopeByFqName/Int.txt @@ -9,6 +9,7 @@ KtFirFunctionSymbol: modality: FINAL name: and origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -22,6 +23,7 @@ KtFirFunctionSymbol: modality: FINAL name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -35,6 +37,7 @@ KtFirFunctionSymbol: modality: FINAL name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -48,6 +51,7 @@ KtFirFunctionSymbol: modality: FINAL name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -61,6 +65,7 @@ KtFirFunctionSymbol: modality: OPEN name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -74,6 +79,7 @@ KtFirFunctionSymbol: modality: FINAL name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -87,6 +93,7 @@ KtFirFunctionSymbol: modality: FINAL name: compareTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -100,6 +107,7 @@ KtFirFunctionSymbol: modality: FINAL name: dec origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -113,6 +121,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -126,6 +135,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -139,6 +149,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -152,6 +163,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -165,6 +177,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -178,6 +191,7 @@ KtFirFunctionSymbol: modality: FINAL name: div origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -191,6 +205,7 @@ KtFirFunctionSymbol: modality: FINAL name: inc origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -204,6 +219,7 @@ KtFirFunctionSymbol: modality: FINAL name: inv origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -217,6 +233,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -230,6 +247,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -243,6 +261,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -256,6 +275,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -269,6 +289,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -282,6 +303,7 @@ KtFirFunctionSymbol: modality: FINAL name: minus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -295,6 +317,7 @@ KtFirFunctionSymbol: modality: FINAL name: or origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -308,6 +331,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -321,6 +345,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -334,6 +359,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -347,6 +373,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -360,6 +387,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -373,6 +401,7 @@ KtFirFunctionSymbol: modality: FINAL name: plus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -386,6 +415,7 @@ KtFirFunctionSymbol: modality: FINAL name: rangeTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/ranges/IntRange typeParameters: [] @@ -399,6 +429,7 @@ KtFirFunctionSymbol: modality: FINAL name: rangeTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/ranges/IntRange typeParameters: [] @@ -412,6 +443,7 @@ KtFirFunctionSymbol: modality: FINAL name: rangeTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/ranges/LongRange typeParameters: [] @@ -425,6 +457,7 @@ KtFirFunctionSymbol: modality: FINAL name: rangeTo origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/ranges/IntRange typeParameters: [] @@ -438,6 +471,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -451,6 +485,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -464,6 +499,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -477,6 +513,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -490,6 +527,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -503,6 +541,7 @@ KtFirFunctionSymbol: modality: FINAL name: rem origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -516,6 +555,7 @@ KtFirFunctionSymbol: modality: FINAL name: shl origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -529,6 +569,7 @@ KtFirFunctionSymbol: modality: FINAL name: shr origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -542,6 +583,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -555,6 +597,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -568,6 +611,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -581,6 +625,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -594,6 +639,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -607,6 +653,7 @@ KtFirFunctionSymbol: modality: FINAL name: times origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -620,6 +667,7 @@ KtFirFunctionSymbol: modality: OPEN name: toByte origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Byte typeParameters: [] @@ -633,6 +681,7 @@ KtFirFunctionSymbol: modality: OPEN name: toChar origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Char typeParameters: [] @@ -646,6 +695,7 @@ KtFirFunctionSymbol: modality: OPEN name: toDouble origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Double typeParameters: [] @@ -659,6 +709,7 @@ KtFirFunctionSymbol: modality: OPEN name: toFloat origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Float typeParameters: [] @@ -672,6 +723,7 @@ KtFirFunctionSymbol: modality: OPEN name: toInt origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -685,6 +737,7 @@ KtFirFunctionSymbol: modality: OPEN name: toLong origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Long typeParameters: [] @@ -698,6 +751,7 @@ KtFirFunctionSymbol: modality: OPEN name: toShort origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Short typeParameters: [] @@ -711,6 +765,7 @@ KtFirFunctionSymbol: modality: FINAL name: unaryMinus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -724,6 +779,7 @@ KtFirFunctionSymbol: modality: FINAL name: unaryPlus origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -737,6 +793,7 @@ KtFirFunctionSymbol: modality: FINAL name: ushr origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -750,6 +807,7 @@ KtFirFunctionSymbol: modality: FINAL name: xor origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -763,6 +821,7 @@ KtFirFunctionSymbol: modality: OPEN name: equals origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -776,6 +835,7 @@ KtFirFunctionSymbol: modality: OPEN name: hashCode origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -789,7 +849,17 @@ KtFirFunctionSymbol: modality: OPEN name: toString origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] valueParameters: [] + +KtFirClassOrObjectSymbol: + classId: kotlin/Int.Companion + classKind: COMPANION_OBJECT + modality: FINAL + name: Companion + origin: LIBRARY + symbolKind: MEMBER + typeParameters: [] diff --git a/idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.txt b/idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.txt index 6db4fb22e38..4c8926cfdb6 100644 --- a/idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.txt +++ b/idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.txt @@ -9,6 +9,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: add origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -22,6 +23,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: add origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Unit typeParameters: [] @@ -35,6 +37,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: addAll origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -48,6 +51,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: addAll origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -61,6 +65,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: clear origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Unit typeParameters: [] @@ -74,6 +79,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: listIterator origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/collections/MutableListIterator typeParameters: [] @@ -87,6 +93,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: listIterator origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/collections/MutableListIterator typeParameters: [] @@ -100,6 +107,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: remove origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -113,6 +121,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: removeAll origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -126,6 +135,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: removeAt origin: LIBRARY + receiverType: null symbolKind: MEMBER type: E typeParameters: [] @@ -139,6 +149,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: retainAll origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -152,6 +163,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: set origin: LIBRARY + receiverType: null symbolKind: MEMBER type: E typeParameters: [] @@ -165,6 +177,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: subList origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/collections/MutableList typeParameters: [] @@ -178,6 +191,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: contains origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -191,6 +205,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: containsAll origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -204,6 +219,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: get origin: LIBRARY + receiverType: null symbolKind: MEMBER type: E typeParameters: [] @@ -217,6 +233,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: indexOf origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -230,6 +247,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: isEmpty origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -243,6 +261,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: iterator origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/collections/MutableIterator typeParameters: [] @@ -256,6 +275,7 @@ KtFirFunctionSymbol: modality: ABSTRACT name: lastIndexOf origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -280,6 +300,7 @@ KtFirFunctionSymbol: modality: OPEN name: equals origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -293,6 +314,7 @@ KtFirFunctionSymbol: modality: OPEN name: hashCode origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -306,6 +328,7 @@ KtFirFunctionSymbol: modality: OPEN name: toString origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] diff --git a/idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.txt b/idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.txt index 35ba4177e32..d65bea95258 100644 --- a/idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.txt +++ b/idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.txt @@ -25,6 +25,7 @@ KtFirFunctionSymbol: modality: OPEN name: hash32 origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -46,6 +47,7 @@ KtFirFunctionSymbol: modality: OPEN name: length origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -70,6 +72,7 @@ KtFirFunctionSymbol: modality: OPEN name: isEmpty origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -83,6 +86,7 @@ KtFirFunctionSymbol: modality: OPEN name: charAt origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Char typeParameters: [] @@ -96,6 +100,7 @@ KtFirFunctionSymbol: modality: OPEN name: codePointAt origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -109,6 +114,7 @@ KtFirFunctionSymbol: modality: OPEN name: codePointBefore origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -122,6 +128,7 @@ KtFirFunctionSymbol: modality: OPEN name: codePointCount origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -135,6 +142,7 @@ KtFirFunctionSymbol: modality: OPEN name: offsetByCodePoints origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -148,6 +156,7 @@ KtFirFunctionSymbol: modality: OPEN name: getChars origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Unit typeParameters: [] @@ -161,6 +170,7 @@ KtFirFunctionSymbol: modality: OPEN name: getChars origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Unit typeParameters: [] @@ -174,6 +184,7 @@ KtFirFunctionSymbol: modality: OPEN name: getBytes origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Unit typeParameters: [] @@ -187,6 +198,7 @@ KtFirFunctionSymbol: modality: OPEN name: getBytes origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/ByteArray typeParameters: [] @@ -200,6 +212,7 @@ KtFirFunctionSymbol: modality: OPEN name: getBytes origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/ByteArray typeParameters: [] @@ -213,6 +226,7 @@ KtFirFunctionSymbol: modality: OPEN name: getBytes origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/ByteArray typeParameters: [] @@ -226,6 +240,7 @@ KtFirFunctionSymbol: modality: OPEN name: equals origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -239,6 +254,7 @@ KtFirFunctionSymbol: modality: OPEN name: contentEquals origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -252,6 +268,7 @@ KtFirFunctionSymbol: modality: OPEN name: contentEquals origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -265,6 +282,7 @@ KtFirFunctionSymbol: modality: OPEN name: equalsIgnoreCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -278,6 +296,7 @@ KtFirFunctionSymbol: modality: OPEN name: compareTo origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -291,6 +310,7 @@ KtFirFunctionSymbol: modality: OPEN name: compareToIgnoreCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -304,6 +324,7 @@ KtFirFunctionSymbol: modality: OPEN name: regionMatches origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -317,6 +338,7 @@ KtFirFunctionSymbol: modality: OPEN name: regionMatches origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -330,6 +352,7 @@ KtFirFunctionSymbol: modality: OPEN name: startsWith origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -343,6 +366,7 @@ KtFirFunctionSymbol: modality: OPEN name: startsWith origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -356,6 +380,7 @@ KtFirFunctionSymbol: modality: OPEN name: endsWith origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -369,6 +394,7 @@ KtFirFunctionSymbol: modality: OPEN name: hashCode origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -382,6 +408,7 @@ KtFirFunctionSymbol: modality: OPEN name: indexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -395,6 +422,7 @@ KtFirFunctionSymbol: modality: OPEN name: indexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -408,6 +436,7 @@ KtFirFunctionSymbol: modality: OPEN name: indexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -421,6 +450,7 @@ KtFirFunctionSymbol: modality: OPEN name: indexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -434,6 +464,7 @@ KtFirFunctionSymbol: modality: OPEN name: indexOfSupplementary origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -447,6 +478,7 @@ KtFirFunctionSymbol: modality: OPEN name: lastIndexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -460,6 +492,7 @@ KtFirFunctionSymbol: modality: OPEN name: lastIndexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -473,6 +506,7 @@ KtFirFunctionSymbol: modality: OPEN name: lastIndexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -486,6 +520,7 @@ KtFirFunctionSymbol: modality: OPEN name: lastIndexOf origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -499,6 +534,7 @@ KtFirFunctionSymbol: modality: OPEN name: lastIndexOfSupplementary origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] @@ -512,6 +548,7 @@ KtFirFunctionSymbol: modality: OPEN name: substring origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -525,6 +562,7 @@ KtFirFunctionSymbol: modality: OPEN name: substring origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -538,6 +576,7 @@ KtFirFunctionSymbol: modality: OPEN name: subSequence origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/CharSequence typeParameters: [] @@ -551,6 +590,7 @@ KtFirFunctionSymbol: modality: OPEN name: concat origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -564,6 +604,7 @@ KtFirFunctionSymbol: modality: OPEN name: replace origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -577,6 +618,7 @@ KtFirFunctionSymbol: modality: OPEN name: replace origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -590,6 +632,7 @@ KtFirFunctionSymbol: modality: OPEN name: matches origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -603,6 +646,7 @@ KtFirFunctionSymbol: modality: OPEN name: contains origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/Boolean typeParameters: [] @@ -616,6 +660,7 @@ KtFirFunctionSymbol: modality: OPEN name: replaceFirst origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -629,6 +674,7 @@ KtFirFunctionSymbol: modality: OPEN name: replaceAll origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -642,6 +688,7 @@ KtFirFunctionSymbol: modality: OPEN name: split origin: JAVA + receiverType: null symbolKind: MEMBER type: ft!>, kotlin/Array!>> typeParameters: [] @@ -655,6 +702,7 @@ KtFirFunctionSymbol: modality: OPEN name: split origin: JAVA + receiverType: null symbolKind: MEMBER type: ft!>, kotlin/Array!>> typeParameters: [] @@ -668,6 +716,7 @@ KtFirFunctionSymbol: modality: OPEN name: toLowerCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -681,6 +730,7 @@ KtFirFunctionSymbol: modality: OPEN name: toLowerCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -694,6 +744,7 @@ KtFirFunctionSymbol: modality: OPEN name: toUpperCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -707,6 +758,7 @@ KtFirFunctionSymbol: modality: OPEN name: toUpperCase origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -720,6 +772,7 @@ KtFirFunctionSymbol: modality: OPEN name: trim origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -733,6 +786,7 @@ KtFirFunctionSymbol: modality: OPEN name: toString origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -746,6 +800,7 @@ KtFirFunctionSymbol: modality: OPEN name: toCharArray origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/CharArray typeParameters: [] @@ -759,6 +814,7 @@ KtFirFunctionSymbol: modality: OPEN name: intern origin: JAVA + receiverType: null symbolKind: MEMBER type: kotlin/String typeParameters: [] @@ -772,7 +828,17 @@ KtFirFunctionSymbol: modality: ABSTRACT name: get origin: LIBRARY + receiverType: null symbolKind: MEMBER type: kotlin/Char typeParameters: [] valueParameters: [KtFirFunctionValueParameterSymbol(index)] + +KtFirClassOrObjectSymbol: + classId: java/lang/String.CaseInsensitiveComparator + classKind: CLASS + modality: OPEN + name: CaseInsensitiveComparator + origin: JAVA + symbolKind: MEMBER + typeParameters: [] diff --git a/idea/idea-frontend-fir/testData/symbolsByFqName/fileWalkDirectionEnum.txt b/idea/idea-frontend-fir/testData/symbolsByFqName/fileWalkDirectionEnum.txt index 68bfc0c108e..c922a81483b 100644 --- a/idea/idea-frontend-fir/testData/symbolsByFqName/fileWalkDirectionEnum.txt +++ b/idea/idea-frontend-fir/testData/symbolsByFqName/fileWalkDirectionEnum.txt @@ -9,6 +9,7 @@ KtFirFunctionSymbol: modality: FINAL name: listOf origin: LIBRARY + receiverType: null symbolKind: TOP_LEVEL type: kotlin/collections/List typeParameters: [KtFirTypeParameterSymbol(T)] @@ -22,6 +23,7 @@ KtFirFunctionSymbol: modality: FINAL name: listOf origin: LIBRARY + receiverType: null symbolKind: TOP_LEVEL type: kotlin/collections/List typeParameters: [KtFirTypeParameterSymbol(T)] @@ -35,6 +37,7 @@ KtFirFunctionSymbol: modality: FINAL name: listOf origin: LIBRARY + receiverType: null symbolKind: TOP_LEVEL type: kotlin/collections/List typeParameters: [KtFirTypeParameterSymbol(T)] diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/classMembes.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/classMembes.kt index a33e9320aae..b53a6431a87 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/classMembes.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/classMembes.kt @@ -24,6 +24,7 @@ KtFirFunctionSymbol: modality: FINAL name: x origin: SOURCE + receiverType: null symbolKind: MEMBER type: kotlin/Int typeParameters: [] diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt index 2be231e9926..4c2786fbd44 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/function.kt @@ -17,6 +17,7 @@ KtFirFunctionSymbol: modality: FINAL name: foo origin: SOURCE + receiverType: null symbolKind: TOP_LEVEL type: kotlin/Unit typeParameters: [] diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt index 966b6cbe619..55165d537da 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/functionWithTypeParams.kt @@ -21,6 +21,7 @@ KtFirFunctionSymbol: modality: FINAL name: foo origin: SOURCE + receiverType: null symbolKind: TOP_LEVEL type: kotlin/Unit typeParameters: [KtFirTypeParameterSymbol(X)] diff --git a/idea/idea-frontend-fir/testData/symbolsByPsi/implicitReturn.kt b/idea/idea-frontend-fir/testData/symbolsByPsi/implicitReturn.kt index 138808c0d01..c1284225ab7 100644 --- a/idea/idea-frontend-fir/testData/symbolsByPsi/implicitReturn.kt +++ b/idea/idea-frontend-fir/testData/symbolsByPsi/implicitReturn.kt @@ -10,6 +10,7 @@ KtFirFunctionSymbol: modality: FINAL name: foo origin: SOURCE + receiverType: null symbolKind: TOP_LEVEL type: kotlin/Int typeParameters: []