Refactoring: change "// BUNCH: xxx" format
It wasn't obvious how to use this comment properly. Now it should be clear
This commit is contained in:
committed by
Nikita Bobko
parent
b34fe77760
commit
aa5a5c954f
@@ -7,5 +7,5 @@ package org.jetbrains.kotlin.findUsages
|
||||
|
||||
import com.intellij.util.Processor
|
||||
|
||||
// BUNCH 193
|
||||
// FIX ME WHEN BUNCH 193 REMOVED
|
||||
typealias ProcessorInCompat<T> = Processor<T>
|
||||
@@ -7,5 +7,5 @@ package org.jetbrains.kotlin.findUsages
|
||||
|
||||
import com.intellij.util.Processor
|
||||
|
||||
// BUNCH 201
|
||||
// FIX ME WHEN BUNCH 201 REMOVED
|
||||
typealias ProcessorInCompat<T> = Processor<in T>
|
||||
@@ -12,7 +12,7 @@ import com.intellij.openapi.util.Computable
|
||||
import com.intellij.testFramework.ExtensionTestUtil
|
||||
import com.intellij.testFramework.codeInsight.hierarchy.HierarchyViewTestFixture
|
||||
|
||||
// BUNCH: 193
|
||||
// FIX ME WHEN BUNCH 193 REMOVED
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun doHierarchyTestCompat(
|
||||
hierarchyFixture: HierarchyViewTestFixture,
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.intellij.openapi.util.Computable
|
||||
import com.intellij.testFramework.PlatformTestUtil
|
||||
import com.intellij.testFramework.codeInsight.hierarchy.HierarchyViewTestFixture
|
||||
|
||||
// BUNCH: 192
|
||||
// FIX ME WHEN BUNCH 192 REMOVED
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun doHierarchyTestCompat(
|
||||
hierarchyFixture: HierarchyViewTestFixture,
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx
|
||||
import java.nio.file.Path
|
||||
|
||||
// BUNCH: 192
|
||||
// FIX ME WHEN BUNCH 192 REMOVED
|
||||
internal fun loadProjectCompat(projectFile: Path): Project {
|
||||
return (ProjectManagerEx.getInstanceEx()).loadProject(projectFile)
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx
|
||||
import java.nio.file.Path
|
||||
|
||||
// BUNCH: 192
|
||||
// FIX ME WHEN BUNCH 192 REMOVED
|
||||
internal fun loadProjectCompat(projectFile: Path): Project {
|
||||
return (ProjectManagerEx.getInstanceEx()).loadProject(projectFile.toFile().path)!!
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.psi.PsiFile
|
||||
import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl
|
||||
|
||||
// BUNCH: 193
|
||||
// FIX ME WHEN BUNCH 193 REMOVED
|
||||
fun invokeIntentionCompat(action: IntentionAction, file: PsiFile, editor: Editor) {
|
||||
CodeInsightTestFixtureImpl.invokeIntention(action, file, editor, action.text)
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.psi.PsiFile
|
||||
import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl
|
||||
|
||||
// BUNCH: 193
|
||||
// FIX ME WHEN BUNCH 193 REMOVED
|
||||
fun invokeIntentionCompat(action: IntentionAction, file: PsiFile, editor: Editor) {
|
||||
CodeInsightTestFixtureImpl.invokeIntention(action, file, editor)
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.PsiReference
|
||||
import com.intellij.refactoring.move.MoveHandlerDelegate
|
||||
|
||||
// BUNCH: 191
|
||||
// FIX ME WHEN BUNCH 191 REMOVED
|
||||
internal fun MoveHandlerDelegate.canMoveCompat(
|
||||
elements: Array<out PsiElement>,
|
||||
targetContainer: PsiElement?,
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.PsiReference
|
||||
import com.intellij.refactoring.move.MoveHandlerDelegate
|
||||
|
||||
// BUNCH: 191
|
||||
// FIX ME WHEN BUNCH 191 REMOVED
|
||||
internal fun MoveHandlerDelegate.canMoveCompat(
|
||||
elements: Array<out PsiElement>,
|
||||
targetContainer: PsiElement?,
|
||||
|
||||
Reference in New Issue
Block a user