Nathan Bedell09/26/2021, 5:27 PM
? Closest I've been able to get so far is
, which (assuming the
sits at top level), I believe gives me a
that represents the file that the class sits in. However, even there, I can't see any way to get the package path where the class resides. I'm not seeing anything in the methods of either
that would be helpful here. Any ideas?
-- and in the generated code, I need to be able to add an import statement for
raulraja09/26/2021, 7:43 PM
property in which you can get the package contained
org.jetbrains.kotlin.psi.KtPureElement.findClassDescriptor(bindingContext: org.jetbrains.kotlin.resolve.BindingContext): org.jetbrains.kotlin.descriptors.ClassDescriptor
Nathan Bedell10/12/2021, 11:15 PM
declaration -- so of course all of the methods that should have returned a package were coming up empty!