Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Refactor sameFfiDartAndCType to not require a Writer #629

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

liamappelbe
Copy link
Contributor

@liamappelbe liamappelbe commented Oct 9, 2023

Ran into this while working on other refactors, and pulled it out into its own PR. Instead of sameFfiDartAndCType comparing getFfiDartType and getCType, just make it a first class method on Type that subclasses have to override. This means we don't need a Writer, so we can use this function outside of toBindingString. If I did it right, there should be no codegen differences.

@liamappelbe liamappelbe marked this pull request as ready for review October 9, 2023 01:02
@liamappelbe liamappelbe enabled auto-merge (squash) October 9, 2023 01:02
Copy link
Contributor

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

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

lgtm! 🚀

@liamappelbe liamappelbe merged commit 7689e24 into main Oct 10, 2023
6 checks passed
@liamappelbe liamappelbe deleted the sameTypeRefactor branch October 10, 2023 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants