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 61628cde218..51adc5c4872 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 @@ -20,6 +20,15 @@ import com.intellij.psi.tree.TokenSet; 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 1.9.0. + */ + @Deprecated + KtFileElementType FILE = KtFileElementType.INSTANCE; + KtClassElementType CLASS = new KtClassElementType("CLASS"); KtFunctionElementType FUNCTION = new KtFunctionElementType("FUN"); KtPropertyElementType PROPERTY = new KtPropertyElementType("PROPERTY");