Skip to content

Commit

Permalink
Refactor accessor generator macros
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Feb 13, 2024
1 parent 7478664 commit 7f2503a
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 212 deletions.
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

0 comments on commit 7f2503a

Please sign in to comment.