AA: indicate whether a value parameter is an implicit lambda parameter

^KTIJ-18800 In progress
This commit is contained in:
Jinseong Jeon
2022-04-18 14:12:13 -07:00
committed by Ilya Kirillov
parent a74a51b2d9
commit 889db4cc5d
35 changed files with 208 additions and 33 deletions
@@ -0,0 +1,14 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isImplicitLambdaParameter: false
isVararg: false
name: it
origin: LIBRARY
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -0,0 +1,11 @@
// DO_NOT_CHECK_SYMBOL_RESTORE
inline fun <T, R> T.use(block: (T) -> R): R {
return block(this)
}
fun foo() {
42.use { it ->
i<caret>t.toString()
}
}
@@ -0,0 +1 @@
it: kotlin.Int
@@ -0,0 +1,14 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isImplicitLambdaParameter: false
isVararg: false
name: it
origin: SOURCE
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -0,0 +1,9 @@
// DO_NOT_CHECK_SYMBOL_RESTORE
inline fun <T, R> T.use(block: (T) -> R): R {
return block(this)
}
fun foo() {
42.use { i<caret>t.toString() }
}
@@ -0,0 +1 @@
it: kotlin.Int
@@ -0,0 +1,14 @@
KtValueParameterSymbol:
annotationsList: []
callableIdIfNonLocal: null
hasDefaultValue: false
isExtension: false
isImplicitLambdaParameter: true
isVararg: false
name: it
origin: SOURCE_MEMBER_GENERATED
receiverType: null
returnType: kotlin/Int
symbolKind: LOCAL
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null