MCPcopy Create free account
hub / github.com/d0iasm/saba / new_variable_declarator

Method new_variable_declarator

core/src/renderer/js/ast.rs:137–142  ·  view source on GitHub ↗
(
        id: Option<Rc<Self>>,
        init: Option<Rc<Self>>,
    )

Source from the content-addressed store, hash-verified

135 }
136
137 pub fn new_variable_declarator(
138 id: Option<Rc<Self>>,
139 init: Option<Rc<Self>>,
140 ) -> Option<Rc<Self>> {
141 Some(Rc::new(Node::VariableDeclarator { id, init }))
142 }
143
144 pub fn new_variable_declaration(declarations: Vec<Option<Rc<Self>>>) -> Option<Rc<Self>> {
145 Some(Rc::new(Node::VariableDeclaration { declarations }))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected