This is for determining if the method for example ...
# ksp
j
This is for determining if the method for example is accessible if it has the internal modifier
e
afaik you can’t check the module of a class, but for your use case I think you want the function
fun KSDeclaration.isVisibleFrom(other: KSDeclaration)
to see if a one declaration can access another. as of 1.0 there is still a todo though
// TODO: cross module visibility is not handled
that might block you
j
yes, checking visibility between 2 symbols both from dependencies are not supported yet.
j
@Jiaxiang Should I create an issue to request support for that?
j
it is already marked as a TODO in code so I guess it’s fine to not file an issue