Chinedu Francis Nwafili
Chinedu Francis Nwafili
Here's a `good-first-issue` guide on how to implement this feature. # Implementation Guide ## Background Reading We already parse doc comments for opaque types. Parsing doc comments on functions should...
Here's a guide on how to add a UI test for a new compile time error. https://chinedufn.github.io/swift-bridge/contributing/adding-compile-time-errors/index.html If you're interested in working on this but aren't sure where to start,...
Hey! Thanks for the heads up. I'll write up some detailed instructions either tonight or tomorrow.
Hey. Sorry I'll have to get to this today or tomorrow! Will definitely write these for you just need to finish a couple more unrelated things. Thanks!
Thanks for waiting! I've written up a guide to adding support for `Vec`. Please let me know if you have any questions and I'll be more than happy to help....
All yours! Please don’t hesitate to ask questions here if you have any.
## Implementation ### Add UI test Add a UI test `incorrect_return_type.rs` and `incorrect_return_type.stderr` to https://github.com/chinedufn/swift-bridge/tree/master/crates/swift-bridge-macro/tests/ui ### Pass UI test Use [`quote_spanned!`](https://docs.rs/quote/latest/quote/macro.quote_spanned.html#syntax) to set the span on the return type. https://github.com/chinedufn/swift-bridge/blob/54b9c09337701dd7580010d1d5ef6527b855ee98/crates/swift-bridge-ir/src/parsed_extern_fn.rs#L157-L174...
Related #119
We can add a `BridgeableType.has_exactly_one_representation() -> bool` method so that our logic works for all types that fit this pattern. --- We can add tests to confirm that we elide...