[Analysis API] Move testdata for scope provider
This commit is contained in:
committed by
teamcity
parent
4b7164a557
commit
e8272fa02e
Vendored
+1398
File diff suppressed because it is too large
Load Diff
+40
@@ -0,0 +1,40 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun function(): Int = 1
|
||||
|
||||
@JvmOverloads
|
||||
fun functionWithDefault(par1: Int) = Unit
|
||||
|
||||
val testVal: Int = 2
|
||||
var initializedVariable = 3
|
||||
var unitializedVariable: Long
|
||||
lateinit var lateinitVariable: String
|
||||
|
||||
var variableWithBackingField: Long = 4
|
||||
get() = field
|
||||
|
||||
@set:JvmName("customPrivateSetter")
|
||||
var privateSetter = ""
|
||||
private set
|
||||
|
||||
var jvmNameOnSetter = ""
|
||||
@JvmName("customPrivateSetter")
|
||||
private set
|
||||
|
||||
@get:JvmName("myCustomGetter")
|
||||
val customGetter: Int get() = 2
|
||||
|
||||
val jvmNameOnGetter: Int @JvmName("myCustomGetter") get() = 2
|
||||
|
||||
val Int.propertyWithReceiver: Int get() = this
|
||||
|
||||
val <T> T.propertyWithGenericReceiver: Int get() = 23
|
||||
|
||||
class OuterClass {
|
||||
class NestedClass
|
||||
}
|
||||
|
||||
const val constant = 2
|
||||
|
||||
@JvmField
|
||||
var jvmField: Long = 2
|
||||
+1401
File diff suppressed because it is too large
Load Diff
+11
@@ -0,0 +1,11 @@
|
||||
fun test(): Int = 3
|
||||
|
||||
val testVal: Int = 2
|
||||
|
||||
class C {
|
||||
fun r() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
interface I
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
FILE SYMBOL:
|
||||
KtFileSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
|
||||
CALLABLE NAMES:
|
||||
[test, testVal]
|
||||
|
||||
CALLABLE SYMBOLS:
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /test
|
||||
contextReceivers: []
|
||||
contractEffects: []
|
||||
hasStableParameterNames: true
|
||||
isBuiltinFunctionInvoke: false
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: test
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Int
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: /testVal
|
||||
contextReceivers: []
|
||||
getter: KtPropertyGetterSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: null
|
||||
contextReceivers: []
|
||||
hasBody: false
|
||||
hasStableParameterNames: true
|
||||
isDefault: true
|
||||
isExtension: false
|
||||
isInline: false
|
||||
isOverride: false
|
||||
modality: FINAL
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Int
|
||||
symbolKind: ACCESSOR
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
hasBackingField: true
|
||||
hasGetter: true
|
||||
hasSetter: false
|
||||
initializer: KtConstantInitializerValue(2)
|
||||
isConst: false
|
||||
isDelegatedProperty: false
|
||||
isExtension: false
|
||||
isFromPrimaryConstructor: false
|
||||
isLateInit: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isVal: true
|
||||
modality: FINAL
|
||||
name: testVal
|
||||
origin: SOURCE
|
||||
receiverParameter: null
|
||||
returnType: KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Int
|
||||
setter: null
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getTestVal
|
||||
javaSetterName: null
|
||||
setterDeprecationStatus: null
|
||||
|
||||
CLASSIFIER NAMES:
|
||||
[C, I]
|
||||
|
||||
CLASSIFIER SYMBOLS:
|
||||
KtNamedClassOrObjectSymbol:
|
||||
annotationsList: []
|
||||
classIdIfNonLocal: C
|
||||
classKind: CLASS
|
||||
companionObject: null
|
||||
contextReceivers: []
|
||||
isData: false
|
||||
isExternal: false
|
||||
isFun: false
|
||||
isInline: false
|
||||
isInner: false
|
||||
modality: FINAL
|
||||
name: C
|
||||
origin: SOURCE
|
||||
superTypes: [
|
||||
KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Any
|
||||
]
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
annotationApplicableTargets: null
|
||||
deprecationStatus: null
|
||||
|
||||
KtNamedClassOrObjectSymbol:
|
||||
annotationsList: []
|
||||
classIdIfNonLocal: I
|
||||
classKind: INTERFACE
|
||||
companionObject: null
|
||||
contextReceivers: []
|
||||
isData: false
|
||||
isExternal: false
|
||||
isFun: false
|
||||
isInline: false
|
||||
isInner: false
|
||||
modality: ABSTRACT
|
||||
name: I
|
||||
origin: SOURCE
|
||||
superTypes: [
|
||||
KtUsualClassType:
|
||||
annotationsList: []
|
||||
ownTypeArguments: []
|
||||
type: kotlin/Any
|
||||
]
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
annotationApplicableTargets: null
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user