A mild annoyance is that the toIonValue() extension function has AnyElement as it's receiver type. This means that in order to convert a non AnyElementIonElement to the legacy IonValue DOM, one must first call asAnyElement() on it.
Changing the reciever type to IonElement eliminates the need to do that without breaking source compatibility.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
A mild annoyance is that the
toIonValue()
extension function hasAnyElement
as it's receiver type. This means that in order to convert a nonAnyElement
IonElement
to the legacyIonValue
DOM, one must first callasAnyElement()
on it.Changing the reciever type to
IonElement
eliminates the need to do that without breaking source compatibility.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.