From b62b21dd674dd009a4afbad0a1e56a683b14e3fc Mon Sep 17 00:00:00 2001 From: Roman Golyshev Date: Wed, 3 Aug 2022 20:07:33 +0200 Subject: [PATCH] [213] Adapt to `DebugUtil.psiToString` semantics change See 83990991cd17c661bf6ea85b54125c09741d90ec commit in intellij KTI-1114 --- .../jetbrains/kotlin/test/testFramework/KtParsingTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java index 53008ebf6e2..d4157aebf0d 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/testFramework/KtParsingTestCase.java @@ -107,7 +107,8 @@ public abstract class KtParsingTestCase extends KtPlatformLiteFixture { } protected static String toParseTreeText(PsiElement file, boolean skipSpaces, boolean printRanges) { - return DebugUtil.psiToString(file, skipSpaces, printRanges); + boolean showWhitespaces = !skipSpaces; + return DebugUtil.psiToString(file, showWhitespaces, printRanges); } protected String loadFile(@NonNls @TestDataFile String name) throws IOException {