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 accessor generator macros #412

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mod sequence_info;
mod variadic_kind;

use self::{
accessors::generate_accessors,
builder::{generate_operation_builder, OperationBuilder},
element_kind::ElementKind,
field_kind::FieldKind,
Expand All @@ -30,7 +31,7 @@ pub fn generate_operation(operation: &Operation) -> Result<TokenStream, Error> {
let name = &operation.full_name()?;
let accessors = operation
.fields()
.map(|field| field.accessors())
.map(generate_accessors)
.collect::<Result<Vec<_>, _>>()?;

let builder = OperationBuilder::new(operation);
Expand Down
Loading
Loading