https://kotlinlang.org logo
p

PHondogo

05/16/2020, 4:26 PM
Hello! Is there any way to itarate through all class descriptors in module descriptor?
r

raulraja

05/16/2020, 5:27 PM
yes you can get access to those through the memberScope.getContributedDescriptors inside the package fragment descriptor
classes but also property and package level functions
classdescriptor covers interface, object and class
String | Int
as syntax you type is not possible without grammar changes to the lang because there is currently no support for infix types or type aliases
it won’t get to AST, fails parsing
p

PHondogo

05/16/2020, 6:50 PM
Thanks, Raul!
👍 1
4 Views