libhanzzok 0.1.5

Hanzzok compiler library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    codegen::{context::Context, HtmlNode},
    core::ast::InlineObjectNode,
};

use super::Walker;

impl Walker<InlineObjectNode> for Context<'_> {
    fn walk(&mut self, node: InlineObjectNode) -> Vec<HtmlNode> {
        match node {
            InlineObjectNode::DecoratorChain(node) => self.walk(node),
            InlineObjectNode::InlineConstructor(node) => self.walk(node),
            InlineObjectNode::Text(node) => self.walk(node),
        }
    }
}