[LL FIR] support scripts in COMPILER_REQUIRED_ANNOTATIONS transformer
^KT-60728
This commit is contained in:
committed by
Space Team
parent
95e04c97cc
commit
64bdcc1131
+1
-3
@@ -105,8 +105,7 @@ private class LLFirCompilerRequiredAnnotationsTargetResolver(
|
|||||||
|
|
||||||
override fun doResolveWithoutLock(target: FirElementWithResolveState): Boolean {
|
override fun doResolveWithoutLock(target: FirElementWithResolveState): Boolean {
|
||||||
when {
|
when {
|
||||||
target is FirScript -> return false
|
target is FirRegularClass || target is FirScript || target.isRegularDeclarationWithAnnotation -> {}
|
||||||
target is FirRegularClass || target.isRegularDeclarationWithAnnotation -> {}
|
|
||||||
else -> throwUnexpectedFirElementError(target)
|
else -> throwUnexpectedFirElementError(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,7 +296,6 @@ private class LLFirCompilerRequiredAnnotationsTargetResolver(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun doLazyResolveUnderLock(target: FirElementWithResolveState) {
|
override fun doLazyResolveUnderLock(target: FirElementWithResolveState) {
|
||||||
if (target is FirScript) return
|
|
||||||
throwUnexpectedFirElementError(target)
|
throwUnexpectedFirElementError(target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user