[Tests] Use stable order for ir/kotlinLike dumps

^KT-65406
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:23:41 +01:00
committed by Space Team
parent 0fa42a9c11
commit e6f4d6e6fa
1265 changed files with 43896 additions and 48472 deletions
@@ -52,6 +52,7 @@ class IrPrettyKotlinDumpHandler(
printFilePath = false,
printFakeOverridesStrategy = FakeOverridesStrategy.NONE,
normalizeNames = true, // KT-61983: K1 and K2 kotlin-like dumps are closer to each other when tempvar names are normalized
stableOrder = true,
),
)
}
@@ -94,7 +94,8 @@ class IrTextDumpHandler(
// PSI2IR assigns field `abbreviation` with type abbreviation. It serves only debugging purposes, and no compiler functionality relies on it.
// FIR2IR does not initialize field `abbreviation` at all.
printTypeAbbreviations = false,
isHiddenDeclaration = { isHiddenDeclaration(it, irBuiltins) }
isHiddenDeclaration = { isHiddenDeclaration(it, irBuiltins) },
stableOrder = true,
)
val builder = baseDumper.builderForModule(module.name)