Question about `SyntheticResolveExtension` and K2....
# compiler
c
Question about
SyntheticResolveExtension
and K2. We are currently trying to make our plugin K2 compatible but are running into a few problems. We cannot move to
CompilerPluginRegistrar
since we still depend on being able to control the ordering of plugins, but when we enable
supportsK2 = true
in
ComponentRegistrar
it doesn’t seem work. At least the extension is never run. So right now I am assuming it is either a bug or
SyntheticResolveExtension
is not supported, but if it is the later what should we replace it with?
d
SyntheticResolveExtension
is K1 specific K2 alternative is
FirDeclarationGenerationExtension
👍 1
c
So just to be sure. If we continue to use
ComponentRegistrar
we need to detect what version of the compiler is running and either register
FirDeclarationGenerationExtension
or
SyntheticResolveExtension
or does
FirDeclarationGenerationExtension
also work with K1?
d
You can register both Some just won't be used by the compiler
👍 1
c
Cool. Thank you very much 🙏