[psi] allow creation of KotlinCommonParserDefinition

to avoid dependency on `java.psi` through `KtFile : PsiClassOwner, ...`

^KT-64883 fixed
This commit is contained in:
Anna Kozlova
2024-01-10 21:53:06 +01:00
committed by Space Team
parent 82d52ef6fc
commit 2ba02df361
@@ -48,7 +48,7 @@ import org.jetbrains.kotlin.psi.stubs.elements.KtStubElementType
* Creates [org.jetbrains.kotlin.psi.KtCommonFile] when java psi is not available e.g. on JB Client.
* Otherwise, normal [KotlinParserDefinition] should be used.
*/
sealed class KotlinCommonParserDefinition : ParserDefinition {
open class KotlinCommonParserDefinition : ParserDefinition {
override fun createLexer(project: Project): Lexer = KotlinLexer()
override fun createParser(project: Project): PsiParser = KotlinParser(project)