Skip to content

Commit

Permalink
Add mutate_expressions method to GenericForStatement (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonz authored Nov 30, 2024
1 parent 1ef2a42 commit 617e621
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nodes/statements/generic_for.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ impl GenericForStatement {
self.expressions.iter_mut()
}

#[inline]
pub fn mutate_expressions(&mut self) -> &mut Vec<Expression> {
&mut self.expressions
}

#[inline]
pub fn mutate_block(&mut self) -> &mut Block {
&mut self.block
Expand Down

0 comments on commit 617e621

Please sign in to comment.