Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace [en|de]codeNullableSerializableElement with nullable #1149

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

veyndan
Copy link
Contributor

@veyndan veyndan commented Oct 17, 2023

encodeNullableSerializableElement and decodeNullableSerializableElement are both experimental APIs, whereas nullable isn't.

@@ -234,6 +234,8 @@ internal class BridgedInterface(
)
putValueArgument(1, parameterList)
}
ziplineApis.nullableSerializer // TODO Invoke this on [contextualSerializerExpression] if the [type] is nullable.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JakeWharton / @swankjesse Any ideas on how to do this? I've been searching for some API that'd take an IrPropertySymbol with contextualSerializerExpression as a receiver, but I'm a bit lost. I failed at finding some prior art of this being done within Zipline and online.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn, that's perfect. Thanks!

`encodeNullableSerializableElement` and `decodeNullableSerializableElement` are both experimental APIs, whereas `nullable` isn't.
@veyndan veyndan marked this pull request as ready for review October 18, 2023 16:39
@veyndan veyndan merged commit 232dd1d into trunk Oct 19, 2023
6 checks passed
@veyndan veyndan deleted the veyndan/2023-10-17/nullable branch October 19, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants