Hi, i try to get all methods from a `ClassDescript...
# compiler
l
Hi, i try to get all methods from a
ClassDescriptor
, but when i use
Copy code
(AInstance as ClassDescriptor).unsubstitutedMemberScope.getContributedDescriptors().filterIsInstance<FunctionDescriptor>()
will get all default functions, such as
toString
euqals
. Is there any better method to get all member methods including static methods?
oh, i found this way to get all static methods.😋
Copy code
(AInstance as ClassDescriptor).staticScope.getContributedDescriptors()
I solved first problem using
Copy code
it.kind !=CallableMemberDescriptor.Kind.FAKE_OVERRIDE