Hi, method getSyntheticFunctionNames in extension SyntheticResolveExtension is called for every class in module (as expected), but it's not called for classes from dependencies. Is there a way to add methods to autocomplete for already compiled classes?
r
raulraja
11/04/2019, 11:10 PM
Not sure about the exact use case but usually you can do that with a package fragment provider
raulraja
11/04/2019, 11:11 PM
The synthetic resolver extension is incomplete If you need to do anything useful with top level declarations like type aliases or package functions or properties. It only accounts for class, interface and objects and what they have inside
j
jereksel
11/05/2019, 7:51 AM
Use case is pretty simple. Generate methods for each data class property for
I can't really do that with fragment provider, because resolving parameter types requires all imports - it can loop easily.
jereksel
11/05/2019, 8:50 AM
I'm not sure about top level functions to be honest. You can add synthetic classes to package and top level properties and methods are in class in the end. I think I'll research it more today
r
raulraja
11/05/2019, 9:09 AM
If this is related to meta lenses I may be able to help in #arrow-meta. Those synth descriptors should be generated automatically as synth if you annotated them as synth. Meta does that for idea automatically