<@U4UGS5FC7> <@U4TNC7C4B> I ran into some weirdnes...
# arrow-meta
a
@raulraja @bloder I ran into some weirdness attempting to create a default element scope for
KtNullableType
and thought it would be good to also bring it here: https://github.com/arrow-kt/arrow-meta/pull/108#discussion_r345906518
r
replied on there I think we need KtTypeReference and KtTypeElement
👍 1
as those are the ones that show up on a type in user code being KtTypeReference the primary one
for example a function return type, receiver etc are all KtTypeReference
a
Yes, we'll add that to the list
we already had
KtTypeElement
but we have added the other one too: https://github.com/arrow-kt/arrow-meta/issues/89#issue-518929049
Right now, our current strategy is to basically go through what psi elements have not been covered that's already in ElementScope, for sure
Also, right right now, try to merge in all the open ones we have right now haha
updating the branches were a little hectic 😄
@raulraja should I just remove trying to get a
delegate
call in
ElementScope
for KtNullableElement then?
t
Btw TypeReference ist called TypeMirror in the Java annotation processing API. While reference is more clear, it is worth considering changing the name for familiarity with the existing annotation processing API or explaining this relationship in the docs.
1
a
Hmmm... that's a really good point - but I don't think we're working with annotations for using the quote system. I might be wrong about this - @raulraja what do you think?
r
we should explain the relationship in the docs but the current approach is to follow the same naming conventions as the KtElements except the Kt part
👍 2
a
I can definitely add that in there in a second