shikasd
06/25/2020, 2:05 AMshikasd
06/25/2020, 4:40 PMmattmoore
06/25/2020, 4:46 PMshikasd
06/25/2020, 4:46 PMshikasd
06/25/2020, 4:46 PMmattmoore
06/25/2020, 4:47 PMshikasd
06/25/2020, 4:47 PMperson.{nth-property}shikasd
06/25/2020, 4:48 PMmattmoore
06/25/2020, 4:51 PMshikasd
06/25/2020, 4:53 PMcase method?mattmoore
06/25/2020, 5:07 PM_ is a reserved Kotlin keyword. However, if we can find a good way to restrict the meaning of _ without case, then we can get rid of that.
I think it's already something I've gotten sufficiently working by checking only for _ where the type is null during analysis phase:
private val BindingTrace.wildcardTypeInfoEntries: List<MutableMap.MutableEntry<KtExpression, KotlinTypeInfo>>
get() = bindingContext.getSliceContents(BindingContext.EXPRESSION_TYPE_INFO).entries
.filter { it.value.type == null && it.key.text == "_" }mattmoore
06/25/2020, 5:08 PMcase can likely go away now.shikasd
06/25/2020, 5:10 PMshikasd
06/25/2020, 5:14 PMmattmoore
06/25/2020, 7:59 PMshikasd
06/25/2020, 8:06 PM