shikasd
07/08/2020, 12:42 AMtodo
property in the prelude which serves as a placeholder to complete calls in PSI.
(also merged master, so sorry for a bit messy changeset)mattmoore
07/08/2020, 12:45 AMshikasd
07/08/2020, 5:51 PMmattmoore
07/08/2020, 6:00 PMval PATTERN_EXPRESSION = Slices.createSimpleSlice<KtWhenEntry, PatternExpression>()
val PATTERN_EXPRESSION_CAPTURED_PARAMS = Slices.createCollectiveSetSlice<KtNameReferenceExpression>()
val PATTERN_EXPRESSION_BODY_PARAMS = Slices.createCollectiveSetSlice<KtSimpleNameExpression>()
shikasd
07/08/2020, 6:38 PMcomponent
function to call
Also it now supports other expressions as captured params, so test const strings work correctly as well.
To achieve that, I have written a simple transform which basically converts
case(Person("Matt", "Moore"))
into subject is Person && subject.component1() == "Matt" && subject.component2() == "Moore"
mattmoore
07/09/2020, 2:34 AMraulraja
07/11/2020, 2:29 PMshikasd
07/12/2020, 6:05 PM