From e63ef59b3466db9c0942d545fda4db45e287a6e2 Mon Sep 17 00:00:00 2001 From: Nam Ngo Date: Mon, 15 Jan 2024 14:10:41 +0700 Subject: [PATCH] cannot proceed until array and component access are stable --- src/traverse.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/traverse.rs b/src/traverse.rs index eb4bad5..e3c6e3d 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -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) => { @@ -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); + } } }