mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[json] JsonLinesParserDefinition: cleanup
GitOrigin-RevId: b255ba7882f87b0cf326a0390d8c52c9e5aad7f2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4def9e307b
commit
89e7280fbb
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
package com.intellij.json.jsonLines
|
package com.intellij.json.jsonLines
|
||||||
|
|
||||||
import com.intellij.json.JsonParserDefinition
|
import com.intellij.json.JsonParserDefinition
|
||||||
@@ -7,14 +7,14 @@ import com.intellij.psi.FileViewProvider
|
|||||||
import com.intellij.psi.PsiFile
|
import com.intellij.psi.PsiFile
|
||||||
import com.intellij.psi.tree.IFileElementType
|
import com.intellij.psi.tree.IFileElementType
|
||||||
|
|
||||||
class JsonLinesParserDefinition: JsonParserDefinition() {
|
internal class JsonLinesParserDefinition : JsonParserDefinition() {
|
||||||
|
|
||||||
override fun createFile(fileViewProvider: FileViewProvider): PsiFile {
|
override fun createFile(fileViewProvider: FileViewProvider): PsiFile {
|
||||||
return JsonFileImpl(fileViewProvider, JsonLinesLanguage)
|
return JsonFileImpl(fileViewProvider, JsonLinesLanguage)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getFileNodeType(): IFileElementType = FILE
|
override fun getFileNodeType(): IFileElementType = FILE
|
||||||
|
|
||||||
companion object {
|
private val FILE = IFileElementType(JsonLinesLanguage)
|
||||||
val FILE = IFileElementType(JsonLinesLanguage)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user