mdepies
01/06/2020, 4:06 PMKtSimpleNameExpression
and
KtProperty
raulraja
01/06/2020, 5:31 PMmdepies
01/06/2020, 5:34 PMdata class Window<T>(
val size: Int,
val elements: MutableList<T>) {
init {
watch(elements).then {
while (elements.size > size) elements.removeAt(0)
}
}
}
I crawl through the code (example above) and record all of the declarations. Then I search for any watch methods and see what is declared as dependencies. I'd like to associate that reference with the correct declaration (I have a list of registered elements)raulraja
01/06/2020, 5:36 PMKtProperty : val elements: MutableList<T>
KtSimpleNameExpression = elements
mdepies
01/06/2020, 5:36 PMraulraja
01/06/2020, 5:36 PMwatch(elements)
mdepies
01/06/2020, 5:37 PMraulraja
01/06/2020, 5:38 PMTopDownAnalyzerFacadeForJVM
doAnalysis { ..here.. }
mdepies
01/06/2020, 6:02 PMraulraja
01/06/2020, 6:02 PMmdepies
01/06/2020, 6:03 PMraulraja
01/06/2020, 6:08 PMorg.jetbrains.kotlin.config.CompilerConfiguration#EMPTY