Join Slack
Communities
Powered by
Hey - is there any possibility to extract alias na...
# ksp
m
Matthias Geisler
03/17/2022, 7:48 PM
Hey - is there any possibility to extract alias names for KSDeclaration?
y
yigit
03/17/2022, 8:13 PM
You mean finding aliases to the declaration of finding the original declaration from the alias?
m
Matthias Geisler
03/17/2022, 8:15 PM
First one - find the alias name of a declaration.
j
Jiaxiang
03/17/2022, 8:40 PM
you can write a visitor that will visits all files and collect type alias along the way.
Jiaxiang
03/17/2022, 8:41 PM
but there is no direct API available for your purpose.
m
Matthias Geisler
03/17/2022, 8:50 PM
Thx for the answer! Would be a neat feature 😉 I try meanwhile to traverse the containingFile.
2
Views
Open in Slack
Previous
Next