FIR IDE: relocate scope-related test data

This commit is contained in:
Jinseong Jeon
2021-10-23 23:26:54 -07:00
committed by Ilya Kirillov
parent 4266ffa274
commit 700f8ac287
14 changed files with 13 additions and 13 deletions
@@ -0,0 +1,11 @@
fun test(): Int = 3
val testVal: Int = 2
class C {
fun r() {
}
}
interface I
@@ -0,0 +1,104 @@
FILE SYMBOL:
KtFirFileSymbol:
annotationClassIds: []
annotations: []
origin: SOURCE
CALLABLE NAMES:
[test, testVal]
CALLABLE SYMBOLS:
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /test
dispatchType: null
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: test
origin: SOURCE
receiverType: null
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: Public
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /testVal
dispatchType: null
getter: KtFirPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 2
isConst: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: testVal
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
CLASSIFIER NAMES:
[C, I]
CLASSIFIER SYMBOLS:
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: C
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: C
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: I
classKind: INTERFACE
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: ABSTRACT
name: I
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
@@ -0,0 +1,115 @@
FILE SYMBOL:
KtFileSymbol:
annotationClassIds: []
annotations: []
origin: SOURCE
deprecationStatus: null
CALLABLE NAMES:
[test, testVal]
CALLABLE SYMBOLS:
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /test
dispatchType: null
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: test
origin: SOURCE
receiverType: null
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /testVal
dispatchType: null
getter: KtPropertyGetterSymbol(<getter>)
hasBackingField: true
hasGetter: true
hasSetter: false
initializer: 2
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: FINAL
name: testVal
origin: SOURCE
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getTestVal
javaSetterName: null
setterDeprecationStatus: null
CLASSIFIER NAMES:
[C, I]
CLASSIFIER SYMBOLS:
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: C
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: C
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
KtNamedClassOrObjectSymbol:
annotationClassIds: []
annotations: []
classIdIfNonLocal: I
classKind: INTERFACE
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: ABSTRACT
name: I
origin: SOURCE
superTypes: [
[] kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,4 @@
// WITH_RUNTIME
// DO_NOT_CHECK_SYMBOL_RESTORE
// class: kotlin/Int
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
// class: kotlin/collections/MutableList
@@ -0,0 +1,644 @@
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.add
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: add
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.add
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: add
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.addAll
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: addAll
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
KtValueParameterSymbol(elements)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.addAll
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: addAll
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(elements)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.clear
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: clear
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/collections/MutableListIterator<E>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.listIterator
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: listIterator
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/collections/MutableListIterator<E>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.listIterator
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: listIterator
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.remove
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: remove
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.removeAll
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: removeAll
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(elements)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] E
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.removeAt
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: removeAt
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.retainAll
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: retainAll
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(elements)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] E
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.set
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: set
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/collections/MutableList<E>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.subList
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: subList
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(fromIndex)
KtValueParameterSymbol(toIndex)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.contains
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: contains
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.containsAll
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: containsAll
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(elements)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] E
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.get
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: get
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(index)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.indexOf
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: indexOf
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.isEmpty
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: isEmpty
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/collections/MutableIterator<E>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.iterator
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: iterator
origin: INTERSECTION_OVERRIDE
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.lastIndexOf
dispatchType: kotlin/collections/MutableList<E>
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: lastIndexOf
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(element)
]
visibility: Public
deprecationStatus: null
KtKotlinPropertySymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/collections/MutableList.size
dispatchType: kotlin/collections/MutableList<E>
getter: null
hasBackingField: false
hasGetter: false
hasSetter: false
initializer: null
isConst: false
isDelegatedProperty: false
isExtension: false
isFromPrimaryConstructor: false
isLateInit: false
isOverride: false
isStatic: false
isVal: true
modality: ABSTRACT
name: size
origin: LIBRARY
receiverType: null
setter: null
symbolKind: CLASS_MEMBER
visibility: Public
deprecationStatus: null
getterDeprecationStatus: null
javaGetterName: getSize
javaSetterName: null
setterDeprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.equals
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: equals
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(other)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.hashCode
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: hashCode
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.toString
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: toString
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,3 @@
// DO_NOT_CHECK_SYMBOL_RESTORE
// class: java/lang/String
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
// WITH_RUNTIME
// class: kotlin/Function2
@@ -0,0 +1,104 @@
KtFunctionSymbol:
annotatedType: [] R
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Function2.invoke
dispatchType: kotlin/Function2<P1, P2, R>
hasStableParameterNames: false
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: ABSTRACT
name: invoke
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(p1)
KtValueParameterSymbol(p2)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Boolean
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.equals
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: true
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: equals
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: [
KtValueParameterSymbol(other)
]
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/Int
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.hashCode
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: hashCode
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null
KtFunctionSymbol:
annotatedType: [] kotlin/String
annotationClassIds: []
annotations: []
callableIdIfNonLocal: kotlin/Any.toString
dispatchType: kotlin/Any
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: OPEN
name: toString
origin: LIBRARY
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null