-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement From<oxidized::*> for hackrs Decl structs
Summary: Relatively straightforward conversion from `from_oxidized_by_ref` but from oxidized structs instead. - Added a `From<oxidized::pos::Pos>` impl because it made a bunch of `.into()`s much cleaner - Ditto for some types from owned Strings - Split `map` into `map_k` and `map_kv` but fixed their inputs to just the relevant sets and maps, leaving outputs iterators - This makes the code simpler to follow imo -- don't need to call into_iter on their args, but the outputs are flexible - only 4 occurrences of the `.into_iter.map(...).collect()` remain where the inner closure has a little more going on, the rest call the helpers Differential Revision: D68520144 fbshipit-source-id: 0a3ec1434ad7e075e7bdff795aab074c0188ced4
- Loading branch information
1 parent
2cb1d52
commit a3df344
Showing
5 changed files
with
897 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
mod debug; | ||
pub mod folded; | ||
mod from_oxidized; | ||
mod from_oxidized_by_ref; | ||
mod ocamlrep; | ||
mod printer; | ||
|
Oops, something went wrong.