From 8804742220b01c4a37794be24692c6a860f6ca62 Mon Sep 17 00:00:00 2001 From: Vladimir Dolzhenko Date: Mon, 19 Sep 2022 12:55:28 +0200 Subject: [PATCH] Revert back and deprecate KtStubElementTypes#FILE Due to usages in some external tooling #KT-53781 --- .../kotlin/psi/stubs/elements/KtStubElementTypes.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/elements/KtStubElementTypes.java b/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/elements/KtStubElementTypes.java index ecd124b3402..5fdad3e9636 100644 --- a/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/elements/KtStubElementTypes.java +++ b/compiler/psi/src/org/jetbrains/kotlin/psi/stubs/elements/KtStubElementTypes.java @@ -19,6 +19,13 @@ package org.jetbrains.kotlin.psi.stubs.elements; import org.jetbrains.kotlin.psi.*; public interface KtStubElementTypes { + /** + * @deprecated use {@link KtFileElementType#INSTANCE}. + * Field is provided for the sake of binary compatibility with external usages. It will be deleted in the future. + */ + @Deprecated + KtFileElementType FILE = KtFileElementType.INSTANCE; + KtClassElementType CLASS = new KtClassElementType("CLASS"); KtFunctionElementType FUNCTION = new KtFunctionElementType("FUN"); KtPropertyElementType PROPERTY = new KtPropertyElementType("PROPERTY");