[LL FIR] allow recursive access to the same FirThreadSafeCache
^KT-56721 fixed
This commit is contained in:
committed by
Space Team
parent
d670e5a695
commit
c60fd38e05
+6
@@ -23,6 +23,12 @@ import kotlin.reflect.KClass
|
||||
* TODO:
|
||||
* - check that annotations or meta-annotations is not empty
|
||||
*/
|
||||
|
||||
/**
|
||||
* All `generate*` members have the contract that the computation should be side-effect-free.
|
||||
* That means that all `generate*` function implementations should not modify any state or leak the generated `FirElement` or `FirBasedSymbol` (e.g., by putting it to some cache).
|
||||
* This restriction is imposed by the corresponding IDE cache implementation, which might retry the computation several times.
|
||||
*/
|
||||
abstract class FirDeclarationGenerationExtension(session: FirSession) : FirExtension(session) {
|
||||
companion object {
|
||||
val NAME = FirExtensionPointName("ExistingClassModification")
|
||||
|
||||
Reference in New Issue
Block a user