Alex Styl
07/13/2025, 5:50 AMval property = "value"
Current code:
val environment = KotlinCoreEnvironment.createForProduction(
projectDisposable = Disposer.newDisposable(),
configuration = CompilerConfiguration(),
configFiles = EnvironmentConfigFiles.JS_CONFIG_FILES
)
val fileWithProperty = PsiManager.getInstance(environment.project)
.findFile(LightVirtualFile("FileWithProperty.kt", INSTANCE, "val property = \"value\"")) as KtFile
val myVal = fileWithProperty.declarations.first() as KtProperty
when i inspect myVal
there is nothing that hints towards the type (string) of the property.
Reading this channel I think I need a binding context, but I don't understand how to create one. For context, I am building a CLI app (not a plugin)hfhbd
07/13/2025, 7:46 AMAlex Styl
07/13/2025, 10:09 AMI would take a look at the new Analytics api insteadwhere can i find that? so far I have been searching in this slack and via chatgpt. unless you mean to have a look at detect and ksp sources
hfhbd
07/13/2025, 10:23 AMAlex Styl
07/13/2025, 10:33 AM