Skip to content

Commit

Permalink
Add internal_id to expose label ids to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rpitasky committed Sep 12, 2024
1 parent 43b3cec commit cc119d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ti-basic-optimizer/src/parse/commands/control_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ impl LabelName {

LabelName((first as u16) << 8 | second.unwrap_or(0) as u16)
}

#[cfg(test)]
pub(crate) fn internal_id(&self) -> u16 {
self.0
}
}

impl Parse for LabelName {
Expand Down

0 comments on commit cc119d5

Please sign in to comment.