https://kotlinlang.org logo
#compiler
Title
# compiler
y

Youssef Shoaib [MOD]

11/27/2023, 6:01 AM
While implementing an assignment alterer plugin with more relaxed rules than the official one, I seem to not be able to intercept
this = foo
calls. Is this intentional, and could it be something that can be relaxed? I'm near sure that it is due to this one line of code here:
Copy code
if (assignAltererExtensions != null && resolvedReference is FirResolvedNamedReference) {
I believe it's because a
FirThisReference
is not a
FirResolvedNamedReference
, and so it doesn't pass that check. I think that could probably be relaxed to also pass for
FirThisReference
, but I can see how niche this is of a request.
I'm also getting no IDE support. Is that to be expected? I've defined assignment alterers both for k1 and K2, and I'm applying my plugin in gradle
m

MerlinTHS

12/02/2023, 10:54 PM
I think it is, until the new FIR based IDE plugin becomes the standard.
2 Views