Is there some ways to get the input kotlin file co...
# ksp
g
Is there some ways to get the input kotlin file content directly? I'd use a regex on the file content to grab some imports as a workaround for the resolve() issue mentioned earlier.
j
No, files are containers for symbols, no raw file content. But you can get the path to the file by
KSFile.filePath
and then read it with system API.
🙏 1