FIR IDE: fix testdata in idea-frontend-fir

This commit is contained in:
Ilya Kirillov
2020-08-25 15:36:46 +03:00
parent 30ac80a506
commit 78bb1f1076
5 changed files with 23 additions and 20 deletions
@@ -288,7 +288,7 @@ KtFirPropertySymbol:
modality: ABSTRACT modality: ABSTRACT
name: size name: size
origin: LIBRARY origin: LIBRARY
receiverType: kotlin/Int receiverType: null
symbolKind: MEMBER symbolKind: MEMBER
type: kotlin/Int type: kotlin/Int
@@ -63,7 +63,7 @@ KtFirPropertySymbol:
modality: ABSTRACT modality: ABSTRACT
name: length name: length
origin: LIBRARY origin: LIBRARY
receiverType: kotlin/Int receiverType: null
symbolKind: MEMBER symbolKind: MEMBER
type: kotlin/Int type: kotlin/Int
@@ -836,12 +836,3 @@ KtFirFunctionSymbol:
type: kotlin/Char type: kotlin/Char
typeParameters: [] typeParameters: []
valueParameters: [KtFirFunctionValueParameterSymbol(index)] valueParameters: [KtFirFunctionValueParameterSymbol(index)]
KtFirClassOrObjectSymbol:
classIdIfNonLocal: java/lang/String.CaseInsensitiveComparator
classKind: CLASS
modality: OPEN
name: CaseInsensitiveComparator
origin: JAVA
symbolKind: MEMBER
typeParameters: []
@@ -1,6 +1,6 @@
class A { class A {
val x: Int = 10 val x: Int = 10
val Int.y = this val Int.y get() = this
} }
// SYMBOLS: // SYMBOLS:
@@ -11,10 +11,16 @@ KtFirPropertySymbol:
modality: FINAL modality: FINAL
name: x name: x
origin: SOURCE origin: SOURCE
receiverType: kotlin/Int receiverType: null
symbolKind: MEMBER symbolKind: MEMBER
type: kotlin/Int type: kotlin/Int
KtFirPropertyGetterSymbol:
isDefault: false
modality: FINAL
origin: SOURCE
type: kotlin/Int
KtFirPropertySymbol: KtFirPropertySymbol:
callableIdIfNonLocal: A.y callableIdIfNonLocal: A.y
isExtension: true isExtension: true
@@ -22,9 +28,9 @@ KtFirPropertySymbol:
modality: FINAL modality: FINAL
name: y name: y
origin: SOURCE origin: SOURCE
receiverType: A receiverType: kotlin/Int
symbolKind: MEMBER symbolKind: MEMBER
type: A type: kotlin/Int
KtFirClassOrObjectSymbol: KtFirClassOrObjectSymbol:
classIdIfNonLocal: A classIdIfNonLocal: A
@@ -1,5 +1,5 @@
val x: Int = 10 val x: Int = 10
val Int.y = this val Int.y get() = this
// SYMBOLS: // SYMBOLS:
KtFirPropertySymbol: KtFirPropertySymbol:
@@ -9,10 +9,16 @@ KtFirPropertySymbol:
modality: FINAL modality: FINAL
name: x name: x
origin: SOURCE origin: SOURCE
receiverType: kotlin/Int receiverType: null
symbolKind: TOP_LEVEL symbolKind: TOP_LEVEL
type: kotlin/Int type: kotlin/Int
KtFirPropertyGetterSymbol:
isDefault: false
modality: FINAL
origin: SOURCE
type: kotlin/Int
KtFirPropertySymbol: KtFirPropertySymbol:
callableIdIfNonLocal: y callableIdIfNonLocal: y
isExtension: true isExtension: true
@@ -20,6 +26,6 @@ KtFirPropertySymbol:
modality: FINAL modality: FINAL
name: y name: y
origin: SOURCE origin: SOURCE
receiverType: ERROR CLASS: Unresolved this@null receiverType: kotlin/Int
symbolKind: TOP_LEVEL symbolKind: TOP_LEVEL
type: ERROR CLASS: Unresolved this@null type: kotlin/Int
@@ -12,7 +12,7 @@ KtFirPropertySymbol:
modality: FINAL modality: FINAL
name: a name: a
origin: SOURCE origin: SOURCE
receiverType: kotlin/Int receiverType: null
symbolKind: MEMBER symbolKind: MEMBER
type: kotlin/Int type: kotlin/Int