Skip to content

Commit

Permalink
cannot proceed until array and component access are stable
Browse files Browse the repository at this point in the history
  • Loading branch information
namnc committed Jan 15, 2024
1 parent b2f59a3 commit e63ef59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ pub fn traverse_statement(
} => {
debug!("Substitution for {}", var.to_string());
let mut name_access = String::from(var);

//TODO: here we can have component and array access at the same time
for a in access.iter() {
match a {
Access::ArrayAccess(expr) => {
Expand All @@ -121,8 +123,9 @@ pub fn traverse_statement(
name_access.push_str(&dim_u32_str);
debug!("Sub Change var name to {}", name_access);
}
Access::ComponentAccess(_) => {
todo!("Sub Component access not handled");
Access::ComponentAccess(_name) => {
debug!("Sub Component access found {}", _name);

}
}
}
Expand Down

0 comments on commit e63ef59

Please sign in to comment.