lookup table fields
This commit is contained in:
parent
9b0127f961
commit
3b8de2886e
|
|
@ -137,7 +137,11 @@ fn lookup(scope: &BuildContext<'_>, loc: &ast::Location) -> Location {
|
|||
index: Box::new(Expression::Constant(ast::Constant::String(name.clone()))),
|
||||
}
|
||||
}
|
||||
ast::Location::Field { table, index } => todo!(),
|
||||
ast::Location::Field { table, index } => {
|
||||
let table = Box::new(lookup(scope, &table));
|
||||
let index = Box::new(build_expression(scope, &index));
|
||||
Location::Field { table, index }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user