fervid_codegen 0.2.0

EcmaScript code generation for the fervid crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use fervid_transform::BindingsHelper;

#[derive(Debug, Default)]
pub struct CodegenContext {
    pub bindings_helper: BindingsHelper,
    pub is_cache_disabled: bool,
    pub next_cache_index: u8,
}

impl CodegenContext {
    pub fn with_bindings_helper(bindings_helper: BindingsHelper) -> CodegenContext {
        CodegenContext {
            bindings_helper,
            ..Default::default()
        }
    }
}