Skip to content

Commit

Permalink
Rename variables (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Feb 14, 2024
1 parent d9e39f8 commit c1b1ea6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ impl<'a> Operation<'a> {
}

fn collect_results(
def: Record<'a>,
definition: Record<'a>,
same_size: bool,
attribute_sized: bool,
) -> Result<(Vec<OperationField>, usize), Error> {
Self::collect_elements(
&Self::dag_constraints(def, "results")?
&Self::dag_constraints(definition, "results")?
.into_iter()
.map(|(name, constraint)| (name, TypeConstraint::new(constraint)))
.collect::<Vec<_>>(),
Expand Down Expand Up @@ -391,10 +391,10 @@ impl<'a> Operation<'a> {
definition
.values()
.filter_map(|value| {
let Ok(def) = Record::try_from(value) else {
let Ok(definition) = Record::try_from(value) else {
return None;
};
def.subclass_of("Attr").then_some(def)
definition.subclass_of("Attr").then_some(definition)
})
.map(|definition| {
if definition.subclass_of("DerivedAttr") {
Expand Down

0 comments on commit c1b1ea6

Please sign in to comment.