Revert back and deprecate KtStubElementTypes#FILE

Due to usages in some external tooling

#KT-53781
This commit is contained in:
Vladimir Dolzhenko
2022-09-19 12:55:28 +02:00
committed by Space
parent e35ace5d3a
commit 8804742220
@@ -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");