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

Refactor to extract early_generator between high-level intermediate representation and mid-level intermediate representation #2049

Merged
merged 23 commits into from
Jun 8, 2024
Merged
Prev Previous commit
Next Next commit
chore: rm
  • Loading branch information
fzyzcjy committed Jun 8, 2024
commit 4c182bf8b54a23a779b1bdf3bbe40df13ddb1416
25 changes: 13 additions & 12 deletions frb_codegen/src/library/codegen/parser/mir/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ pub(crate) fn parse(
Ok(ans)
}

pub(crate) fn tentative_parse_trait_impls(
hir_flat: &HirFlatPack,
) -> anyhow::Result<Vec<MirTraitImpl>> {
let mut type_parser = TypeParser::new_from_hir_flat_pack(hir_flat);
trait_impl::parse(
&hir_flat.trait_impls,
&mut type_parser,
// randomly pick a value, which does not matter for this "tentative" purpose
CodecMode::Sse,
RustOpaqueCodecMode::Moi,
)
}
// TODO rm
// pub(crate) fn tentative_parse_trait_impls(
// hir_flat: &HirFlatPack,
// ) -> anyhow::Result<Vec<MirTraitImpl>> {
// let mut type_parser = TypeParser::new_from_hir_flat_pack(hir_flat);
// trait_impl::parse(
// &hir_flat.trait_impls,
// &mut type_parser,
// // randomly pick a value, which does not matter for this "tentative" purpose
// CodecMode::Sse,
// RustOpaqueCodecMode::Moi,
// )
// }