-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
A-semaArea: semantic analysisArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with oneCategory: an issue proposing an enhancement or a PR with oneE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-mediumMedium priorityMedium priority
Description
Describe the feature
Implement a HIR builder that constructs HIR nodes using a bunch of helper methods.
Example:
pub struct HirBuilder<'hir> { /* ... */ }
impl<'hir> HirBuilder<'hir> {
pub fn expr(&self, kind: hir::ExprKind<'hir>) -> hir::Expr<'hir> { /* ... */ }
}
An initial goal for this would be to replace the manual HIR node construction when desugaring loops and creating variables' getter functions, adding the necessary methods along the way.
Additional context
No response
Metadata
Metadata
Assignees
Labels
A-semaArea: semantic analysisArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with oneCategory: an issue proposing an enhancement or a PR with oneE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-mediumMedium priorityMedium priority
Type
Projects
Status
No status