Restore logging changes when process them using lookups and add assert to avoid getting parent from root FqName

This commit is contained in:
Zalim Bashorov
2016-01-19 16:23:03 +03:00
parent 9360bd49a6
commit bd9b2f9f06
@@ -750,8 +750,13 @@ private fun CompilationResult.doProcessChangesUsingLookups(
KotlinBuilder.LOG.debug("Start processing changes")
for (change in changes) {
KotlinBuilder.LOG.debug("Process $change")
if (change is ChangeInfo.SignatureChanged) {
for (classFqName in withSubtypes(change.fqName, allCaches)) {
assert(!classFqName.isRoot) { "classFqName is root when processing $change" }
val scope = classFqName.parent().asString()
val name = classFqName.shortName().identifier
dirtyLookupSymbols.add(LookupSymbol(name, scope))