[FE] Add isLocal name to ClassId constructor calls where it needed
This commit is contained in:
committed by
Space Team
parent
adaf8ae46a
commit
9e5ee3afa0
+3
-3
@@ -264,9 +264,9 @@ private object ClassIdExternalizerWithInterning : DataExternalizer<ClassId> by C
|
||||
return ClassId(
|
||||
// To reduce memory usage, apply object interning to package name as they are commonly shared.
|
||||
// (Don't apply object interning to relative class name as they are not commonly shared.)
|
||||
/* packageFqName */ FqNameExternalizerWithInterning.read(input),
|
||||
/* relativeClassName */ FqNameExternalizer.read(input),
|
||||
/* isLocal */ input.readBoolean()
|
||||
packageFqName = FqNameExternalizerWithInterning.read(input),
|
||||
relativeClassName = FqNameExternalizer.read(input),
|
||||
isLocal = input.readBoolean()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class BasicClassInfoTest {
|
||||
}
|
||||
|
||||
private fun classId(@Suppress("SameParameterValue") packageFqName: String, relativeClassName: String, local: Boolean) =
|
||||
ClassId(FqName(packageFqName), FqName(relativeClassName), local)
|
||||
ClassId(FqName(packageFqName), FqName(relativeClassName), isLocal = local)
|
||||
}
|
||||
|
||||
private const val className = "com/example/TopLevelClass"
|
||||
|
||||
Reference in New Issue
Block a user