Files
openide/plugins/devkit/devkit-kotlin-tests/testData/inspections/statefulEp/RefTests.kt
Karol Lewandowski 73412b84ed IDEA-316821: Support anonymous/inner class fields captured from context in StatefulEpInspection for Kotlin code
GitOrigin-RevId: 7f211c1b5bca9bdcb1f5281cd6717ad58f3751c3
2023-04-18 17:47:46 +00:00

16 lines
974 B
Kotlin

import com.intellij.codeInspection.LocalQuickFix
import com.intellij.openapi.util.Ref
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiReference
import com.intellij.openapi.project.Project
class RefTests : LocalQuickFix {
var <warning descr="Potential memory leak: don't hold PsiElement, use SmartPsiElementPointer instead. See also LocalQuickFixOnPsiElement.">pe</warning>: Ref<PsiElement>? = null
var <warning descr="Do not use PsiReference as a field in quick-fix">r</warning>: Ref<PsiReference>? = null
var <warning descr="Do not use PsiReference as a field in quick-fix">r1</warning>: Ref<Ref<PsiReference>>? = null
var r2: Ref<*>? = null
var r3: Ref<Int>? = null
var <warning descr="Potential memory leak: don't hold PsiElement, use SmartPsiElementPointer instead. See also LocalQuickFixOnPsiElement.">r4</warning>: Ref<Ref<PsiElement>>? = null
var <warning descr="Do not use Project as a field in quick-fix">p</warning>: Project? = null
}