https://kotlinlang.org logo
Title
m

markusa

12/20/2017, 7:12 PM
But I guess the compiler is putting in the expression string as a parameter, so I'm wondering if there is another way to get an expression at runtime
k

karelpeeters

12/20/2017, 9:15 PM
You can check how that happened behind the scenes by looking at the bytecode or using a debugger.
m

markusa

12/20/2017, 9:50 PM
The class file (bytecode) only contains the source file name, not a path to it unfortunately. I was hoping to get some kind of functionality like in C#, where a StackTraceElement has a property with the path of the source file (if it was built with debug symbols in the bytecode) 😕