Obtaining a refrence to a kotlin file


#1

Hey,
Im attempting to use kotlin-reflection-full to access to all the functions in a file, to do this I’m trying to get a reference to the file that I can pass into my function is there any way to do this without having to rely on the class system?


#2

“File” is not a concept that exists in Kotlin reflection. It only works with classes and their members.


#3

hmm ok thats unfortunate thanks for informing me