1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::codegen::syntax_tree::{Name, NodeType};

#[derive(Clone, Debug)]
pub struct ForEachNode {
    pub childs: Vec<NodeType>,
    pub collection: String,
    pub index: String,
    pub item: String,
}

impl Name for ForEachNode {
    fn name() -> &'static str {
        "for"
    }
}