Obtaining a refrence to a kotlin file

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?

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

hmm ok thats unfortunate thanks for informing me