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

Method new_function_declaration

core/src/renderer/js/ast.rs:129–135  ·  view source on GitHub ↗
(
        id: Option<Rc<Self>>,
        params: Vec<Option<Rc<Self>>>,
        body: Option<Rc<Self>>,
    )

Source from the content-addressed store, hash-verified

127 }
128
129 pub fn new_function_declaration(
130 id: Option<Rc<Self>>,
131 params: Vec<Option<Rc<Self>>>,
132 body: Option<Rc<Self>>,
133 ) -> Option<Rc<Self>> {
134 Some(Rc::new(Node::FunctionDeclaration { id, params, body }))
135 }
136
137 pub fn new_variable_declarator(
138 id: Option<Rc<Self>>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected