1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::Expression;

/// `table[index]`, `table.index`
#[derive(Clone, Debug)]
pub struct ExprTableIndex {
    pub table: Box<Expression>,
    pub index: Box<Expression>,
}
impl ExprTableIndex {
    pub fn new(table: Expression, index: Expression) -> Self {
        Self {
            table: Box::new(table),
            index: Box::new(index),
        }
    }
}