Hadi Lashkari
03/27/2020, 8:13 AMHadi Lashkari
03/27/2020, 6:40 PMSyntheticResolveExtension
and ExpressionCodegenExtension
to generateSyntheticProperties
and generateClassSyntheticParts
. As I checked AnalysisHandlerExtension
and PackageFragmentProviderExtension
are used to generate entire files. But as I said before I just want to add a simple method to an implemented class. I just need a sample code to find out how. Thanks for any kind of hint.shikasd
03/29/2020, 10:59 PMSyntheticResolve
has a function getSyntheticFunctionNames
so they can be resolved later, but does not have such for properties.
One of other possible solution is to add track
through interface with addSyntheticSupertypes
.shikasd
03/29/2020, 11:00 PMtrack
in scope, because you did not provide it such name in scope. (it is not like you can currently).Hadi Lashkari
03/30/2020, 7:12 AMHadi Lashkari
03/30/2020, 8:15 AMgetSyntheticFunctionNames
but there's another problem. I applied the changes to use this method, committed an pushed to master. Now after un-comenting SmokeTest#trackable
test, I reach to SmokeTest.kt: (24, 37): Overload resolution ambiguity:
! Apparently the method is generated 4 times! How can I prevent this? Thanks.Hadi Lashkari
03/30/2020, 9:00 AMshikasd
03/30/2020, 9:22 PM