samuel
07/01/2023, 1:23 AMkotlin-compiler-embeddable
. I would like to be able to resolve a KtNameReferenceExpression
to its original declaration e.g
const val MyConst = "some value"
fun myFunction() {
someOtherFunction(MyConst)
}
fun someOtherFunction(someParameter: String) {
// Some code
}
for this example, i would like to “resolve” someOtherFunction
when it is encountered in myFunction
so i can get its assigned value ("some value"
in this case). So far i am able to get MyConst
as a KtNameReferenceExpression
but i’m unsure how to go about resolving. Could someone help nudge me in the direction i could go?