Add comment with reference to K2 implementation of opt-in check

^KTIJ-23369 Fixed
This commit is contained in:
Roman Efremov
2022-11-18 16:02:23 +03:00
parent f6dd302dc7
commit 9330018390
@@ -315,7 +315,10 @@ class OptInUsageChecker(project: Project) : CallChecker {
/**
* Checks whether there's an element lexically above in the tree, annotated with `@OptIn(X::class)`, or a declaration
* annotated with `@X` where [annotationFqName] is the FQ name of X
* annotated with `@X` where [annotationFqName] is the FQ name of X.
*
* This implementation also was rewritten for K2 use in intellij repository.
* See `org.jetbrains.kotlin.idea.base.fir.codeInsight.FirOptInUsageCheckerKt#isOptInAllowed`.
*/
fun PsiElement.isOptInAllowed(
annotationFqName: FqName,