[CHERRY PICKED FROM IJ] Simplify API for InlineConstTracker and add testdata

GitOrigin-RevId: b2bcde9e3102d575ca459f475c00022515b6ccba
Original commit: https://github.com/JetBrains/intellij-community/commit/f78e98d1ba5b6c142076b67f88c54282c3964c7f
This commit is contained in:
Aleksei.Cherepanov
2021-09-17 18:45:02 +03:00
committed by Nikita Bobko
parent 40dc548fec
commit 6c7a6bf3b1
7 changed files with 17 additions and 17 deletions
@@ -367,7 +367,7 @@ class KotlinJvmModuleBuildTarget(kotlinContext: KotlinCompileContext, jpsModuleB
// process inlineConstTracker
for (sourceFile: File in sourceFiles) {
val cRefs = inlineConstTracker.inlineConstMap[sourceFile.path]?.map { cRef ->
val cRefs = inlineConstTracker.inlineConstMap[sourceFile.path]?.map { cRef: ConstantRef ->
val descriptor = when (cRef.constType) {
"Byte" -> "B"
"Short" -> "S"