Hello, i have a question related to parsing kotlin...
# compiler
s
Hello, i have a question related to parsing kotlin code using
kotlin-compiler-embeddable
. I would like to be able to resolve a
KtNameReferenceExpression
to its original declaration e.g
Copy code
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?