From 89e7280fbb334931a598c27896503622f7142db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 19 Oct 2023 11:06:08 +0200 Subject: [PATCH] [json] JsonLinesParserDefinition: cleanup GitOrigin-RevId: b255ba7882f87b0cf326a0390d8c52c9e5aad7f2 --- .../json/jsonLines/JsonLinesParserDefinition.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/json/src/com/intellij/json/jsonLines/JsonLinesParserDefinition.kt b/json/src/com/intellij/json/jsonLines/JsonLinesParserDefinition.kt index ed5d060e2116..f249f369ae02 100644 --- a/json/src/com/intellij/json/jsonLines/JsonLinesParserDefinition.kt +++ b/json/src/com/intellij/json/jsonLines/JsonLinesParserDefinition.kt @@ -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 import com.intellij.json.JsonParserDefinition @@ -7,14 +7,14 @@ import com.intellij.psi.FileViewProvider import com.intellij.psi.PsiFile import com.intellij.psi.tree.IFileElementType -class JsonLinesParserDefinition: JsonParserDefinition() { +internal class JsonLinesParserDefinition : JsonParserDefinition() { + override fun createFile(fileViewProvider: FileViewProvider): PsiFile { return JsonFileImpl(fileViewProvider, JsonLinesLanguage) } override fun getFileNodeType(): IFileElementType = FILE - companion object { - val FILE = IFileElementType(JsonLinesLanguage) - } + private val FILE = IFileElementType(JsonLinesLanguage) + } \ No newline at end of file