Skip to content

Commit

Permalink
[parser] make the KotlinParserDefinition class to be open
Browse files Browse the repository at this point in the history
So it can have a custom implementation for the language injection in the IDE

KTIJ-31032
  • Loading branch information
darthorimar authored and qodana-bot committed Aug 19, 2024
1 parent f29dbeb commit 053fc19
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ open class KotlinCommonParserDefinition : ParserDefinition {
}
}

class KotlinParserDefinition : KotlinCommonParserDefinition() {
/*
* The class is open, so it can have a custom implementation for the language injection in the IDE.
* See KTIJ-31032
*/
open class KotlinParserDefinition : KotlinCommonParserDefinition() {
override fun createFile(fileViewProvider: FileViewProvider): PsiFile {
return KtFile(fileViewProvider, false)
}
Expand Down

0 comments on commit 053fc19

Please sign in to comment.