[FIR IDE] Properly support loop variables in KtFirSymbolProvider

This commit is contained in:
Roman Golyshev
2021-10-07 15:57:13 +03:00
committed by TeamCityServer
parent 58831eacca
commit 9113ccb8fc
5 changed files with 68 additions and 9 deletions
@@ -0,0 +1,3 @@
fun usage() {
for (loopVariable in 1..10) {}
}
@@ -0,0 +1,35 @@
KtFirLocalVariableSymbol:
annotatedType: [] kotlin/Int
callableIdIfNonLocal: null
isExtension: false
isVal: true
name: loopVariable
origin: SOURCE
receiverType: null
symbolKind: LOCAL
deprecationStatus: null
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
annotationClassIds: []
annotations: []
callableIdIfNonLocal: /usage
dispatchType: null
hasStableParameterNames: true
isExtension: false
isExternal: false
isInfix: false
isInline: false
isOperator: false
isOverride: false
isStatic: false
isSuspend: false
modality: FINAL
name: usage
origin: SOURCE
receiverType: null
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: Public
deprecationStatus: null