FIR IDE: move KotlinOutOfBlockModificationTrackerFactory to frontend independent module

This commit is contained in:
Ilya Kirillov
2020-12-16 22:21:33 +01:00
parent a30d9e0ed3
commit 0862928bf7
10 changed files with 61 additions and 17 deletions
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.trackers
import com.intellij.openapi.module.Module
import com.intellij.openapi.util.ModificationTracker
class KotlinFE10OutOfBlockModificationTracker : KotlinOutOfBlockModificationTrackerFactory() {
override fun createProjectWideOutOfBlockModificationTracker(): ModificationTracker =
throwUnsupportedError()
override fun createModuleWithoutDependenciesOutOfBlockModificationTracker(module: Module): ModificationTracker =
throwUnsupportedError()
private fun throwUnsupportedError(): Nothing =
error("Supported only for FIR plugin now, sorry, consider using KotlinModificationTrackerService instead")
}