For my profiling plugin which features Kotlin supp...
# kontributors
i
For my profiling plugin which features Kotlin support, I need to correlate source positions with method signatures that are recorded by the profiler. I've got it all working, but there are two areas where I feel that I'm not using an API but just tapping into the internals: 1. When I need a
KotlinTypeMapper
for a PSI Element, the only way to get one that works with both 1.0 and 1.1 is to call
IdeaKotlinUastBindingContextProviderService().getTypeMapper
. This is in the android-lint-jar and not available as a project service in the IDEA plugin, so I have to instantiate it directly. 2. To find a containing class name for a given PSI element, I use
DebuggerClassNameProvider(DebugProcessEvents(project), listOf(GlobalSearchScope.allScope(project)))
. Looking at the history, also seems to be an area that is subject to change. Would you consider adding an API that provides access to these two mappings?