[IR] Don't print multifile/synthetic facade class names in irText tests
This only applies to JVM and fq-names in declaration references in IR dumps. This enables us to run more irText tests on platforms other than JVM (see KT-58605).
This commit is contained in:
committed by
Space Team
parent
cc76bbd09d
commit
f2031ae642
@@ -578,7 +578,7 @@ private inline fun StringBuilder.appendDeclarationNameToFqName(
|
||||
options: DumpIrTreeOptions,
|
||||
fallback: () -> Unit
|
||||
) {
|
||||
if (declaration.origin != IrDeclarationOrigin.FILE_CLASS || options.printFacadeClassInFqNames) {
|
||||
if (!declaration.isFileClass || options.printFacadeClassInFqNames) {
|
||||
append('.')
|
||||
if (declaration is IrDeclarationWithName) {
|
||||
append(declaration.name)
|
||||
|
||||
Reference in New Issue
Block a user