KT-45777: Clean up handling around LookupSymbols and ProgramSymbols

Make it clearer and more efficient.

^KT-45777 In Progress
This commit is contained in:
Hung Nguyen
2022-01-20 22:54:31 +00:00
committed by teamcity
parent 70581c2979
commit aaef41cf64
11 changed files with 315 additions and 323 deletions
@@ -444,8 +444,8 @@ private fun computeClasspathChanges(
/** Adapted version of [ChangesEither.Known] for readability in this test. */
private data class Changes(val lookupSymbols: Set<LookupSymbol>, val fqNames: Set<String>)
private fun ChangeSet.normalize(): Changes {
val changes: ChangesEither.Known = getChanges()
private fun ProgramSymbolSet.normalize(): Changes {
val changes: ChangesEither.Known = toChangesEither()
return Changes(changes.lookupSymbols.toSet(), changes.fqNames.map { it.asString() }.toSet())
}